def erf_i0

bendtorch@1.3.0.0 · main.bend:1167

import bendtorch@1.3.0.0/main.bend as Bendtorch
import Base

1167# the pieces are chosen from the top down, so that only one polynomial is computed (each test is a match on a Bool
1168# parameter); b is "a is at least the piece's lower end"
1169def erf_i0(b: Bool, +x: F32, +a: F32) -> F32:
1170  match b:
1171    case True{}: erf_sign(x, erf_p0((a - 1.0 : F32)))
1172    case False{}: erf_small(x)

Uses (6)

Used by (1)