Definite Integral


Syntax:

Field
GRID high low definite-integral
unit_conversion mul

Examples:

  • P definite integral
  • Troubleshooting:

    Definite integral interpolates the end points if necessary, i.e. the limits do not have to be grid points.

    This one is tricky with the unit conversion. The definite integral is computed by taking the sum between two values of the input stream, normalized by the grid distance between them. However, the the grid distance might not be the actual distance. For example the difference in X=2.5 and X=5 is 2.5 degrees, but when taking a definite integral we usually want it in meters. Or the difference is Jan and Feb is 30 days, but we usually want it in seconds. Pressure is usually in mb instead of Pa, ect..