Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started