Ames Laboratory, Department of Energy, ISU, Ames, Iowa

next up previous
Next: Summary and Conclusions Up: Limitations of Use Previous: Numerical Stability

Use of Constants

Shortcuts for several expressions involve clever use of numerical constants. For example, the expression abc - ab - ac - bc + a + b + c is equivalent to (a - 1)(b - 1)(c - 1) +1, requiring only two multiplications and four adds. a4 - 8a3 + 24a2 - 32a + 16 can be computed as (a - 2)4 using only two multiplications and one add. Such clever methods involving the use of constants can not be found by the Search program.