sys.calc() parses a formula at runtime and sets a result
into sys.calc_result.
If the string cannot be parsed correctly, sys.calc() returns -1.
The value in sys.calc_result is undefined in this case.
The formula is a single alpha variable.
It can be constructed using the functions max() and
min(), arithmetic operators, and parenthesis.
The formula must be enclosed in curly braces.
Any numeric variables that are part of the formula must converted
to alpha and concatenated in the right order.