Unable to solve symbolic equation> Error Warning: Explicit solution could not be found. > In solve at 81
Show older comments
Hi Pals,
I am not able to find solution to an equation in symbolic Matlab. I would greatly appreciate any help.
syms a1 a2 a3 p c F;
F=sqrt(1-a1*p)+sqrt(1-a2*p)+sqrt((1-a1*p)*(1-a2*p))+c;
Psol = solve(F,p) >> Gives error here
Many Thanks PK
Accepted Answer
More Answers (2)
Prabhat
on 4 Aug 2013
0 votes
Roger Stafford
on 4 Aug 2013
Any solution to your equation must be a root of the following quartic equation in p:
(a1*a2)^2*p^4-2*a1*a2*(c-1)*(c-3)*p^2+4*(a1+a2)*(c-1)^2*p+(c-1)^3*(c+3) = 0
However, the reverse does not hold. Not all roots of this quartic are necessarily solutions to your equation.
Categories
Find more on Symbolic Math Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!