Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(a) Write a program that solves the problem above (for given values of T,, ) by using Newton's method. Test your code with the boundary

image text in transcribed

image text in transcribed

(a) Write a program that solves the problem above (for given values of T,, ) by using Newton's method. Test your code with the boundary conditions and initial guesses given in the textbook. (b) Try taking T larger (perhaps 6,8, or larger) and see what kinds of solutions you can find, by trying different initial guesses. You will probably observe that Newton's method is very sensitive to the initial guess and often diverges (note that if it's going to converge, it usually won't take more than 10 iterations to do so). Make sure your initial guess satisfies the boundary conditions, and try adjusting it until you find some solutions. Can you find two initial guesses that are very close but converge to very different final solutions? You may also find solutions that have "boundary layers" (see section 2.17 of the text, if you're interested). Explain what kind of physical motion each solution corresponds to. In this exercise, you will solve the nonlinear boundary value problem: (t)=sin((t))(0)=,(T)= corresponding to the motion a rigid pendulum, where is the angle between the pendulum and the vertical axis (with =0 corresponding to the pendulum hanging directly downward). You should use Newton's method, which amounts to solving the system J([k])[k]=G([k]) where the superscript [k] denotes the iteration number. The next iterative solution is then [k]+1=[k]+[k] The code below constructs G and J. Now for your part

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David J. Auer

3rd Edition

0131986252, 978-0131986251

More Books

Students also viewed these Databases questions

Question

3. What might you have done differently

Answered: 1 week ago

Question

4. Did you rethink your decision?

Answered: 1 week ago

Question

3. Did you seek anyones advice?

Answered: 1 week ago