The cosine function is implemented in exactly the same manner as the sine function using the approximation: