JMathLabTutorial:Taylorpolynomial

From jWork.ORG
Jump to: navigation, search
Limitted access. Reguest membership or login to this link first if you are already a member
Contents


Taylorpolynomial

taylor(function, x, x0, n) calculates the n-th Taylorpolynomial in the symbolic variable x at the point x0.


syms x
y=taylor(log(x),x,1,1)
printf('%f',y)


syms x
y=rat( taylor(exp(x),x,0,6))
printf('%f',y)


syms x
y=float( taylor(x^3*sin(2*x+pi/4),x,pi/8,2))
printf('%f',y)