Ask Your Question

Revision history [back]

It is indeed a bug, thanks for reporting,

That said, you should notice that the symbolic ring does not handle numerical values very well, so here is a better way:

sage: f = (x+1)^(1/10)+exp(x)
....: f.taylor(x,0,3)
1171/6000*x^3 + 91/200*x^2 + 11/10*x + 2

It is indeed a bug, thanks for reporting,

That said, you should notice that the symbolic ring does not handle numerical values very well, so here is a better way:

sage: f = (x+1)^(1/10)+exp(x)
....: f.taylor(x,0,3)
1171/6000*x^3 + 91/200*x^2 + 11/10*x + 2

Note that it is not Python3 specific, i can reproduce it on a Python2 build.

It is indeed a bug, thanks for reporting,

That said, you should notice that the symbolic ring does not handle numerical values very well, so see for example https://trac.sagemath.org/ticket/14821

So here is a better way:workaround:

sage: f = (x+1)^(1/10)+exp(x)
....: f.taylor(x,0,3)
1171/6000*x^3 + 91/200*x^2 + 11/10*x + 2

Note that it is not Python3 specific, i can reproduce it on a Python2 build.