fsolve() crash with given Interval
|
06-05-2014, 06:37 PM
(This post was last modified: 06-05-2014 06:38 PM by parisse.)
Post: #5
|
|||
|
|||
RE: fsolve() crash with given Interval
In radians your system becomes:
Code: eq:=[-0.84=0.3912*cos(x)+0.3824*cos(y)+0.3606*cos(225/180*pi),0=0.3912*sin(x)+0.3824*sin(y)+0.3606*sin(225/180*pi)] Code: implicitplot(eq[0],[x=-0.4..5,y=-0.4..5]);implicitplot(eq[1],[x=-0.4..5,y=-0.4..5],color=red) It seems there are 2 intersection points in [0,2*pi]x[0,2*pi], Code: fsolve(eq,[x,y],[2.1,3.2]); fsolve(eq,[x,y],[3.2,2.1]) Approx solutions here [2.13760652067,3.33911049122] and [3.32352103537,2.12201706482]. This particular system could probably be solved by eliminating one variable using sin^2+cos^2=1. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)