Added a number of mathematical functions.