Unable to compute a taylor expansion

38 views (last 30 days)
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);"

Accepted Answer

KSSV
KSSV on 15 Nov 2021
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])

More Answers (0)

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!