Added additional mathematical functions