uCBQN/test/cases/fuzz/arith.bqn

25 lines
628 B
BQN
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(
helpers •args
R (helpers.GetRand@).Range
EEqual, Variation •internal
Mod {𝕊:
modOptions ,¯∞,0÷0 - 234
{𝕊:
n R 24+R 6
w R modOptions
x -(R 2) (2R 34) + (n)-R n
got w|x
exp w|"Ah" Variation x
¬exp EEqual got?
•Out "𝕨: "•Repr w
•Out "𝕩: "(•Repr x)" / "•internal.Info x
•Out "exp: "•Repr exp
•Out "got: "•Repr got
!0
;@
}¨ 𝕩
}
•Show "powerOfTwo | arr" Mod 100000
)