Solve two simultaneous equations for a set value of y

1 回表示 (過去 30 日間)
Bob Sherland
Bob Sherland 2021 年 5 月 12 日
コメント済み: Bob Sherland 2021 年 5 月 12 日
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

回答 (1 件)

Walter Roberson
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)
xsol = 
vpa(xsol)
ans = 
  1 件のコメント
Bob Sherland
Bob Sherland 2021 年 5 月 12 日
Thankyou! That's perfect

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

カテゴリ

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