-
-
Notifications
You must be signed in to change notification settings - Fork 601
Taking the real part of a sum of exponentials with imaginary exponents gives wrong result #12807
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
comment:1
Thanks for the report! This is a bug in Pynac. I opened a ticket here: http://hg.pynac.org/pynac/issue/15/wrong-result-from-real-part |
comment:6
This gets really weird, actually.
This is consistent with Pynac somehow thinking that I tried to figure out what it was but so far no luck. |
comment:7
Actually and surprisingly what's happening is that the simplified values of the
This is evident in the GiNaC source, this line(https://github.com/pynac/pynac/blob/master/ginac/add.cpp#L432):
is so rarely executed that e.g. only three doctests in The fix will be in Pynac-0.3.7. |
Dependencies: pynac-0.3.7 |
Upstream: Fixed upstream, in a later stable release. |
Commit: |
Author: Ralf Stephan |
Changed dependencies from pynac-0.3.7 to #18362 |
comment:10
LGTM. |
Reviewer: Travis Scrimshaw |
In sage 4.8 the following computation gives 1/2, while the right result is -3/2:
Doing the computation numerically gives the right result:
and asking maxima directly also works:
This is sage 4.8 running on Fedora 16, linux 3.1.0-7.fc16.x86_64 SMP.
Depends on #18362
Upstream: Fixed upstream, in a later stable release.
Component: symbolics
Author: Ralf Stephan
Branch/Commit:
410bab7
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/12807
The text was updated successfully, but these errors were encountered: