Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #14246 > unrolled thread
| Started by | Sergio R <sergiorquestion@gmail.com> |
|---|---|
| First post | 2013-04-20 09:54 +0000 |
| Last post | 2013-04-20 09:54 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
Mathematica integration Vs Sympy Sergio R <sergiorquestion@gmail.com> - 2013-04-20 09:54 +0000
| From | Sergio R <sergiorquestion@gmail.com> |
|---|---|
| Date | 2013-04-20 09:54 +0000 |
| Subject | Mathematica integration Vs Sympy |
| Message-ID | <kktol6$c7o$1@smc.vnet.net> |
Hello all,
Just for fun a put an integral I was doing via mathematica
WolframAlpha
[ http://www.wolframalpha.com/input/?i=Integrate[1%2F%28x*%281-a*%281-x%29%29%29%2Cx]
]
into the online sympy [ http://live.sympy.org/ ] console
the following:
a = Symbol('a'); g = 1/(x*(1-a*(1-x))) ; u=simplify(integrate(g,x))
Then, to display the result, at the sympy ">>>" prompt, type u
and hit return.
To my surprise, sympy seems to give the right result without any
assumption, while mathematica's result seems to assume a>1, which is
not specified. Also for this case (a>1) sympy gives an extra constant
which is not present in the mathematica result.
Is there a way to make mathematica to output a general result like
sympy
in this case?
Sergio
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web