calculate cos a and tan a.