solving three equations for 3 unknows

2 次查看(过去 30 天)
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

请先登录,再进行评论。

更多回答(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 CenterFile Exchange 中查找有关 Assumptions 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by