unable to solve sybolically.

조회 수: 2 (최근 30일)
jad kozah
jad kozah 2019년 3월 25일
답변: jad kozah 2019년 3월 25일
I'm trying to solve this equation but the software keeps on giving me this warning : unable to solve sybolically.
And it goes to vpasolve giving me one solution for x and y while i expecting 6 solutions for x and 6 for y.
when i reduce my equation to
psi = 20.*((y.*cosd(-30))-(x.*sind(-30))) + (c.*log (sqrt((x-1).^2 + (y-1).^2))) + (c.*log (sqrt((x-3).^2 + (y-2).^2)))
Matlab will solve it with no problem giving me two soltions for each x and y as expected.
Any help to solve the entire equation and get my 6 solutions for each x and y ?

답변 (2개)

Krishna Kumar
Krishna Kumar 2019년 3월 25일
Why do you declare this?- [x,y] = meshgrid(0:0.5:10, 0:0.5:10);
if you are anyway declaring x and y to be symbolic later. This could be a source of problem.
  댓글 수: 2
jad kozah
jad kozah 2019년 3월 25일
Thank you for your answer .
I tried to remove it .
i'm still getting the same error .
Any help ?
Krishna Kumar
Krishna Kumar 2019년 3월 25일
Probably the use of sol=solve(u,v); i.e. the syntax could be an issue. I understand this solves u=0 for the variable v. Is this what you want? or do you want to solve psi=0 for x and y?

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


jad kozah
jad kozah 2019년 3월 25일
u is the derivative of psi with respect to y and v is the negative derivative of psi with respect to x.
so we will get u and v in function of x and y only.
u =
10*3^(1/2) + (1791925356007081*(2*y - 2))/(281474976710656*((x - 1)^2 + (y - 1)^2)) + (1791925356007081*(2*y - 4))/(281474976710656*((x - 3)^2 + (y - 2)^2)) + (1791925356007081*(2*y - 2))/(281474976710656*((x - 8)^2 + (y - 1)^2)) + (1791925356007081*(2*y - 4))/(281474976710656*((x - 6)^2 + (y - 2)^2)) + (1791925356007081*(2*y - 6))/(281474976710656*((x - 3)^2 + (y - 3)^2)) + (1791925356007081*(2*y - 6))/(281474976710656*((x - 6)^2 + (y - 3)^2))
v =
- (1791925356007081*(2*x - 2))/(281474976710656*((x - 1)^2 + (y - 1)^2)) - (1791925356007081*(2*x - 6))/(281474976710656*((x - 3)^2 + (y - 2)^2)) - (1791925356007081*(2*x - 6))/(281474976710656*((x - 3)^2 + (y - 3)^2)) - (1791925356007081*(2*x - 12))/(281474976710656*((x - 6)^2 + (y - 2)^2)) - (1791925356007081*(2*x - 12))/(281474976710656*((x - 6)^2 + (y - 3)^2)) - (1791925356007081*(2*x - 16))/(281474976710656*((x - 8)^2 + (y - 1)^2)) - 10
Then i want to get the unknows ( x and y )for u=0 and v=0
two equation ( u and v ) with two unknows ( x and y).
thank you in advanced

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by