hw08_p02runge - n function f_xy = fxy(x, y) %f_xy =...

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

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

Unformatted text preview: n function f_xy = fxy(x, y) %f_xy = 1.0/(1.0+x^2) - 2.0*y^2; % problem 2(a) f_xy = -4.0*y + 1.0; % problem 2(b)...
View Full Document

This note was uploaded on 02/22/2010 for the course CHE 348 taught by Professor Chelikowsky during the Spring '08 term at University of Texas.

Ask a homework question - tutors are online