{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

hw07_p04trap - y function f_xy = fxy(x y f_xy = 1.0(1.0...

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

View Full Document Right Arrow Icon
function [ypred, yactual] = hw07_p04trap( x, y, h) ypred = y + h*fxy(x,y); yactual = y + 0.5*h*(fxy(x+h,ypred) + fxy(x,y));
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 function f_xy = fxy(x, y) f_xy = 1.0/(1.0+x^2)-2.0*y^2;...
View Full Document

{[ snackBarMessage ]}