How to insert data in taylor series?

2 visualizaciones (últimos 30 días)
Byeong Hui
Byeong Hui el 19 de Abr. de 2014
Respondida: Walter Roberson el 19 de Abr. de 2014
I want to know e(error).
But, I can not insert x and y value into Taylor series.
This is my code.
syms x y z
f = x*y^2;
U=taylor(f,[x,y],[6,11],'order',2');
x = input('What is your x -axis value ?');
y = input('What is your y -axis value ?');
z=x*y^2
e=(U-z)/U*100;
How to insert x and y value into U equation that is result of taylor series?
I want to calculate error at x =5 and y = 10.

Respuestas (1)

Walter Roberson
Walter Roberson el 19 de Abr. de 2014
subs(e, {x, y}, {5, 10})
You would probably want to double() the result.

Categorías

Más información sobre Mathematics en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by