Displaying unreal numbers in system of equations
조회 수: 1 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
답변 (1개)
Chetan Bhavsar
2021년 10월 9일
편집: Chetan Bhavsar
2021년 10월 9일
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)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Systems of Nonlinear Equations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!