From 602c88444d0f8506b2233dcbf2b9ec63b543f5c4 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Mon, 12 Oct 2026 09:04:28 +0200 Subject: [PATCH] CultMath oracle: power cases with a base of -1 and exponents past the int range, and compare cases inside FLT_EPSILON The film zeroes an infinite result, which had hidden both the power quirk and Compare's epsilon floor from the fixtures (two hand mutants of the HLSL survived). The fixtures are regenerated in a later commit. Builds. Co-Authored-By: Claude Sonnet 5.5 --- packages/cultmath/tools/cycles-oracle/oracle.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/cultmath/tools/cycles-oracle/oracle.py b/packages/cultmath/tools/cycles-oracle/oracle.py index 820dfed7..9fddeb30 100644 --- a/packages/cultmath/tools/cycles-oracle/oracle.py +++ b/packages/cultmath/tools/cycles-oracle/oracle.py @@ -237,7 +237,10 @@ MATH = [ # Operands that must be present as exact pairs whatever the random draws: the quirks the port names. EXTRA_ROWS = { "cycles_power": [(-2.0, 1.0e10), (-2.0, -1.0e10), (-2.0, 3.0), (-2.0, 2.0), (-2.0, -3.0), (-2.0, 2147483648.0), (-2.0, -2147483648.0), - (-8.0, 0.3333333), (2.0, 0.0), (0.0, 0.0), (0.0, 2.0), (-0.0, -3.0), (-1.5, 17.0), (-1.5, 16777217.0)], + (-8.0, 0.3333333), (2.0, 0.0), (0.0, 0.0), (0.0, 2.0), (-0.0, -3.0), (-1.5, 17.0), (-1.5, 16777217.0), + # A base of -1 keeps a finite result for any exponent, so the film shows the exponent past the int range. + (-1.0, 3.0e9), (-1.0, -3.0e9), (-1.0, 2147483648.0), (-1.0, 16777216.0), (-1.0, 16777215.0)], + "cycles_compare": [(0.0, 1.0e-7, 0.0), (1.0, 1.0000001, 0.0), (1.0, 1.0000002, 0.0), (0.0, 1.0e-7, 1.0e-8), (5.0, 5.0, 0.0), (0.0, 2.0e-7, 1.0e-7)], "cycles_modulo": [(0.3, 0.1), (-0.3, 0.1), (5.5, -2.0), (-5.5, -2.0), (1.0, 0.0), (1.0e7, 3.0), (7.0, 7.0), (-7.0, 7.0)], }