Add mathematical functions.
Refactored Number logarithm code.
Merge pull request #688 from matthias-springer/number-mathematical

Add more mathematical functions to Number