Hi there, I am trying to solve a differentiation of long equation. The system shoot me the warning that cannot find a explicit solution. I need the value of X in terms C.
2 ビュー (過去 30 日間)
syms X C
F= 1/2.*((-A) + sqrt((A.^2)-(4.*B)))
Y == 0
John D'Errico 2023 年 6 月 1 日
I want world peace. Does that mean I can have it? I even need world peace. Still, no good. How about you? You need to solve an equation. The same thing applies. Not every problem has a solution.
In fact, there are infinitely many mathematical problems you can write down that have no solution, and this is surely one of them.
You can use a rootfinder. For example vpasolve or even fzero to find a specific solution for any specific numeric value of C. It may work. It will not find all solutions, since there are likely multiple solutions. But based on your starting value, it should work. However that does not give you a simple formulaic solution, for x as a function of C, and very likely, that is simply not possible.
(Note: In your code, the line Y==0, on its own does NOTHING, except waste CPU cycles.)