-
-
Notifications
You must be signed in to change notification settings - Fork 601
Zero solution does not result in zero #14628
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:2
One can confirm this graphically, too.
Note that
works. So it is the native Maxima solve command that is causing the problem. |
comment:3
Unfortunately, I can't debug this more now because of the annoying thing that Maxima doesn't allow copying and pasting of more than a certain number of characters, and I can't remember the workaround right now. What I can say is that it is something about our form of the imaginary part of z:
on which
It is strange that the error is so dramatically wrong. |
comment:4
Ah, got it. The problem is related to #6862 in that
But it isn't evident that the last thing and the |
comment:5
One way to deal with the line length limitation would be splitting the expression into several parts:
This together with the %i1 and %i2 from your example will reproduce the issue:
But now I see that you posted a new comment while I was logging in… Reading that, it doesn't seem like a final solution, so I'll post mine anyway, in case it might be useful at some point. |
comment:6
Replying to @gagern:
True, though that wasn't the workaround I was trying to remember.
Absolutely. Hmm, that is actually very useful to know. I wonder why there is that huge difference? Note the Maxima warning...
Yeah, I'll say! This is still right, as we expect.
This is something I can report to the Maxima bug tracker, and I'll do so now. |
Upstream: Reported upstream. No feedback yet. |
comment:7
This is now Maxima bug 2592. |
Stopgaps: wrongAnswerMarker |
In the following case, the
solve
function of sage 5.8 will yield a list of incorrect solutions, whereas the correct solution is missing. The computation involves complex numbers, symbolic expressions and trigonometric functions.The correct solution was found from an easier form of
zi
, which is-1/2*sqrt(2)*cos(phi)/(sin(phi) + 1)
. I first reported this at asksage, and tmonteil confirmed that this is a bug, not my mistake.Upstream: Reported upstream. No feedback yet.
CC: @kcrisman
Component: symbolics
Stopgaps: wrongAnswerMarker
Issue created by migration from https://trac.sagemath.org/ticket/14628
The text was updated successfully, but these errors were encountered: