| 1 | initial version |
Actually, some computations can be done by sympy, see for example:
sage: integral?
However sympy is not imported in Sage by default, i guess the main reason is startup speed. If you want to use sympy within Sage, just do:
sage: import sympy
Now, if you have an element of the Symbolic Ring, you can transform it into a sympy object as follows:
sage: a = cos(x) + pi
sage: b = a._sympy_()
sage: b
cos(x) + pi
You can check:
sage: type(b)
<class 'sympy.core.add.Add'>
You can come back to the symboloc ring as follows:
sage: b._sage_()
pi + cos(x)
| 2 | No.2 Revision |
Actually, Concerning relations between Sage, maxima and ginac, you can have a look to this question.
Concerning sympy, some computations can be done by sympy, but you need to specify it, see for example:
sage: integral?
However sympy is not imported in Sage by default, i guess the main reason is startup speed. If you want to use sympy within Sage, just do:
sage: import sympy
Now, if you have an element of the Symbolic Ring, you can transform it into a sympy object as follows:
sage: a = cos(x) + pi
sage: b = a._sympy_()
sage: b
cos(x) + pi
You can check:
sage: type(b)
<class 'sympy.core.add.Add'>
You can come back to the symboloc symbolic ring as follows:
sage: b._sage_()
pi + cos(x)
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.