Evaluating sine, cosine, and tangent without a calculator