Integral Block

Integral Block

The Integral block emits the discrete integral of the input signal to approximate the definite integral.

Parameters

  • Method [Rectangle | Trapezoidal]
    • Rectangle: Performs Rectangle-rule discrete integration. While often less accurate that Trapezoidal, it is slightly faster, and has the benefit of sympletic conservation.
    • Trapezoidal: Performs Trapezoidal rule discrete integration. Generally more accurate than Rectangular, but can diverge more noticebly if large step sizes are used.
  • Initial Condition (default = 0): Specifies an initial offset value for the integral.
  • Clamp Limit (default = 1e100): Specifies a maximum magnitude for the integral. Beyond this limit (positive or negative), no further integration will occur.

Examples

Integral Example