Update math.lua

A lot of news functions maths