Where is the mistake? Taylor Series in matlab?
1 回表示 (過去 30 日間)
古いコメントを表示
Hi everyone
i want to use taylor in matlab but i seem to have made a mistake here
here:
syms T
alpha = 0.056;
beta = 0.0000186;
R = 2000;
(-100<T) && (T<200)
f = R*(alpha+0.0078*(T-25)+beta*(T-25)^2);
taylor1 = taylor(f,'Order',1);
pretty(taylor1)
and i want to find out for T = 80
It says "Conversion to logical from sym is not possible." Can somebody correct or at least tell me what i did wrong
0 件のコメント
採用された回答
VBBV
2023 年 1 月 7 日
syms T
alpha = 0.056;
beta = 0.0000186;
R = 2000;
f = R*(alpha+0.0078*(T-25)+beta*(T-25).^2);
f = subs(f,T,80);
taylor1 = taylor(f,'Order',1);
pretty(taylor1)
3 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Calculus についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!