hw3 - y ( x ) = ( x + 1)-1 . b) Compute two approximations...

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

View Full Document Right Arrow Icon
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 00 = y 3 - yy 0 , 1 x 2 , (1) y (1) = 1 2 and y (2) = 1 3 . (2) The exact solution is
Background image of page 1
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

This note was uploaded on 11/23/2010 for the course MATH 104b taught by Professor Ceniceros,h during the Spring '08 term at UCSB.

Ask a homework question - tutors are online