trapezoidal_linear function

Linear trapezoidal rule