Solve function 'can't find explicit solution'.

4 ビュー (過去 30 日間)
Hunter Hansen
Hunter Hansen 2017 年 4 月 12 日
回答済み: Walter Roberson 2017 年 4 月 13 日
Hello, I'm trying to solve an equation for values of 'a' and 'b'. I know that the value I assigned 'd' is true for a = 0, b = 7, but I get a warning that Matlab cannot find an explicit solution. Can I get some guidance on how I should address this? Any and all help would be greatly appreciated!
a = sym('a', 'integer');
b = sym('b', 'integer');
d = sym('-21168');
d_eq = d == -16*(4*a^3+27*b^2);
[sola, solb] = solve(d_eq,a,b);

回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 4 月 13 日
MATLAB cannot solve for more variables than there are equations. You have to pick one variable to solve for.
I find solutions for b = +/- 7, +/- 9, and +/- 105

カテゴリ

Help Center および File ExchangeCalculus についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by