hw08_p02RK4 - k4 = h*hw08_p02deriv(t h y k3 k n = y 1/6(k1...

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

View Full Document Right Arrow Icon
function n = hw08_p02RK4(t,y,h) k1 = h*hw08_p02deriv(t, y ); k2 = h*hw08_p02deriv(t+h/2, y+k1/2); k3 = h*hw08_p02deriv(t+h/2, y+k2/2);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: k4 = h*hw08_p02deriv(t+h, y+k3 ); k n = y + 1/6*(k1 + 2*k2 + 2*k3 + k4);...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online