Don't know where my code is wrong and how to fix it

1 次查看(过去 30 天)

采纳的回答

Torsten
Torsten 2022-7-17
编辑:Torsten 2022-7-17
Pi = sym(pi)
Pi = 
π
double(Pi)
ans = 3.1416
Pi = sym('pi')
Pi = 
π
double(Pi)
Error using symengine
Unable to convert expression containing symbolic variables into double array. Apply 'subs' function first to substitute values for variables.

Error in sym/double (line 868)
Xstr = mupadmex('symobj::double', S.s, 0);
You understand the difference ?

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by