Mathematical expressions

Signed-off-by: Andrew Porter <mephisto83@hotmail.com>