%This function implements the Trapezoid rule to approximate the integral of
%a function f(x) over the range a to b.  Written by Philip Shaw, Fordham
%University, 2018.
function[I]=NC(fx,a,b)
h=(b-a)/2;
I=(h)*(fx(a)+fx(b));



