use our own trigonometric functions for the polar<>cartesian conversion