linear-1.20.8: Linear Algebra

Linear.Epsilon

Description

Testing for values "near" zero

Synopsis

# Documentation

class Num a => Epsilon a where #

Provides a fairly subjective test to see if a quantity is near zero.

>>> nearZero (1e-11 :: Double)
False

>>> nearZero (1e-17 :: Double)
True

>>> nearZero (1e-5 :: Float)
False

>>> nearZero (1e-7 :: Float)
True


Methods

nearZero :: a -> Bool #

Determine if a quantity is near zero.

Instances
 # abs a <= 1e-12 Instance detailsDefined in Linear.Epsilon Methods # abs a <= 1e-6 Instance detailsDefined in Linear.Epsilon Methods # abs a <= 1e-6 Instance detailsDefined in Linear.Epsilon Methods # abs a <= 1e-12 Instance detailsDefined in Linear.Epsilon Methods (Epsilon a, RealFloat a) => Epsilon (Complex a) # Instance detailsDefined in Linear.Epsilon MethodsnearZero :: Complex a -> Bool # Epsilon a => Epsilon (V1 a) # Instance detailsDefined in Linear.V1 MethodsnearZero :: V1 a -> Bool # Epsilon a => Epsilon (V2 a) # Instance detailsDefined in Linear.V2 MethodsnearZero :: V2 a -> Bool # Epsilon a => Epsilon (V3 a) # Instance detailsDefined in Linear.V3 MethodsnearZero :: V3 a -> Bool # Epsilon a => Epsilon (V4 a) # Instance detailsDefined in Linear.V4 MethodsnearZero :: V4 a -> Bool # Epsilon (V0 a) # Instance detailsDefined in Linear.V0 MethodsnearZero :: V0 a -> Bool # (RealFloat a, Epsilon a) => Epsilon (Quaternion a) # Instance detailsDefined in Linear.Quaternion MethodsnearZero :: Quaternion a -> Bool # Epsilon a => Epsilon (Plucker a) # Instance detailsDefined in Linear.Plucker MethodsnearZero :: Plucker a -> Bool # Epsilon (f a) => Epsilon (Point f a) # Instance detailsDefined in Linear.Affine MethodsnearZero :: Point f a -> Bool # (Dim n, Epsilon a) => Epsilon (V n a) # Instance detailsDefined in Linear.V MethodsnearZero :: V n a -> Bool #