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
Bugfix hyperbolic_arc and hyperbolic_polygon #19217
Comments
This comment has been minimized.
This comment has been minimized.
Changed keywords from none to hyperbolic_arc, hyperbolic_polygon |
Author: skraemer |
Commit: |
New commits:
|
comment:5
Hello, Why 10-3? Moreover it can be very wrong if the imaginary part is very small. Just try
The above example just works fine without your patch. Vincent |
Reviewer: Vincent Delecroix |
comment:6
Hello Vincent, thanks for reviewing my first patch! Would a smaller boundary for the comparison be more eligible? Let's say 10-12? Of course, the analogue example of ours will still produce a wrong result:
But scaled to a larger region of hyperbolic geometry, it is quite hard to see:
Or do you know a better way to compare a value to zero in sage? best regards, |
comment:7
Hello, Putting a smaller value would not solve anything. The main problem is that this subtelty should depend on the window parameters (i.e. I have no miracle to propose. Vincent |
comment:9
Hello, I guess, something went wrong with git. I am sorry for this. Please let me know, if it does not work. I had a new idea, how to handle this issue: Instead of checking, whether the points are above each other, one could check, how much the line connecting the points differ by the circle through the points. A simple test for this is to look at the quotient of the length of the connecting line and the radius of the circle. If this quotient is smaller than 0.1, we choose a line. The parameter .1 was chosen by experiment. In this version the reported bug does not appear and your examples work also. best regards, |
Changed author from skraemer to Stefan Kraemer |
comment:10
Hello, Some trac administrative things:
Your solution is great! I set to positive review and it will be soonly merge in the development release. Vincent |
Changed branch from u/skraemer/bugfix_hyperbolic_arc_and_hyperbolic_polygon to |
If you draw an hyperbolic arc between two points with almost the same real part, it may result in a wrong arc.
You can see it as follows:
CC: @videlec
Component: graphics
Keywords: hyperbolic_arc, hyperbolic_polygon
Author: Stefan Kraemer
Branch/Commit:
adec9d2
Reviewer: Vincent Delecroix
Issue created by migration from https://trac.sagemath.org/ticket/19217
The text was updated successfully, but these errors were encountered: