Originally Posted by
Mathstud28 Do as many methods as you need to to get this
We are trying to find the intersection or in other words the zeros of the difference of the two equations?
So we have
We have out equal to zero...therefore our function is
NR gives the itteration:
Then five iterations give:
Code:
>x0=0
0
>x1=x0-(exp(x0)-2*cos(x0))/(exp(x0)+2*sin(x0))
1
>x1=x1-(exp(x1)-2*cos(x1))/(exp(x1)+2*sin(x1))
0.627904
>x1=x1-(exp(x1)-2*cos(x1))/(exp(x1)+2*sin(x1))
0.544207
>x1=x1-(exp(x1)-2*cos(x1))/(exp(x1)+2*sin(x1))
0.539797
>x1=x1-(exp(x1)-2*cos(x1))/(exp(x1)+2*sin(x1))
0.539785
So after 2 iterations you have a relativly poor approximation, you realy need more iterations
RonL