Processing math: 100%
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 1 year ago

JC gravatar image

Taylor expansion, powers of x-a

Hi all,

I noticed that taylor(...) has a somehow inconsistent behaviour. When used with a function of one variable, it returns an expression that is a sum of powers of xa. For instance taylor(sin(x), x,1,2) gives the result 12(x1)2sin(1)+(x1)cos(1)+sin(1) as expected. Same for taylor(sin(x*y), (x,1), (y,2),2) that gives the expected answer.

In contrast taylor(sqrt(1+4*x^2 + y^2),(x,1), (y,2),2) gives a result ending with 43x+23y+13 , where I was expecting something containing a term on x1 and a term in y2.

Any ideas?

JC