How to solve this symbolic nonlinear equation

1 Ansicht (letzte 30 Tage)
Amit Kumar
Amit Kumar am 12 Mär. 2014
Kommentiert: Amit Kumar am 12 Mär. 2014
Hello all, I am getting stuck at solving a nonlinear symbolic equation. Here is code:
syms F0;
%temp1 is obtained by some computations on different variables. Final result is given below
temp1=0.000015703323139706438927296317410964*F0^2;
solve('temp1=1',F0)
Matlab gives warning that Explicit solution could not be found. How to solve equation using solve() with variables inside? I don't want to use 'equation=0'. I want to use variables. Any help? Thanks.

Akzeptierte Antwort

Mischa Kim
Mischa Kim am 12 Mär. 2014
Amit, how about
syms F0;
temp1 = 0.000015703323139706438927296317410964*F0^2;
double(solve(temp1==1,F0))
  1 Kommentar
Amit Kumar
Amit Kumar am 12 Mär. 2014
Simple catch, I didn't thought of! Thank you very much!!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by