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