The function takes a numerical input, multiplies it by some constant value (possibly different for each input), and returns the result. If the input is -1, the function returns nan (not a number).

