How to insert data in taylor series?

1 回表示 (過去 30 日間)
Byeong Hui
Byeong Hui 2014 年 4 月 19 日
回答済み: Walter Roberson 2014 年 4 月 19 日
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.

回答 (1 件)

Walter Roberson
Walter Roberson 2014 年 4 月 19 日
subs(e, {x, y}, {5, 10})
You would probably want to double() the result.

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by