-
-
Notifications
You must be signed in to change notification settings - Fork 517
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
fast_float yields infinity when Python does, but should handle bigger numbers #13559
Comments
Changed keywords from none to agregation |
comment:2
It is not a problem with loglog. There is the same problem with normal plots.
FYI, the change to loglog/semilog* scale happens only during the very end when |
comment:3
Replying to @ppurka:
Really??? Ouch! In a x log scale one certainly would want to disperse ploting points differently. |
comment:4
True, but that would be another ticket. And sometimes one would want to plot the same data in two different ways, so we wouldn't want to remove that entirely. |
comment:5
Hi! Replying to @kcrisman:
Well, unless there is a quick solution for just the issue stated in this ticket, I am happy recycling it to whatever the right fix should be (taking into account the log scale early or delaying the generation of the evaluation points to
I don't know the current implementation, so there might be technical obstructions I can't see; however, in principle, isn't the data really the function rather than the points? In that case, should'nt the points just be recalculated as needed? |
comment:6
Replying to @nthiery:
Suppose you want to plot the points Now, suppose you want to plot |
comment:7
In fact, I just realized why you are getting the errors. The problem is with
Maybe you are better off generating the list of data points by using exact arithmetic in Sage and then passing off the list to |
comment:8
Huh, that is not good.
That's as much bisecting as I want to do. And really, here is what is going on, I suspect.
So |
Dependencies: #15030 |
comment:11
The solution of this ticket depends on #15030 and this ask.sagemath thread. How? I suppose we can introduce a plot keyword |
It sounds like the adaptative algorithm fails to find suitable
evaluation points when plotting large functions (like exp) in loglog
scale. In the following example, the exp function gets drawn with only
three points:
If xmax is replaced by 10^10, the function is not even drawn:
On the other hand, the equivalent semilogy plot works smoothly:
(Such plots are typically useful in classes about algorithmic complexity http://combinat.sagemath.org/doc/thematic_tutorials/agregation-option-calcul-formel/tris_et_complexite.html)
Depends on #15030
CC: @eviatarbach
Component: basic arithmetic
Keywords: agregation
Issue created by migration from https://trac.sagemath.org/ticket/13559
The text was updated successfully, but these errors were encountered: