code wiki / (root) / nx_bigfloat120_tan.nx

nx_bigfloat120_tan.nx

buildroot/runtime/nx_bigfloat120_tan.nx

2383 B58 linesdepth 5pulls 5 transitivereach 3 importersview sourcekind librarytopic bigfloat120
docsdependenciesstructsconstsfunctions

about

nx_bigfloat120_tan.nx -- SOVEREIGN tan oracle on the 120-bit bigfloat: tan = sin/cos over the blessed trig organ's reduction (period pi handled by the quadrant parity: k odd -> -cot). Positive-only core; the bigfloat entry point bf_tan_xb takes an UNROUNDED bigfloat argument so the self-anchor gate can test algebraic identities (half-angle, pi-shift) at full precision across DIFFERENT reduction paths -- not just at f64-rounded points. v1 domain |x| < 2^20 (the trig organ's Cody-Waite range; same honest refusal). Near poles: r >= ~2^-61 for any f64 near k*pi/2, so cot = cos/sin stays a well-conditioned bigfloat division (no overflow band in f64 tan). license_tier: ORIGINAL

dependencies 5 imports · 3 importers

nx_syscalls.nx nx_tier.nx nx_bigfloat120.nx nx_bigfloat120_div.nx nx_bigfloat120_trig.nx nx_bigfloat120_tan.nx _bf_tan_gate_authored.nx _f64_tan_gate_authored.nx _tn_probe.nx

imports: nx_syscalls.nxnx_tier.nxnx_bigfloat120.nxnx_bigfloat120_div.nxnx_bigfloat120_trig.nx

imported by: _bf_tan_gate_authored.nx_f64_tan_gate_authored.nx_tn_probe.nx

structs

none

consts

17const K_MAGIC_2047: i64 = 2047
18const K_MAGIC_1043: i64 = 1043

functions

22func bf_tan_xb(mag: *i64, xb: *i64) -> i64
45func bf_tan_f64(x: i64) -> i64