Akzeptierte Antwort

Ameer Hamza
Ameer Hamza am 27 Sep. 2020
Bearbeitet: Ameer Hamza am 27 Sep. 2020

0 Stimmen

Although this equation is linear is x, and you can write the equation of x. For a general case, you can use fsolve()
c = 0.0038416;
f = @(x) c - 0.1*(x-sqrt(c/2));
x = fsolve(f, 0);
If you have the symbolic toolbox
syms x
c = 0.0038416;
eq = c == 0.1*(x-sqrt(c/2));
x = double(solve(eq))

2 Kommentare

Walter Roberson
Walter Roberson am 27 Sep. 2020
I think you missed the sqrt() in the symbolic part?
Ameer Hamza
Ameer Hamza am 27 Sep. 2020
Thanks for pointing out. OP kept changing the question initially, so I forgot to make the change in the symbolic part.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Hilfe-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