This function computes a definite integral using the trapezoidal rule.
function trapezoidalIntegration extends Modelica.Icons.Function; 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;