functionf
Polynomial expressed in form: f = ((… + a-1-n)/x + a-n)/x + a1-n + x·(a2-n + x·(a3-n + …))
Extends from Modelica.Icons.Function (Icon for functions).
Information
For high-order polynomials, this is more computationally efficient than the form Σai xn + i - 1.
Note that the order of the polynomial is
n + size(a, 1) - 1 (not n).
The derivative of this function is df().
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | x | Argument | |
| Real[:] | a | Coefficients | |
| Integer | n | 0 | Power of the first term |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | f | Result |
Contents
| Name | Description |
|---|---|
| positivePolyprotected | Polynomial expressed in form: y = x*(a + x*(a2 + …)) |