code wiki / _hdl_build / nx_viz_trig_gate.nx

nx_viz_trig_gate.nx

buildroot/runtime/_hdl_build/nx_viz_trig_gate.nx

2739 B61 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic viz
docsdependenciesstructsconstsfunctions

about

nx_viz_trig_gate.nx -- REFEREE for the trig layer (integer sin/cos, scale 10000). T1 sin KAT (exact): sin(0)=0 sin(30)=5000 sin(90)=10000 sin(150)=5000 sin(180)=0 sin(270)=-10000 T2 cos KAT (exact): cos(0)=10000 cos(90)=0 cos(180)=-10000 T3 sin(45) in tolerance [6900,7200] (Bhaskara ~ 7059 vs true 7071) T4 Pythagorean identity sin^2+cos^2 ~= 10000^2 (within 1%) at 45 and 60 -- internal consistency GREEN iff T1..T4. Sovereign: nx_viz_trig + nx_syscalls. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_viz_trig.nx nx_syscalls.nx nx_gate_verdict.nx nx_viz_trig_gate.nx

imports: nx_viz_trig.nxnx_syscalls.nxnx_gate_verdict.nx

imported by: nobody (leaf or entry point)

structs

none

consts

none

functions

11func g_w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
12func g_row(name: *u8, ok: i64) -> i64
18func pyth_ok(deg: i64) -> i64
27func main() -> i64