New trigonometric methods
Improved precision handling and simplified code logic for unit tests