Displaying unreal numbers in system of equations

1 visualización (últimos 30 días)
Danny Allen
Danny Allen el 9 de Oct. de 2021
Editada: C B el 9 de Oct. de 2021
I have this system of equations that I'm trying to run, but I don't know what to do to display the imaginary numbers in the solution. This is what I have so far:
syms K
eqn = K == (981 - 250*(K + (3^(1/2)*5^(1/2)*(400*K^2 + 981)^(1/2))/50)^2)^(1/2)/20;
sol = vpasolve(eqn,K);
disp('K=')
disp(sol)
Any help is greatly appreciated.

Respuestas (1)

C B
C B el 9 de Oct. de 2021
Editada: C B el 9 de Oct. de 2021
syms K
eqn =(981 - 250*(K + (3^(1/2)*5^(1/2)*(400*K^2 + 981)^(1/2))/50)^2)^(1/2)/20;
sol = vpasolve(eqn,K);
sol1 = vpasolve(K==eqn,K);
disp(sol)
disp(sol1)

Categorías

Más información sobre Systems of Nonlinear Equations en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by