Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
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 commentaires
John D'Errico
John D'Errico le 6 Juin 2014
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.

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by