SINCOSTAN
Law of cosines