|
|
last edited 15 years ago by page |
1 2 3 4 | ||
Editor: page
Time: 2007/09/19 01:20:27 GMT-7 |
||
Note: |
added:
**This used to work by now it fails in sympy-0.5.3.**
Running SymPy? in a SageBlock?
SymPy? initialization:
#sys.path.append("/home/page/sympy") import sympy # the follow command is only needed because we are running SymPy inside Sage Integer = int
We are running SymPy? version:
First simple confidence test:
from sympy import Symbol a=Symbol(a
) b=Symbol(b
) c=Symbol(c
) e=( abb+2bab )*c
The resulting SymPy? expression is:
(1) |
Here is a simple limit in SymPy?
This used to work by now it fails in sympy-0.5.3.
test:
\begin{sageblock} from sympy import limit x = Symbol("x") e=limit((3**(1/x)+5**(1/x))**x, x, 0) \end{sageblock}
and the result is:
\begin{equation} \sage{e} \end{equation}
Unfortunately for this limit Axiom gives: .
And Maxima gives: .
So the Axiom and Maxima developers have some more work to do!
But worse, Reduce actually gets it wrong...
limit((3**(1/x)+5**(1/x))**x, x,0); | reduce |
Martin
while Maxima gives: left (from below): , right (from above): .
Axiom ReferenceOn Computing Limits in a Symbolic Manipulation System; Dominik Gruntz. ETH Diss 11432 abstract postscript , 1996.