How to find value of cos(-pi/2)?