update trigonometric calculations