The following transcript shows some problems with the new (and rather
cool) symbolic package.  Perhaps someone in the know could address
them, or file the relevant trac issue?

Nick

sage: exp(x*t).diff(t, 2)
 xe

sage: exp(x^2*t).diff(t, 2)
 xe

sage: exp(x^2*e^t).diff(t, 2)
---------------------------------------------------------------------------
<type 'exceptions.TypeError'>             Traceback (most recent call last)

/Users/nalexand/Documents/School/MATH235/<ipython console> in <module>()

/Users/nalexand/sage/local/lib/python2.5/site-packages/sage/calculus/calculus.py
 in derivative(self, *args)
   1058             pass
   1059         t = maxima('diff(%s, %s)'%(self._maxima_().name(), s))
-> 1060         f = self.parent()(t)
   1061         return f
   1062 

/Users/nalexand/sage/local/lib/python2.5/site-packages/sage/calculus/calculus.py
 in __call__(self, x)
    281         elif hasattr(x, '_symbolic_'):
    282             return x._symbolic_(self)
--> 283         return self._coerce_impl(x)
    284 
    285     def _coerce_impl(self, x):

/Users/nalexand/sage/local/lib/python2.5/site-packages/sage/calculus/calculus.py
 in _coerce_impl(self, x)
    289             return x
    290         elif isinstance(x, MaximaElement):
--> 291             return symbolic_expression_from_maxima_element(x)
    292         elif is_Polynomial(x) or is_MPolynomial(x):
    293             return SymbolicPolynomial(x)

/Users/nalexand/sage/local/lib/python2.5/site-packages/sage/calculus/calculus.py
 in symbolic_expression_from_maxima_element(x)
   4411 
   4412 def symbolic_expression_from_maxima_element(x):
-> 4413     return symbolic_expression_from_maxima_string(x.name())
   4414 
   4415 def evaled_symbolic_expression_from_maxima_string(x):

/Users/nalexand/sage/local/lib/python2.5/site-packages/sage/calculus/calculus.py
 in symbolic_expression_from_maxima_string(x, equals_sub, maxima)
   4406         return x
   4407     except SyntaxError:
-> 4408         raise TypeError, "unable to make sense of Maxima expression 
'%s' in SAGE"%s
   4409     finally:
   4410         is_simplified = False

<type 'exceptions.TypeError'>: unable to make sense of Maxima expression 
'x(ex+1)e' in SAGE

sage: exp(x^2*e^t).diff(t, 1)
 xe

sage: exp(x^2*e^t).diff(t)
 xe

sage: exp(x^2*exp(t)).diff(t)
 xe

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to