solve quadratic equation problem
2 次查看(过去 30 天)
显示 更早的评论
Hi guys, I am trying to solve a quadratic equation for Mu, but when i use solve (f,Mu) an X show up which is not in the original equation. i do not know how.
the quadratic equation;
(((V1*K1)/(K1+((4*Mu)/3)))+((V2*K2 )/(K2+((4*Mu)/3))))+ 5*(((V1*Mu2)/(Mu-Mu2))+((V2*Mu1)/(Mu-Mu1)))+2; =0
f=(((V1*K1)/(K1+((4*Mu)/3)))+((V2*K2 )/(K2+((4*Mu)/3))))+ 5*(((V1*Mu2)/(Mu-Mu2))+((V2*Mu1)/(Mu-Mu1)))+2;
solve(f,Mu)
0 个评论
采纳的回答
Walter Roberson
2012-11-3
It isn't a quadratic equation, it is a quartic equation. The explicit solutions for it total over a million characters long.
Did you notice the RootOf that showed up in the answer? See http://www.mathworks.com/help/symbolic/mupad_ref/rootof.html
2 个评论
Walter Roberson
2012-11-3
You probably got something more like Example 3, RootOf(expression_in_z, z) where the roots are the quantities, z, such that expression_in_z becomes 0. These are not explicit values, and (in general) are not even necessarily analytically computable (but they are for quartics): the RootOf() structure represents "whatever works to make the expression 0"
To find out what the roots actually are for the quartic, you would need to ask solve() to expand up to degree 4. The result will be very messy, though, and it is doubtful you will be able to really grasp them intuitively. It gets a bit easier when you substitute actual values in for the variables, but even then and even with pretty simple coefficients, values show up that tend to make me go "Huh??" For example even just x^4+x^3+x^2+x+1 has a solution that involves a term that is a square root of an expression that involves a term that is a square root of an expression that involves a term that is the square root of 375. I have no feel at all for how one gets from the very simple coefficients of all 1's, to multiply-nested square roots of 375... and your expression is much worse.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Linear Least Squares 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!