Question: A. Write a program in matlab to find the first 10 positive solutions of x=cot(x) using newton integration. B. Find a formula for the approximation

A. Write a program in matlab to find the first 10 positive solutions of x=cot(x) using newton integration.

B. Find a formula for the approximation of the solutions using 1 step of newton integration.

The correct program is similar to the one I have down below but it is incorrect. I need help modifying my program to answer parts A and B. Thanks.

for n=1:10 x=n*pi+pi/2; e=1; while e>1.E-10 y=x-(x*cos(x)-sin(x))/(-x*sin(x)); e=abs(x-y); x=y; end disp([n,x,n*pi+pi/2-1/(n*pi+pi/2),x-tan(x)]); end

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!