FC_Poly5AbsExtremeValues

 

FC_Poly5AbsExtremeValues - General Information

Overview

Type:

Function

Available as of:

V1.0.3.0

Versions:

Current version

Task

Calculation of the extreme values of a 5th order equation.

Description

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.

Interface

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

GD.ET_Diag

General library-independent statement on the diagnostic.

A value not equal to ET_Diag.Ok corresponds to an diagnostic message.

q_etDiagExt

ET_DiagExt

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.

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

InputParameterInvalid

DefinitionXInterval

97

The definition of the X interval is invalid.

DefinitionXInterval

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

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The extreme values have been calculated successfully.