(CAA_Mathematics.library)
By use of this function block the root of a linear function (with ), if there is one, will be calculated.
Input:
lrParam1
|
LREAL
|
gradient of straight line (corresponds to )
|
lrParam0
|
LREAL
|
height at which line cuts the vertical y-axis (corresponds to )
|
Output:
byRoots
|
BYTE
|
number of roots (0, if line is parallel, but not identical to horizontal x-axis, 255, if line is identical to x-axis, 1 else)
|
lrRoot
|
LREAL
|
root (initialized with 0)
|