---
name: "integ"
section: "3m"
platform: "linux"
package: "iraf"
version: "2.11.3-2"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/integ"
---

# integ(3m)

## NAME

integ

## DESCRIPTION

subroutine integ.f

source\
   Bevington, page 274.

purpose\
   integrate the area beneath two data points

usage\
   call integ (x, y, nterms, i1, x1, x2, sum)

description of parameters\
   x      - array of data points for independent variable\
   y      - array of data points for dependent variable\
   nterms - number of terms in fitting polymonial\
   i1     - first data point for fitting polynomial\
   x1     - first value of x for integration\
   x2     - final value of x for integration

subroutines and function subprograms required\
   none

comments\
   valid for nterms up to 10
