Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Expression.simplify() takes no "algorithm" keyword

Hi Sage experts.

I am trying to run the following example, which is really copied from the doc with slight modification to adapt it to my Jupyter notebook.

from sage. All import *
from IPython.display import display, Math, Latex

%display latex

x, t = var("x, t")
ex = cos(t).exponentialize()
ex = ex.subs((sin(t).exponentialize()==x).solve(t)[0]); display(ex)
ex.simplify(); display(ex)
ex.simplify(algorithm="sympy"); display(ex)

It runs nicely till the last line, which fails with the error TypeError: Expression.simplify() takes no keyword arguments. Since this line is copied from the doc, I am baffled.

I am using SageMath 9.5 on Ubuntu 22.04 and in the Jupyter notebook.

Thank you

GPN