Clear Filters
Clear Filters

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

2 views (last 30 days)

Accepted Answer

Torsten
Torsten on 17 Jul 2022
Edited: Torsten on 17 Jul 2022
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 ?

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!