Unable to compute a taylor expansion
38 次查看(过去 30 天)
显示 更早的评论
syms x
f = log(x);
T1 = taylor(f,x,'order',1);
T2 = taylor(f, x, 'Order', 2);
T4 = taylor(f, x, 'Order', 4);
T8 = taylor(f, x, 'Order', 8);
fplot([T1 T2 T4 T8 f])
I did this and got "Error using symengine Unable to compute a Taylor expansion." and "Error in sym/taylor (line 128) tSym = mupadmex('symobj::taylor',f.s,x.s,a.s,options);"
0 个评论
采纳的回答
KSSV
2021-11-15
syms x
f = log(x);
T1 = taylor(f,x,'ExpansionPoint',1,'order',1);
T2 = taylor(f,x,'ExpansionPoint',1,'order',2);
T4 = taylor(f,x,'ExpansionPoint',1,'order',4);
T8 = taylor(f,x,'ExpansionPoint',1,'order',8);
fplot([T1 T2 T4 T8 f])
更多回答(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!