add pow() function, convert squareRoot() and invert() to use safePow() instead, refs #803
make safePow more impervious to math domain errors
wrong var name
Merge pull request #808 from obfuscurity/pow

Add pow() function