-
-
Notifications
You must be signed in to change notification settings - Fork 528
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
sage fails to plot a quarter circle when it should #7165
Comments
comment:2
I browse the two previous expressions real(...) and imaginary(...), and test real(sqrt(...)). Theses calculus are right and remain real.
But this one is the shorter that contains complex expressions :
The outer sqrt(...) assume that the inner sqrt is obvious ; so sqrt(m)+i+1 remains, even if it's a complex expression.
|
comment:3
The |
comment:9
Now this does work
|
comment:10
This needs a doctest. |
Commit: |
Author: Frédéric Chapoton |
Branch: public/ticket/7165 |
comment:11
Here is a tiny doctest. After that, I think one can close this old ticket. New commits:
|
Reviewer: Travis Scrimshaw |
comment:12
LGTM. |
Changed branch from public/ticket/7165 to |
I use sage 4.1.2alpha4. This plot is right with this version :
parametric_plot([real(exp(i*m)),imaginary(exp(i*m))],m,0,7)
I apply the patch 7122 by copy/paste in emacs and run sage -br.
Now this plot is also right, it draw a half-circle :
parametric_plot([real(m+sqrt(m<sup>2-1)),imaginary(m+sqrt(m</sup>2-1))],m,-5,5)
I also get it by this function :
Now I solve this 4 degree equation. The solve is right with sqrt at 2 levels.
But I get an error in the parametric_plot :
The local
solve2pplot(res[0])
generates a long formula.real axe and imaginary axe are right.
But sage doesn't plot the quarter-circle between axes at position 1=(1,0) and i=(0,1) and claims
failed to evaluate function at 40 points
. So the plot is a line between the 2 axes.CC: @kcrisman
Component: graphics
Author: Frédéric Chapoton
Branch/Commit:
354f929
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/7165
The text was updated successfully, but these errors were encountered: