{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# hw3 - y x = x 1-1 b Compute two approximations using h = 0...

This preview shows page 1. Sign up to view the full content.

Math 104C, Homework 3 Instructions: Write your own code and attach it to your homework. You may use an already written tridiagonal solver but you should write the other parts of the code yourself. 1. a) Implement the Nonlinear Finite-Difference Algorithm with TOL = 10 - 4 to approx- imate the solution of the following BVP: y = y 3 - yy , 1 x 2 , (1) y (1) = 1 2 and y (2) = 1 3 . (2) The exact solution is
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: y ( x ) = ( x + 1)-1 . b) Compute two approximations using h = 0 . 1 and h = 0 . 05 respectively and verify the order of accuracy of the method. Plot the approximations to the solutions of (1)-(2). c) Using b) perform Richarson extrapolation and compare the error with that obtained in b). Explain the result....
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online