필터 지우기
필터 지우기

Problem with solving the symbolic equation in Matlab; Warning: Explicit solution could not be found. > In solve at 179 [ empty sym ]]

조회 수: 1 (최근 30일)
Dear all,
I would like to solve the following equation symbolically so that to make the variable ’alp2’ the subject of the equation ( e.g. alp2=….). Note that, the only unknown variable is ‘alp2’
qm=
(2^(1/2)*a1*a2*alp1*alp2*cdg*(rg1*(dp - g*hi*(alp1*rg1 - rw*(alp1 - 1)) - g*htt*(alp2*rg2 - rw*(alp2 - 1)) + g*hc*(- avg_rg^2 + rw*(alp1/2 + alp2/2 - 1))))^(1/2))/(a1^2*alp1^2*p - a2^2*alp2^2)^(1/2) + (2^(1/2)*a1*a2*cdw*(rw*(dp - g*hi*(alp1*rg1 - rw*(alp1 - 1)) - g*htt*(alp2*rg2 - rw*(alp2 - 1)) + g*hc*(- avg_rg^2 + rw*(alp1/2 + alp2/2 - 1))))^(1/2)*(alp1 - 1)*(alp2 - 1))/(a1^2*(alp1 - 1)^2 - a2^2*(alp2 - 1)^2)^(1/2)
--------------------------------------------
I wrote the following code, but the output message was [ empty sym ];
>> syms cdg rg1 rg2 dp a1 a2 alp1 alp2 p cdw rw g hi hc avg_rg avg_alpa htt;
>>solve(' qm=(2^(1/2)*a1*a2*alp1*alp2*cdg(rg1*(dp - g*hi*(alp1*rg1 - rw*(alp1 - 1)) - g*htt*(alp2*rg2 - rw*(alp2 - 1)) + g*hc*(- avg_rg^2 + rw*(alp1/2 + alp2/2 - 1))))^(1/2))/(a1^2*alp1^2*p - a2^2*alp2^2)^(1/2) + (2^(1/2)*a1*a2*cdw*(rw*(dp - g*hi*(alp1*rg1 - rw*(alp1 - 1)) - g*htt*(alp2*rg2 - rw*(alp2 - 1)) + g*hc*(- avg_rg^2 + rw*(alp1/2 + alp2/2 - 1))))^(1/2)*(alp1 - 1)*(alp2 - 1))/(a1^2*(alp1 - 1)^2 - a2^2*(alp2 - 1)^2)^(1/2)* ',alp2)
-------------------------
The output after running the code was;
Warning: Explicit solution could not be found.
> In solve at 179
ans =
[ empty sym ]
--------
Any suggestions?
Kind regards
  댓글 수: 3
John D'Errico
John D'Errico 2014년 6월 6일
And do you expect that an analytical solution MUST exist for any possible problem you might pose? Sorry, but magic only happens for Harry Potter, unless of course, you happen to have a magic wand.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Assumptions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by