Approximate Math

Goal of this exercise is to learn how to speed-up software choosing the appropriate precision in floating point math
  1. use reciprocal instructions to speed-up divisions and square-roots
  2. using algorithm based on look-up tables or small-polynomial expansions find the best accuracy

Code

in examples:
approxMath.cpp
approxLog.cpp   approxPhi.cpp

References

Fast inverse square root on Wikipedia (and references therein)
icsi-log technical paper
fast math in vlfeat