code for solving given equations. Eq1 = x == 10-(1.5835*(y^1.7643)); Eq2 = x == (2^y-2)/(0.3143*(2)^y+0.3329*(1.5)^y+0.3528*(1)^y);
1 回表示 (過去 30 日間)
古いコメントを表示
please provide me the code for solving these 2 equations
Eq1 = x == 10-(1.5835*(y^1.7643));
Eq2 = x == (2^y-2)/(0.3143*(2)^y+0.3329*(1.5)^y+0.3528*(1)^y);
0 件のコメント
採用された回答
Davide Masiello
2022 年 10 月 11 日
編集済み: Davide Masiello
2022 年 10 月 11 日
It seems like MatLab can't find a symbolic solution and returns instead a numerical one
syms x y
Eq1 = x == 10-(1.5835*(y^1.7643));
Eq2 = x == (2^y-2)/(0.3143*(2)^y+0.3329*(1.5)^y+0.3528*(1)^y);
solve([Eq1;Eq2])
Another way of solving it
f = @(x) [10-(1.5835*(x(2)^1.7643))-x(1);...
(2^x(2)-2)/(0.3143*(2)^x(2)+0.3329*(1.5)^x(2)+0.3528*(1)^x(2))-x(1)];
fsolve(f,[1 1])
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!