code wiki / (root) / nx_fin_bs_gate.nx

nx_fin_bs_gate.nx

buildroot/runtime/nx_fin_bs_gate.nx

2736 B52 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic fin
docsdependenciesstructsconstsfunctions

about

nx_fin_bs_gate.nx -- GATE for the fixed-point Black-Scholes suite. Approximations, so checked within a tolerance against KNOWN values: exp/ln/normal-CDF spot values, the classic BS call (100,100,5%,20%,1y)=10.45, and put-call parity (C - P == S - K e^{-rT}). Exits 0 iff all pass. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_gate.nx nx_fin_metrics.nx nx_fin_bs.nx nx_fin_bs_gate.nx

imports: nx_gate.nxnx_fin_metrics.nxnx_fin_bs.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main chk_near gw sys_write gn sys_write ↻ sys_mmap exp_fp ln_fp bs_sqrt_fp me_isqrt bs_ncdf exp_fp ↻ bs_call bs_d1 ln_fp ↻ bs_srt bs_sqrt_fp ↻ bs_srt ↻ exp_fp ↻ bs_ncdf ↻ bs_put bs_d1 ↻ bs_srt ↻ exp_fp ↻ bs_ncdf ↻ bs_delta_call bs_ncdf ↻ bs_d1 ↻ gw ↻ gn ↻

structs

none

consts

none

functions

8func chk_near(name: *u8, got: i64, want: i64, tol: i64, st: *i64) -> i64
called by 1: main calls 2: gwgn
15func main() -> i64