functionderivativeValue
Evaluate an i-the derivative of polynomial at a given Real abszissa value
Information
Syntax
der_y = Polynomial.derivativeValue(p, x, i);
Description
Evaluate an i-th derivative of a polynomial p
at a given Real abszissa value x.
Example
import Modelica_LinearSystems2.Math.Polynomial; x = Polynomial.x(); p1 = -6*x^2 + 4*x -3; Polynomial.derivativeValue(p1, 1, 2); // = -12.0
See also
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Polynomial | p | Polynomial | |
| Real | x | Abszissa value | |
| Integer | i | 1 | i-th derivative to be evaluated; i=1 is first derivative |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | der_y | Value of i-th derivative of polynomial at x |