HW5 - Lora Northcutt APPM4660 HW5 April 4,2008 1. Using...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Lora Northcutt APPM4660 HW5 April 4,2008 1. Using non-linear shooting to solve the boundary problem in Sec 11.2.3a, oo y = y 3 - y y 1 x 2 y (1) = 1 2 y (2) = 1 3 by solving as ODE oo z = 3 y ( x ) 2 - y ( x ) ( ) z - y ( x ) z 1 x 2 y (1) = 0 y (1) =1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Lora Northcutt APPM4660 HW5 April 4,2008 All programs were written in OCTAVE, a MATLAB alternative for Mac. OCTAVE does not recognize tabs so indenting is used sporadically. I apologize for any readability issues this may create. The # symbol is used for comments instead of the % symbol. ################################## #Author: Lora Northcutt # #Date: April 1, 2008 # #Course: APPM 4660 # #Assignment: HW5 # ################################# ####################Non-Linear Shooting Method######################### a=1; b=2; alpha=.5; beta=(1/3); N=5; TOL=0.0001; M=20; k = zeros(N+1,N+1); u = zeros(N+1); w = zeros(N+1,N+1); k_ = zeros(N+1,N+1); function ans_y = y(x) ans_y = 1/(x+1); endfunction function ans_f = f(x,y,y_); ans_f = (y^3)-(y*y_);
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/29/2008 for the course APPM 4650 taught by Professor Norris,ada during the Spring '08 term at Colorado.

Page1 / 4

HW5 - Lora Northcutt APPM4660 HW5 April 4,2008 1. Using...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online