tabhl function

The tabhl function of such form:

tabhl(y_table, x_value, x_low, x_high, x_incr)

will return the projection of x_value on the curve defined by y=y_table and x=[x_low, x_high] with step x_incr. Example:

table = [14, 5, 4, 3, 4, 5, 6, 7, 8, 9, 9]
x_low, x_high, x_incr = 0, 10, 1
x_value = 4.5

Then the tabhl function will behave as:

_images/tabhl_works.png