c06 · E2

Derive: The Real Machine

c06.E2.1E2 · expression

Section 6.1 says the spacing of the 32-bit format grows with the number, and section 6.2 says the relative error of a difference is one rounding times the cancellation ratio. Neither section proves the other half of that sentence.

Derive the spacing of the 32-bit format inside the binade . Show that the relative spacing there lies between and . Use the result to bound the relative error of a difference by times the cancellation ratio. Evaluate the spacing at and at , and give the bound for a difference of 1 at .

This tier asks for a derivation, so there is no automatic checker. Write your answer, then open the worked solution and compare.

c06.E2.2E2 · expression

Section 6.2 reports that above the spacing of the 32-bit format is 2, so adding one to that number returns the number itself. That report is about one value, and the claim is stronger.

Prove that every 32-bit float in has spacing 2, so that can only round to or to . Then give the smallest positive integer for which is representable but is not, and evaluate and .

This tier asks for a derivation, so there is no automatic checker. Write your answer, then open the worked solution and compare.

c06.E2.3E2 · expression

Section 6.4 works one layer at a batch of 512 and at a batch of 1, and the two answers fall on opposite sides of the ridge. The section does not say where the crossing lies, and it treats the batch as a number to look up rather than a quantity to solve for.

Take a dense layer with inputs and outputs, batch , and two bytes per number. Derive its arithmetic intensity as a function of , solve for the smallest whole batch at which the layer becomes compute-bound against a ridge , and evaluate the answer for and . Check the intensity one batch below the crossing and at the crossing.

This tier asks for a derivation, so there is no automatic checker. Write your answer, then open the worked solution and compare.

Other tiers

E1 Practise · E3 Open

Every hint opened, solution viewed and answer checked is recorded in this browser only. See Progress to export or delete it.