Copyright  (C) 20122015 Edward Kmett 

License  BSDstyle (see the file LICENSE) 
Maintainer  Edward Kmett <ekmett@gmail.com> 
Stability  provisional 
Portability  portable 
Safe Haskell  Safe 
Language  Haskell98 
Testing for values "near" zero
Documentation
class Num a => Epsilon a where #
Provides a fairly subjective test to see if a quantity is near zero.
>>>
nearZero (1e11 :: Double)
False
>>>
nearZero (1e17 :: Double)
True
>>>
nearZero (1e5 :: Float)
False
>>>
nearZero (1e7 :: Float)
True
Instances
Epsilon Double # 

Defined in Linear.Epsilon  
Epsilon Float # 

Defined in Linear.Epsilon  
Epsilon CFloat # 

Defined in Linear.Epsilon  
Epsilon CDouble # 

Defined in Linear.Epsilon  
(Epsilon a, RealFloat a) => Epsilon (Complex a) #  
Defined in Linear.Epsilon  
Epsilon a => Epsilon (V1 a) #  
Epsilon a => Epsilon (V2 a) #  
Epsilon a => Epsilon (V3 a) #  
Epsilon a => Epsilon (V4 a) #  
Epsilon (V0 a) #  
(RealFloat a, Epsilon a) => Epsilon (Quaternion a) #  
Defined in Linear.Quaternion nearZero :: Quaternion a > Bool #  
Epsilon a => Epsilon (Plucker a) #  
Defined in Linear.Plucker  
Epsilon (f a) => Epsilon (Point f a) #  
Defined in Linear.Affine  
(Dim n, Epsilon a) => Epsilon (V n a) #  