solving three equations for 3 unknows

1 回表示 (過去 30 日間)
Valerie Cala
Valerie Cala 2019 年 6 月 10 日
コメント済み: Star Strider 2019 年 6 月 10 日
Hi Guys, I have the three following equations:
(2*c*w1)+b2 == 0.3205;
((2*c*b2)+ w1)*w1 == 214200;
(b2*w1)==1.2260e+05;
And I need to find the values of: c, w1 and b2.... is there a function for me to do it?
Thanks for your time.

採用された回答

Star Strider
Star Strider 2019 年 6 月 10 日
For your system, use vpasolve (link) to get numeric results. You may also need to use the double function if you want to use the results in other calculations.
syms c w1 b2
Eqs = [(2*c*w1)+b2 == 0.3205;
((2*c*b2)+ w1)*w1 == 214200;
(b2*w1)==1.2260e+05];
[c,w1,b2] = vpasolve(Eqs, [c,w1,b2])
  4 件のコメント
Valerie Cala
Valerie Cala 2019 年 6 月 10 日
Thank you! everything is clear now :3
Star Strider
Star Strider 2019 年 6 月 10 日
As always, my pleasure!

サインインしてコメントする。

その他の回答 (1 件)

Jon Wieser
Jon Wieser 2019 年 6 月 10 日
try:
D=solve('(2*c*w1)+b2 = 0.3205','((2*c*b2)+ w1)*w1 = 214200','(b2*w1)=1.2260e+05;','c','w1','b2')

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by