Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Sage's Python not giving the expected result

Hello to everyone, When I run the code

import sympy as sp
x=sp.symbols('x')
y=sp.Function('y')(x)
eq = sp.Eq(sp.diff(y,x,x)+sp.diff(y,x)+9.25*y,0)  
y=sp.dsolve(eq,y)
y

in a Jupyter notebook launched from Sage, but with the kernel specified to be a Python kernel, I do not get the result I expect.

The same code in a jupyter notebook from anaconda-navigator, of in a jupyter notebook at CoCalc gives the correct result though. The error message I get is quite cryptic, but it starts as in the attached figure.

I am running sage 10.0 on a ubuntu 20.04 machine.

Any hint?

image description

Thanks in advance, JC