isolate function is not providing multiple solutions to a polynomial problem?
1 回表示 (過去 30 日間)
古いコメントを表示
I used the "isolate function" as per matlab documentation, https://in.mathworks.com/help/symbolic/sym.isolate.html
The first example shown for isolating 'x' from a quadratic equation gives only one root as output. Can someone explain how to get other root of quadratic as output?
Isolate Variable in Equation
Isolate x in the equation a*x^2 + b*x + c == 0.
----------------------------------------------------------------------------
syms x a b c
eqn = a*x^2 + b*x + c == 0;
xSol = isolate(eqn, x)
-----------------------------------------------
xSol =
x == -(b + (b^2 - 4*a*c)^(1/2))/(2*a)
0 件のコメント
回答 (1 件)
Star Strider
2024 年 12 月 2 日
syms x a b c
eqn = a*x^2 + b*x + c == 0;
xSol = solve(eqn, x)
pretty(xSol)
.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Symbolic Math Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!