def isclose

bend-collections@1.0.0.0 · src/math/f64.bend:1189

import bend-collections@1.0.0.0/src/math/f64.bend as F64
import Base
import bend-collections@1.0.0.0/src/math/num.bend as N

1189# Python's math.isclose (CPython's algorithm): a negative tolerance is a
1190# domain error
1191def isclose(+a: F64, +b: F64, +rel: F64, +at: F64) -> Result<&2, &2, N.NumError, Bool>:
1192  ic_tol(a, b, rel, at, Bool.or(lt(rel, zero(False{})), lt(at, zero(False{}))))

Uses (8)

Used by (0)

No other definition uses this definition.