Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Integral Block

Integral Block

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

Optionally, the integral can be reset to 0.0 if a reset signal is attached that emits a truthy value.

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