~/bend-docscommunity

src/numeric.bend checks

raw source on the hub · import 0x53dde92df75268075f1bc6c33ecbb079/src/numeric.bend as Numeric

1 import
import Base

Definitions

def is_finite source · line 4 · raw

@x:F32 -> Bool

Reject both infinities and every NaN representation.

def squared_error source · line 7 · raw

@actual:F32 -> @predicted:F32 -> F32

def close source · line 11 · raw

@+a:F32 -> @+b:F32 -> @atol:F32 -> @rtol:F32 -> Bool

Absolute + relative tolerance, useful when testing F32 results.