What is the perimeter? Jul 2024

Clifford Pickover posted this problem on Twitter
Link to Cliff’s tweet


Watch for edge cases.

In programming, an edge case typically involves input values that require special handling in an algorithm behind a computer program. As a measure to validate the behavior of computer programs in such cases, unit tests are usually created; they test the boundary conditions of an algorithm, function, or method.

Here’s my solution.

User Note: consider using presentation mode in these menu options or the PDF video.

My PDF video

My GeoGebra video
Note: q is the slider variable’; x, the problem variable, is set equal to q


Leave a Reply

Your email address will not be published. Required fields are marked *