functionintegralValue
Evaluate integral of polynomial from x_low to x_high
Information
Syntax
integral = Polynomial.integralValue(p, x_high, x_low);
Description
Calculate value of integral of a polynomial p
at a given range between x_low and x_high.
Example
import Modelica_LinearSystems2.Math.Polynomial; x = Polynomial.x(); p1 = -6*x^2 + 4*x -3; Polynomial.integralValue(p1, 2); // = -14.0 Polynomial.integralValue(p1, 2, -2); // = -44.0
See also
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Polynomial | p | Polynomial to be integrated | |
| Real | x_high | High integrand value | |
| Real | x_low | 0 | Low integrand value, default 0 |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | integral | 0.0 | Integral of polynomial p from x_low to x_high |