This function computes a definite integral using the trapezoidal rule.
function trapezoidalIntegration input Integer N "Number of integrand points"; input Real[:] f "Integrands"; input Real deltaX "Width of interval for Trapezoidal integration"; output Real result "Result"; end trapezoidalIntegration;