On Tue, Dec 6, 2022 at 3:40 PM Dima Pasechnik wrote:
> 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...
>
regarding the original function, perhaps plot is trying to do a numeric
derivative of it, but it's
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...
On Tue, Dec 6, 2022 at 1:41 PM Dima Pasechnik wrote:
> I can only say that the precision settings are ignored somewhere, so you
> get e.g. with digits=20, n
On Tue, 6 Dec 2022 at 12:53, Emmanuel Charpentier
wrote:
>
>
> And Sympy currently never returns.
With current SymPy master it takes 6 seconds:
In [1]: %time log(tan(pi/2*tanh(x))).diff(x).limit(x, oo)
CPU times: user 5.73 s, sys: 24 ms, total: 5.75 s
Wall time: 5.75 s
Out[1]: 2
The fix was par
I can only say that the precision settings are ignored somewhere, so you
get e.g. with digits=20, not 30, the following:
sage: 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
: =20))
:
sage: [foo(t) for t in [1..3
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
sage: plot(foo, (1, 30))
Launched png viewer for Graphics object consisting of 1 graphics primitive
Le mardi 6 décem
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
express
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)
On Tue, Dec 6, 2022 at 12:53 PM Emmanuel Charpentier <
emanuel.charpent...@gmail.com> wrote:
> Question already asked on |`ask.sagemath.org`](
> htt
Question already asked on
|`ask.sagemath.org`](https://ask.sagemath.org/question/64934/plotting-ill-conditionned-function/),
where it didn't attract a lot of attention...
Let
```
sage: f(x)=log(tan(pi/2*tanh(x))).diff(x) ; f
x |--> -1/2*pi*(tan(1/2*pi*tanh(x))^2 + 1)*(tanh(x)^2 -
1)/tan(1/2*p