Every stored value is an exact polynomial over $\mathbb Q$. The generator transcribes $f$ and $h$ from [1], derives $g$ as the exact square root of $f^3-h$, and checks $h=f^3-g^2$ and the degree conditions exactly.
The $M=5$ row is also checked against Example 1.8 of [2], which prints $f$, $g$ and $h$.