CSC 344 - Algorithms and Complexity

Assignment #11 - Calculating sin x efficiently using the Taylor series

Due Friday, May 12, 2017

We know that the following formulae show the series that can be used to calculate cos(x) and sin(x):



We saw in class how to calculate a series ore efficiently. Use this concept to write a function that uses the first 20 terms to evaluate sin(x) where x is the angle expressed in radians. Write a main program to serve as a driver for the function.

[Back to the Assignments Page]