FC_Poly5AbsExtremeValues - General Information
Type: |
Function |
Available as of: |
V1.0.3.0 |
Versions: |
Current version |
Calculation of the extreme values of a 5th order equation.
Calculates the absolute extreme values of the 5th order polynomial for the interval [i_lrX0, i_lrX1] provided by the coefficient array i_alrCoefficients.
If the absolute extreme values of a polynomial, which meets specific boundary conditions, are to be calculated, the coefficient array of the polynomial can first be calculated by means of the function FC_Poly5Coefficients.
Input |
Data type |
Description |
---|---|---|
i_lrX0 |
LREAL |
Lower limit of the considered X interval. |
i_lrX1 |
LREAL |
Upper limit of the considered X interval. |
i_alrCoefficients |
ARRAY[0..5] OF LREAL |
Coefficient array of the polynomial whose absolute extreme values are to be calculated, with the element 5 being the coefficient of the highest order and the element 0 being the coefficient of the lowest order. |
Output |
Data type |
Description |
---|---|---|
q_etDiag |
General library-independent statement on the diagnostic. A value not equal to ET_Diag.Ok corresponds to an diagnostic message. |
|
q_etDiagExt |
POU-specific output on the diagnostic. q_etDiag = ET_Diag.Ok -> Status message q_etDiag <> ET_Diag.Ok -> Diagnostic message |
|
q_lrXAbsMin |
LREAL |
X-value of the absolute minimum of the polynomial for the considered interval. |
q_lrYAbsMin |
LREAL |
Y value of the absolute minimum of the polynomial for the considered interval. |
q_lrXAbsMax |
LREAL |
X value of the absolute maximum of the polynomial for the considered interval. |
q_lrYAbsMax |
LREAL |
Y-value of the absolute maximum of the polynomial for the considered interval. |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
OK |
0 |
Ok |
|
InputParameterInvalid |
97 |
The definition of the X interval is invalid. |
Enumeration name: |
DefinitionXInterval |
Enumeration value: |
97 |
Description: |
The definition of the X interval is invalid. |
Issue |
Cause |
Solution |
---|---|---|
- |
The definition of the X interval via i_lrX1 and i_lrX0 is invalid. |
The following must hold: i_lrX1> i_lrX0 |
Enumeration name: |
Ok |
Enumeration value: |
0 |
Description: |
Ok |
The extreme values have been calculated successfully.