Tutorial:JMathLab/Taylorpolynomial

From HandWiki
Revision as of 18:33, 27 March 2020 by imported>Jworkorg (Created page with " = Taylorpolynomial = '''taylor(function, x, x0, n)''' calculates the n-th Taylorpolynomial in the symbolic variable x at the point x0. <jc lang="math"> syms x y=taylor(log...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Taylorpolynomial

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

<jc lang="math"> syms x y=taylor(log(x),x,1,1) printf('%f',y) </jc>

<jc lang="math"> syms x y=rat( taylor(exp(x),x,0,6)) printf('%f',y) </jc>

<jc lang="math"> syms x y=float( taylor(x^3*sin(2*x+pi/4),x,pi/8,2)) printf('%f',y) </jc>