Solve two simultaneous equations for a set value of y
1 次查看(过去 30 天)
显示 更早的评论
Hi, I want to solve the following two equations, for a set value.
Equation 1
A=(1/x)*(2/(y+1)*(1+(y-1)/2*x^2))^((y+1)/(2*(y-1)));
Equation 2
P=(((y+1)/2*x^2)/(1+(y-1)/2*(x^2)))^(y/(y-1))*((1)/(((2*y)/(y+1))*x^2-((y-1)/(y+1))))^(1/(y-1));
y=1.4, and is always this value
Such that
A*P=1.2, with y=1.4
Need to determine the value of x, which should be 1.928 approximately
0 个评论
回答(1 个)
Walter Roberson
2021-5-12
y = 1.4;
syms x
A = (1/x)*(2/(y+1)*(1+(y-1)/2*x^2))^((y+1)/(2*(y-1)));
P = (((y+1)/2*x^2)/(1+(y-1)/2*(x^2)))^(y/(y-1))*((1)/(((2*y)/(y+1))*x^2-((y-1)/(y+1))))^(1/(y-1));
xsol = solve(A*P == 1.2, x)
vpa(xsol)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Mathematics and Optimization 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!