


--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/db271244-0ad7-4484-8a46-bdc4b1edd0f0n%40googlegroups.com.
Le mardi 6 décembre 2022 à 14:16:56 UTC+1, dim…@gmail.com a écrit :
It's plotting via matplotlib, perhaps that's why the precision setting is ignored (or pehaps something like RDF is hardcoded in Sage plotting code)
That wouldn’t explain why the specification included in the lambda expression in the third example isn’t accepted : matplotlib should see the RR values returned by it (which do accept the precision specification).
The same thing happens after :
sage: def foo(x):
....: return RR(N(-1/2*pi*(tan(1/2*pi*tanh(x))^2 + 1)*(tanh(x)^2 - 1)/tan(1/2*pi*tanh(x)), digits=30))
....:
sage: foo
<function foo at 0x7fe472aab250>
sage: plot(foo, (1, 30))
Launched png viewer for Graphics object consisting of 1 graphics primitive
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/de783db9-35b4-47a4-88ba-064a1f67f532n%40googlegroups.com.
even more fun can be had by trying to plot the symbolic derivative of the function at hand. It's just making no sense at all what I see...