Floating-Point

Prev: Hilbert’s Curve

Next: Formulas for Primes

Sections

  • 17-1 IEEE Format
  • 17-2 Floating-Point To/From Integer Conversions
  • 17-3 Comparing Floating-Point Numbers Using Integer Operations
  • 17-4 An Approximate Reciprocal Square Root Routine
  • 17-5 The Distribution of Leading Digits
  • 17-6 Table of Miscellaneous Values

Problems

  1. What numbers have the same representation, apart from trailing 0’s, in both single- and double-precision?

  2. Is there a program similar to the approximate reciprocal square root routine for computing the approximate square root?

  3. Is there a similar program for the approximate cube root of a nonnegative normal number?

  4. Is there a similar program for the reciprocal square root of a double-precision floating-point number? Assume it is for a 64-bit machine, or at any rate that the long long, 64-bit integer, data type is available.