Updated the trigonometry