On Thu, Mar 14, 2024 at 10:35 AM Dima Pasechnik <dimp...@gmail.com> wrote:

> It might help seeing your graphs here, too.
>

It is attached, Dima. Note that the correct graph should be
(for all practical purposes) simply the plot of the constant
function 1 for all x.


[image: bug-in-plot-of-rational-function.jpg]


> On Thu, Mar 14, 2024 at 10:04 AM David Joyner <wdjoy...@gmail.com> wrote:
>
>> Hi:
>>
>> I'm trying to show my students a plot of
>> a rational function whose graph is basically 1,
>> so I plotted
>> f(x) = (x^2+0.0001)/(x^2+0.0001000001)
>> However, there is a problem: Note the difference between
>> plot((x^2+0.0001)/(x^2+0.0001000001), (x,-10,10))
>> (which dips down near x=0) and
>> plot((x^2+0.0001)/(x^2+0.0001000001), (x,-10,10), ymin = -0.1, ymax = 1.5
>> )
>> (which basically looks like a straight line).
>> Same problem for lists:
>>
>> sage: L = [(x/100, f(x/100)) for x in range(-100, 100)]
>> sage: list_plot(L)                      # bug?
>> sage: list_plot(L, ymin=-0.5, ymax=1.5) # good
>>
>> This is using 'SageMath version 10.3.rc1, Release Date: 2024-02-29' on
>> an ubuntu machine. Can anyone tell what is going on here? I'm happy to
>> attached jpgs of the plots I get, if desired.
>>
>> For comparison, it appears that Sympy plots this correctly.
>>
>> - David Joyner
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "sage-support" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to sage-support+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/sage-support/CAEQuuAXPcQ6_g67a7L4bdy1Ko%2BFH1VnHAT25G3LfY6XR1mMaEg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/sage-support/CAEQuuAXPcQ6_g67a7L4bdy1Ko%2BFH1VnHAT25G3LfY6XR1mMaEg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/CAAWYfq1DheVMU-33w7uvSFn1HrtWqrNWT4ciH6W3AtvF-J4_jw%40mail.gmail.com
> <https://groups.google.com/d/msgid/sage-support/CAAWYfq1DheVMU-33w7uvSFn1HrtWqrNWT4ciH6W3AtvF-J4_jw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAEQuuAXj-9NV-AWw0BJY7kFVRYQhP-LbAW3ikh%3D88_y6zFQnLA%40mail.gmail.com.

Reply via email to