Quote:
I would like an expression ...
If you are looking for program code, please mention what Programming Language or Shell. A sample goes a long way.
My interpretation of the question.
The table headed "INPUT OUTPUT" is a look-up table of some sort (not clear whether it is a file). Not clear where the input data comes from.
Using this table you can determine that inputting "-3" should provide the output "-27.