필터 지우기
필터 지우기

Solving Non-linear equations

조회 수: 2 (최근 30일)
Hazem
Hazem 2015년 8월 5일
댓글: Hazem 2015년 8월 6일
Hi !
I am trying to solve this set of non-linear equations using Matlab ... and i am not getting any solution
they are 3 equations with three variables as follow:
-1.63-10.6*cos(x-z-1.41)-13.2*cos(x-y-1.38)=0
3.42-36*cos(y-z-1.38)-48.8*cos(y-x-1.38)=0
34.1-76.5*cos(z-y-1.38)-83.4*cos(z-x-1.41)=0
I tried fsolve and feval functions but i did not get any answer!!
thanks in advance for help
  댓글 수: 2
Walter Roberson
Walter Roberson 2015년 8월 5일
No real-valued solutions. I did not check for complex solutions.
Hazem
Hazem 2015년 8월 6일
Thank you Mr.Walter

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

답변 (1개)

Matt J
Matt J 2015년 8월 5일
The code below does a search for the minimum by numerical sampling of x,y,z at 1 degree intervals. It does not find a point that brings F close to zero, indicating that there probably is no solution,
[x,y,z]=ndgrid(single(linspace(-pi,pi,360)));
F1=-1.63-10.6*cos(x-z-1.41)-13.2*cos(x-y-1.38);
F2=3.42-36*cos(y-z-1.38)-48.8*cos(y-x-1.38);
F3=34.1-76.5*cos(z-y-1.38)-83.4*cos(z-x-1.41);
F=abs(F1)+abs(F2)+abs(F3);
[minval,i]=min(F(:));
xyz_min=[x(i),y(i),z(i)],
minval,
  댓글 수: 1
Hazem
Hazem 2015년 8월 6일
by using this code .... i am getting minimum value of the function F around(6.18)
by using fval function i got 0.233, but still it does not reach to zero
any way ... from your answer and from Mr.Walter's answer i can be sure that this set of non linear equations is unsolvable (or at least no real solution)
thanks for your help ... i really appreciate that

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

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by