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);"

采纳的回答

KSSV
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 CenterFile Exchange 中查找有关 Calculus 的更多信息

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by