READER EDITION / ISSUE 003 / Revised 2026-11-30
Creative Agentic Computing
CodeFarmer / Issue 003
HOW THE PROMPT WORKS

Follow the brief
into the program.

The player can display the same stored video as a wider or narrower picture. These three clauses tell the agent which values to collect, how to do the math and when the available numbers are insufficient.

Prompt clause
Collect stored width and height plus the pixel width and height ratio, with positive integer inputs.

The stored frame size and the pixel shape describe different properties. Both are needed for a known display ratio.

Prompt clause
Multiply width by the pixel ratio numerator and height by its denominator, reduce the resulting display ratio

Reduction divides both values by the same common divisor. For the starting example, 5760:4320 simplifies to 4:3.

Prompt clause
Leave an unknown pixel ratio unresolved.

The stored shape remains available. The display chart and numerical answer wait until there are two ratio values.

A clear brief moves through code to a result you can run.
A clear brief moves through code to a result you can run.