How to find the values of tan, cos and sins in the quickest way?