Week 75 of 145 · TAOCP Vol 2: Seminumerical Algorithms

TAOCP 4.2.1 Single-Precision Calculations

2 tasks, 5 steps. Open a task's steps to see exactly what to do; each guide has the detail.

Sign up or sign in to tick these off and give this week a due date.

By the end of this week you can

  • Explain how a floating number is stored as sign, exponent and fraction.
  • Trace floating addition through alignment, normalization and rounding.
  • Compare Knuth's floating format with the IEEE 754 layout.

Checkpoints sit outside the week's count. They never hold up a week or your streak.

Week 75 · Self-check

Three quick questions

Ungraded, and it never holds anything up. Pick an answer to see why.

  1. Before adding two floating numbers with different exponents, what does the addition algorithm do first?
  2. In decimal floating point with 4 significant digits, what is 1.234×10^3 + 5.678×10^0?
  3. Two normalized fractions in [1/b, 1) are multiplied. How much normalizing might the product need?

Nothing is saved while signed out.

Discussion

0 posts

Stuck on week 75, or finished early? Say what you tried and what happened. Hints over answers: full solutions go in a spoiler.

No posts yet. Ask a question or share a tip.

Sign in to postAnyone can read. Posting needs an account with a confirmed email.

Spot a mistake? Report it