Skip to content

error in parsing maxima output #3914

@jasongrout

Description

@jasongrout
----------------------------------------------------------------------
| SAGE Version 3.1.1, Release Date: 2008-08-17                       |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------

sage: var('s,t')
(s, t)
sage: f=function('f', t)
sage: f.diff(t,2)
diff(f(t), t, 2)
sage: f.diff(t,2).laplace(t,s)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)

/home/grout/<ipython console> in <module>()

/home/grout/sage/local/lib/python2.5/site-packages/sage/calculus/calculus.py in laplace(self, t, s)
   2290             sage: (p1+p2).save()
   2291         """
-> 2292         return self.parent()(self._maxima_().laplace(var(t), var(s)))
   2293
   2294     def inverse_laplace(self, t, s):

/home/grout/sage/local/lib/python2.5/site-packages/sage/calculus/calculus.py in __call__(self, x)
    449                 msg, s, pos = err.args
    450                 raise TypeError, "%s: %s !!! %s" % (msg, s[:pos], s[pos:])
--> 451         return self._coerce_impl(x)
    452
    453     def _coerce_impl(self, x):

/home/grout/sage/local/lib/python2.5/site-packages/sage/calculus/calculus.py in _coerce_impl(self, x)
    467             return x
    468         elif isinstance(x, MaximaElement):
--> 469             return symbolic_expression_from_maxima_element(x)
    470         # if "x" is a SymPy object, convert it to a SAGE object
    471         elif is_Polynomial(x) or is_MPolynomial(x):

/home/grout/sage/local/lib/python2.5/site-packages/sage/calculus/calculus.py in symbolic_expression_from_maxima_element(x)
   8314         x^(sqrt(y) + pi) - sin(e)
   8315     """
-> 8316     return symbolic_expression_from_maxima_string(x.name())
   8317
   8318 def evaled_symbolic_expression_from_maxima_string(x):

/home/grout/sage/local/lib/python2.5/site-packages/sage/calculus/calculus.py in symbolic_expression_from_maxima_string(x, equals_sub, maxima)
   8298         # evaluation of maxima code are assumed pre-simplified
   8299         is_simplified = True
-> 8300         return symbolic_expression_from_string(s, syms, accept_sequence=True)
   8301     except SyntaxError:
   8302         raise TypeError, "unable to make sense of Maxima expression '%s' in SAGE"%s

/home/grout/sage/local/lib/python2.5/site-packages/sage/calculus/calculus.py in symbolic_expression_from_string(s, syms, accept_sequence)
   8431             global _augmented_syms
   8432             _augmented_syms = syms
-> 8433             return parse_func(s)
   8434         finally:
   8435             _augmented_syms = {}

/home/grout/parser.pyx in sage.misc.parser.Parser.parse_sequence (sage/misc/parser.c:3012)()

/home/grout/parser.pyx in sage.misc.parser.Parser.parse_sequence (sage/misc/parser.c:2911)()

/home/grout/parser.pyx in sage.misc.parser.Parser.p_sequence (sage/misc/parser.c:3304)()

/home/grout/parser.pyx in sage.misc.parser.Parser.p_eqn (sage/misc/parser.c:3929)()

/home/grout/parser.pyx in sage.misc.parser.Parser.p_expr (sage/misc/parser.c:4214)()

/home/grout/parser.pyx in sage.misc.parser.Parser.p_term (sage/misc/parser.c:4423)()

/home/grout/parser.pyx in sage.misc.parser.Parser.p_factor (sage/misc/parser.c:4737)()

/home/grout/parser.pyx in sage.misc.parser.Parser.p_factor (sage/misc/parser.c:4763)()

/home/grout/parser.pyx in sage.misc.parser.Parser.p_power (sage/misc/parser.c:4858)()

/home/grout/parser.pyx in sage.misc.parser.Parser.p_atom (sage/misc/parser.c:5234)()

TypeError: __call__() got an unexpected keyword argument 't'

Component: interfaces

Issue created by migration from https://trac.sagemath.org/ticket/3914

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions