Solutions#

Common problems in checking numerical code, each with code that solves it using ExactRef. For your inputs, ExactRef gives the exact answer rounded once and which outputs a correct implementation can produce, so most solutions end by checking your output with covers().

Testing:

Investigating:

Beyond Python tests: