Curve funct. (2 points)
Contents

1.Description

This module provides a y-value to an x-value, depending on a straight line that is defined by 2 points. The first point of the straight lines is defined by x1 and y1. The second point of the straight lines is defined by x2 and y2. If x is smaller than x1, y=y1. If x is larger than x2, y=y2. Only functions that increase or decrease strictly monotonically can be realised. This means x1 < x2.

2.Inputs

No.NameInitialisationDescription
1E1 x0
x value
2E2 x10
x value point 1
3E3 y10
y-value point 1
4E4 x20
x-value point 2
5E5 y20
y-value point 2

3.Outputs

No.NameInitialisationSBCDescription
1A1 y0s
y-value as result
s = send, sbc = send by change

4.Value table as an example

XX(1)Y(1)X(2)Y(2)Y
-1505010010050
0505010010050
1505010010050
49505010010050
50505010010050
51505010010051
99505010010099
1005050100100100
1015050100100100
2005050100100100

5.Other

Recalculation during start:Yes
Module is retentive:No
Internal designation:9044
Category:Math. functions

6.Similar functions

Curve funct. (4 points)
Random generator
Minimum value (continuous)
Minimum value (comparative)
Maximum value (continuous)
Maximum value (comparative)
Exponential function
Natural logarithm
Summation
Sliding average (event)
Sliding average (cyclical)
Root
x to the power of y
Logarithm (Base 10)
Absolute value