Closed kands-code closed 1 week ago
Maxima has some problem with the limit. You can try
sage: limit(df,x=0,algorithm='sympy')
0
Maxima has some problem with the limit. You can try
Oh, so this is Maxima’s question, right? Got it, thanks!
Steps To Reproduce
The code that encountered the error is as follows:
Expected Behavior
Returns
ind
or other possible return values.Actual Behavior
The error is as follows:
details of error
```plaintext --------------------------------------------------------------------------- TypeError Traceback (most recent call last) File ~/.local/sdk/sage/sage-src/src/sage/interfaces/maxima_lib.py:1682, in sr_to_max(expr) 1681 try: -> 1682 return pyobject_to_max(expr.pyobject()) 1683 except TypeError: File ~/.local/sdk/sage/sage-src/src/sage/interfaces/maxima_lib.py:1580, in pyobject_to_max(obj) 1579 return EclObject([[mplus], pyobject_to_max(re), [[mtimes], pyobject_to_max(im), max_i]]) -> 1580 return EclObject(obj) File ~/.local/sdk/sage/sage-src/src/sage/libs/ecl.pyx:696, in sage.libs.ecl.EclObject.__init__() 695 elif len(args) == 1: --> 696 self.set_obj(python_to_ecl(args[0], True)) 697 elif len(args) == 2: File ~/.local/sdk/sage/sage-src/src/sage/libs/ecl.pyx:487, in sage.libs.ecl.python_to_ecl() 486 else: --> 487 L = python_to_ecl(pyobj[-1], read_strings) 488 for i in range(len(pyobj) - 2, -1, -1): File ~/.local/sdk/sage/sage-src/src/sage/libs/ecl.pyx:492, in sage.libs.ecl.python_to_ecl() 491 else: --> 492 raise TypeError("Unimplemented type for python_to_ecl") 493 TypeError: Unimplemented type for python_to_ecl During handling of the above exception, another exception occurred: RuntimeError Traceback (most recent call last) File ~/.local/sdk/sage/sage-src/src/sage/interfaces/interface.py:750, in InterfaceElement.__init__(self, parent, value, is_name, name) 749 try: --> 750 self._name = parent._create(value, name=name) 751 except (TypeError, RuntimeError, ValueError) as x: File ~/.local/sdk/sage/sage-src/src/sage/interfaces/maxima_lib.py:623, in MaximaLib._create(self, value, name) 622 else: --> 623 self.set(name, value) 624 except RuntimeError as error: File ~/.local/sdk/sage/sage-src/src/sage/interfaces/maxima_lib.py:533, in MaximaLib.set(self, var, value) 532 cmd = '%s : %s$' % (var, value.rstrip(';')) --> 533 self.eval(cmd) File ~/.local/sdk/sage/sage-src/src/sage/interfaces/maxima_lib.py:479, in MaximaLib._eval_line(self, line, locals, reformat, **kwds) 478 if statement: --> 479 maxima_eval("#$%s$" % statement) 480 if not reformat: File ~/.local/sdk/sage/sage-src/src/sage/libs/ecl.pyx:829, in sage.libs.ecl.EclObject.__call__() 828 """ --> 829 lispargs = EclObject(list(args)) 830 return ecl_wrap(ecl_safe_apply(self.obj, (Additional Information
I'm new to SageMath and I don't know how to troubleshoot this kind of problem. If you need any additional information, feel free to ask.
Thanks for your help!
Environment
Checklist