Module

Linear.Epsilon

Package
purescript-linear
Repository
afcondon/purescript-linear

Approximate equality testing for floating-point values.

This module provides the Epsilon typeclass for testing whether values are "near zero", useful for numerical algorithms that need to handle floating-point imprecision.

#Epsilon Source

class Epsilon a  where

A typeclass for types that support approximate zero testing.

The nearZero function provides a "fairly subjective test to see if a quantity is near zero" (as Ed Kmett puts it).

Members

Instances