next up previous contents
Next: Simpson's Rule Up: Integration Routines Previous: Driver program

Trapezoidal Rule

  Write a function of the following form:

double trapint(double f[],double r[],double dr[],int N)

Return value:

Input:



Tomas Arias
Sat Jan 27 11:22:12 EST 2001