I got a problem when I derived the taylor expansion for norm funtion.
My code
syms q z H q_0 z_0 alphaf=((abs(q - z)^2)^(1/2)^2+H)^(alpha/2);tf=taylor(f,[q z],[q_0 z_0],'Order',2);latex(collect(tf,[q-q_0 z-z_0]))
but matlab throws this wrong message:
错误使用 symengineUnable to compute a Taylor expansion.出错 sym/taylor (第 128 行)tSym = mupadmex('symobj::taylor',f.s,x.s,a.s,options);出错 derivation (第 7 行)tf=taylor(f,[q z],[q_0 z_0],'Order',2);
I tried to use (abs(q-z)^2)^(1/2) instead of norm(q-z), unfortunately, it still doesn't work.
Best Answer