Practice question · Multiple choice
Libraries compute sin(x) from a polynomial rather than from any geometric definition. Why is a polynomial the right thing for a processor to evaluate?
Hints
- List the operations a processor performs natively. Is sine among them?
- Ask what a polynomial consists of.
Show the answer
C. Because a CPU has only addition and multiplication to work with.
Why
A processor adds and multiplies, so evaluating sine means reducing it to operations that exist, and a polynomial is exactly that. The polynomial is not equal to sine; it agrees near the expansion point, so implementations first fold the argument into a small range using periodicity. Nor are the coefficients Taylor's: minimax polynomials hit the same accuracy over an interval with fewer terms.
Practise Taylor Series and Approximation
The app has 6 more questions on this lesson, and keeps your place in the course. Computer Science I is free to start.
More questions on Taylor Series and Approximation
- Complete the statement about where a Taylor polynomial works best.
- Select every reason Taylor series matter for computing.
- Order what the successive Taylor terms make the polynomial match, starting from the centre.
- A NumPy operation on a million-element array runs fifty times faster than the equivalent Python loop,…