Scientific Computing on Itanium-Based Systems

Chapter 9: Basic Examples

Polynomial Evaluation

The accurate and efficient computation of univariate polynomials, expressions of the form c 0 + c 1 x + c 2 x 2 + + c n x n, is important in many core algorithms. This is because polynomials are the normal way of approximating other mathematical functions. For example, one can calculate sin( x) using some truncated version of the standard Taylor series:

Depending on how large x is and the accuracy required in the answer, a moderate number of terms may suffice. Many standard libraries for mathematical functions, including those supplied by Intel and described in Chapter 10 (see also [25][26]), have at their core some such polynomial approximations. Rather than standard Taylor series they often use slightly different minmax polynomials designed to reduce the maximum error in approximation over a chosen interval. The coefficients of such polynomials can be obtained numerically using an algorithm due to Remez [27], and are not in general simple analytical expressions such as . However, these coefficients are created during algorithm design and stored in memory, so the particular c i usually make no essential difference to the task of making the runtime computation of c 0 + c 1 x + c 2 x 2 + + c n x n work efficiently and with acceptable rounding error.

Horner's Rule

The traditional method for evaluating a polynomial c 0 + c

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Thermopiles
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.