MATH.CalcRootParable (FB)

(CAA_Mathematics.library)

By use of this function block the roots of a quadratic function  (with  ), if there are some, are calculated.

Input:

lrParam2

LREAL

multiplier of  (corresponds to )

lrParam1

LREAL

multiplier of  (corresponds to )

lrParam0

LREAL

multiplier of  (corresponds to )

Output:

byRoots

BYTE

number of roots (0, 1, 2 or 255 (in case of infinite number of roots))

lrRoot0

LREAL

first root (initialized with 0)

lrRoot1

LREAL

second root (initialized with 0)