Azzera filtri
Azzera filtri

Solve two simultaneous equations for a set value of y

2 visualizzazioni (ultimi 30 giorni)
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

Risposte (1)

Walter Roberson
Walter Roberson il 12 Mag 2021
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 = 

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by