add a math function.
Merge pull request #14 from VBlizzard/patch-75

add a math function.