Hi!!! i am using Matlab for the first time!) Please, Can u Help me to solve a non-linear system?!
Show older comments
Hi!!! i am using Matlab for the first time!) Please, Can u Help me to solve a non-linear system?! i have seen some videos about it,, then did what i had seen) but there is an error: <Strings passed to EVAL cannot contain function declarations>, but i don't know what is wrong.. Pleeease, help!! here is the system:
fcns(1)=-y*(2*y^2+2*x^2+4*x^2*y^2+2*x*y-4*x*y^2-4*x^2*y)^(1/2)/(x+y-2*x*y)+1/2*(1-x*y)/(2*y^2+2*x^2+4*x^2*y^2+2*x*y-4*x*y^2-4*x^2*y)^(1/2)/(x+y-2*x*y)*(4*x+8*x*y^2+2*y-4*y^2-8*x*y)-(1-x*y)*(2*y^2+2*x^2+4*x^2*y^2+2*x*y-4*x*y^2-4*x^2*y)^(1/2)/(x+y-2*x*y)^2*(1-2*y);
AND
fcns(2)= -x*(2*y^2+2*x^2+4*x^2*y^2+2*x*y-4*x*y^2-4*x^2*y)^(1/2)/(x+y-2*x*y)+1/2*(1-x*y)/(2*y^2+2*x^2+4*x^2*y^2+2*x*y-4*x*y^2-4*x^2*y)^(1/2)/(x+y-2*x*y)*(4*y+8*x^2*y+2*x-8*x*y-4*x^2)-(1-x*y)*(2*y^2+2*x^2+4*x^2*y^2+2*x*y-4*x*y^2-4*x^2*y)^(1/2)/(x+y-2*x*y)^2*(1-2*x);
2 Comments
bym
on 9 Sep 2011
what do you mean by 'solve'... is fcns(1) = fcns(2)?
Aizhan Merey
on 10 Sep 2011
Accepted Answer
More Answers (1)
bym
on 9 Sep 2011
Using the symbolic toolbox, I got the following using solve() which assumes both expressions are equal to 0. note that i is imaginary symbol (sqrt(-1))
a.x
ans =
1/2
0
i/2 + 1/2
0
1/2 - i/2
a.y
ans =
1/2
i/2 + 1/2
0
1/2 - i/2
0
3 Comments
Aizhan Merey
on 10 Sep 2011
Aizhan Merey
on 10 Sep 2011
Walter Roberson
on 10 Sep 2011
Yes, the i/2 in the answers means sqrt(-1)/2 . As I mentioned above, there is one solution that is completely real-valued, and four solutions that are complex.
Categories
Find more on Calculus in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!