Code covered by the BSD License  

Highlights from
Classical_Mechanics_with_Matlab_applications_JEH.zip

from Classical_Mechanics_with_Matlab_applications_JEH.zip by Javier Hasbun
Applications from the text: Classical Mechanics with Matlab applications by Javier E Hasbun, Jones &

trapez=trap(f,inc)
%trap.m - uses the native trapz
function trapez=trap(f,inc)   
%trapezoid method for numerical integration
%f is an array of evaluated functions in steps inc
trapez=inc*trapz(f);

Contact us at files@mathworks.com