bugfix for inverse trigonometric functions

fixes #357