Borrar filtros
Borrar filtros

Solve two simultaneous equations for a set value of y

2 visualizaciones (últimos 30 días)
Bob Sherland
Bob Sherland el 12 de Mayo de 2021
Comentada: Bob Sherland el 12 de Mayo de 2021
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

Respuestas (1)

Walter Roberson
Walter Roberson el 12 de Mayo de 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 = 

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by