Errors for n

Errors for n - >> yr =...

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

View Full Document Right Arrow Icon
Errors for n = 10 (yr: RK2 output; e2: RK2 error; ye: ModEuler output; e1: ModEuler error) >> yr = [0.995170881147463 -11.231920231186779] yr = 0.995170881147463 -11.231920231186779 >> e2 = abs(y - yr) e2 = 0.004829118852537 11.231920231186779 >> ye = [0.995170881147465 -11.231920231186775] ye = 0.995170881147465 -11.231920231186775 >> e1 = abs(y - ye) e1 = 0.004829118852535 11.231920231186775 Errors for n = 100 (yr: RK2 output; e2: RK2 error; ye: ModEuler output; e1: ModEuler error)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: >> yr = [1.002578489509985 -0.033012597933433] yr = 1.002578489509985 -0.033012597933433 >> e2 = abs(y - yr) e2 = 0.002578489509985 0.033012597933433 >> ye = [1.002578489509985 -0.033012597933433] ye = 1.002578489509985 -0.033012597933433 >> e1 = abs(y - ye) e1 = 0.002578489509985 0.033012597933433 >> [T Y] = myRK2(f,[0 4*pi],[1;0],100)...
View Full Document

This note was uploaded on 01/15/2011 for the course MATH 345 taught by Professor Staff during the Spring '08 term at Ohio State.

Ask a homework question - tutors are online