TODO: rebase Trigonometric

First (basic) implementations of the missing trigonometric and inverse trigonometric
functions. Also some enhancements and changes to the existing functions.
There is still much work left.

I know that there are test failures, mostly due to changed formulas.
The test cases for the new code parts are not written yet.

Hence please consider this to be a request for general comments rather
than a pull request.