Week 77 of 145 · TAOCP Vol 2: Seminumerical Algorithms

TAOCP 4.2.3 and 4.2.4

2 tasks, 6 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 double-precision value splits into high and low parts.
  • Compute leading-digit probabilities with the law log10(1 + 1/d).
  • Recognize why scale invariance leads to the logarithmic law.

Week 77 · Self-check

Three quick questions

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

  1. When double precision is built from single-precision operations, what does the lower-order part of a result hold?
  2. Under the logarithmic law, about how often is the leading digit less than 5?
  3. Why does the logarithmic law of leading digits survive converting data to other units, such as dollars to euros?

Nothing is saved while signed out.

Watch along

Free talks and lectures that go with this week, on the speakers' own channels. Optional.

Discussion

0 posts

Stuck on week 77, 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