eqn8 = (19881/(3125*s*2)==((s)/(2*200e+03))+((s)^(1/0.103347))/((2*682.685)^(1/0.103347)));
S4 = (solve(eqn8,s,'real',true));
disp(S4)
MATLAB says an explicit solution for this equation doesnt exist, although i obtained a result manually. What could be wrong, what should i change?

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 11 Dez. 2021

0 Stimmen

You have an equation involving a variable raised to a non-integer floating point power. How can you possibly expect to get an indefinitely-precise solution to the equation, when the coefficients are not even indefinitely precise ? Does the power 1/0.103347 mean you want to take the power 1000000/103347 exactly ? Does it mean that you want 1 divided by some number that is between 1033465/10000000 (inclusive) and 1033475/10000000 (exclusive) ?
If it means that you want 1000000/103347 exactly, then why didn't you code that? And how did you manually take the 103347'th root of s to the 1000000 to find an exact answer? Algebra says that you cannot generally find the exact solution of a root beyond 4th root.
solve() should only be used when you are looking for indefinitely-precise answers. If you are looking for decimal results, use vpasolve() . You will need to give it a real-valued starting point such as 0 or else it will produce a complex result. The solution is about 734-ish.

Weitere Antworten (0)

Produkte

Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by