impl'd trig functions (but no tests) and logarithm