| Copyright | (c) The University of Glasgow 1994-2002 Portions obtained from hbc (c) Lennart Augusstson  | 
|---|---|
| License | see libraries/base/LICENSE | 
| Maintainer | cvs-ghc@haskell.org | 
| Stability | internal | 
| Portability | non-portable (GHC Extensions) | 
| Safe Haskell | Trustworthy | 
| Language | Haskell2010 | 
GHC.Float
Description
Synopsis
- rationalToFloat :: Integer -> Integer -> Float
 - rationalToDouble :: Integer -> Integer -> Double
 - class Fractional a => Floating a where
 - class (RealFrac a, Floating a) => RealFloat a where
- floatRadix :: a -> Integer
 - floatDigits :: a -> Int
 - floatRange :: a -> (Int, Int)
 - decodeFloat :: a -> (Integer, Int)
 - encodeFloat :: Integer -> Int -> a
 - exponent :: a -> Int
 - significand :: a -> a
 - scaleFloat :: Int -> a -> a
 - isNaN :: a -> Bool
 - isInfinite :: a -> Bool
 - isDenormalized :: a -> Bool
 - isNegativeZero :: a -> Bool
 - isIEEE :: a -> Bool
 - atan2 :: a -> a -> a
 
 - data FFFormat
 - stgDoubleToWord64 :: Double# -> Word#
 - stgWord64ToDouble :: Word# -> Double#
 - stgFloatToWord32 :: Float# -> Word#
 - stgWord32ToFloat :: Word# -> Float#
 - expm1Float :: Float -> Float
 - log1pFloat :: Float -> Float
 - expm1Double :: Double -> Double
 - log1pDouble :: Double -> Double
 - isDoubleFinite :: Double -> Int
 - isDoubleNegativeZero :: Double -> Int
 - isDoubleDenormalized :: Double -> Int
 - isDoubleInfinite :: Double -> Int
 - isDoubleNaN :: Double -> Int
 - isFloatFinite :: Float -> Int
 - isFloatNegativeZero :: Float -> Int
 - isFloatDenormalized :: Float -> Int
 - isFloatInfinite :: Float -> Int
 - isFloatNaN :: Float -> Int
 - showFloat :: RealFloat a => a -> ShowS
 - formatRealFloat :: RealFloat a => FFFormat -> Maybe Int -> a -> String
 - formatRealFloatAlt :: RealFloat a => FFFormat -> Maybe Int -> Bool -> a -> String
 - roundTo :: Int -> Int -> [Int] -> (Int, [Int])
 - floatToDigits :: RealFloat a => Integer -> a -> ([Int], Int)
 - fromRat :: RealFloat a => Rational -> a
 - fromRat' :: RealFloat a => Rational -> a
 - minExpt :: Int
 - maxExpt :: Int
 - expt :: Integer -> Int -> Integer
 - expts :: Array Int Integer
 - maxExpt10 :: Int
 - expts10 :: Array Int Integer
 - integerLogBase :: Integer -> Integer -> Int
 - fromRat'' :: RealFloat a => Int -> Int -> Integer -> Integer -> a
 - plusFloat :: Float -> Float -> Float
 - minusFloat :: Float -> Float -> Float
 - timesFloat :: Float -> Float -> Float
 - divideFloat :: Float -> Float -> Float
 - negateFloat :: Float -> Float
 - gtFloat :: Float -> Float -> Bool
 - geFloat :: Float -> Float -> Bool
 - ltFloat :: Float -> Float -> Bool
 - leFloat :: Float -> Float -> Bool
 - expFloat :: Float -> Float
 - logFloat :: Float -> Float
 - sqrtFloat :: Float -> Float
 - fabsFloat :: Float -> Float
 - sinFloat :: Float -> Float
 - cosFloat :: Float -> Float
 - tanFloat :: Float -> Float
 - asinFloat :: Float -> Float
 - acosFloat :: Float -> Float
 - atanFloat :: Float -> Float
 - sinhFloat :: Float -> Float
 - coshFloat :: Float -> Float
 - tanhFloat :: Float -> Float
 - asinhFloat :: Float -> Float
 - acoshFloat :: Float -> Float
 - atanhFloat :: Float -> Float
 - powerFloat :: Float -> Float -> Float
 - plusDouble :: Double -> Double -> Double
 - minusDouble :: Double -> Double -> Double
 - timesDouble :: Double -> Double -> Double
 - divideDouble :: Double -> Double -> Double
 - negateDouble :: Double -> Double
 - gtDouble :: Double -> Double -> Bool
 - geDouble :: Double -> Double -> Bool
 - ltDouble :: Double -> Double -> Bool
 - leDouble :: Double -> Double -> Bool
 - double2Float :: Double -> Float
 - float2Double :: Float -> Double
 - expDouble :: Double -> Double
 - logDouble :: Double -> Double
 - sqrtDouble :: Double -> Double
 - fabsDouble :: Double -> Double
 - sinDouble :: Double -> Double
 - cosDouble :: Double -> Double
 - tanDouble :: Double -> Double
 - asinDouble :: Double -> Double
 - acosDouble :: Double -> Double
 - atanDouble :: Double -> Double
 - sinhDouble :: Double -> Double
 - coshDouble :: Double -> Double
 - tanhDouble :: Double -> Double
 - asinhDouble :: Double -> Double
 - acoshDouble :: Double -> Double
 - atanhDouble :: Double -> Double
 - powerDouble :: Double -> Double -> Double
 - word2Double :: Word -> Double
 - word2Float :: Word -> Float
 - showSignedFloat :: RealFloat a => (a -> ShowS) -> Int -> a -> ShowS
 - clamp :: Int -> Int -> Int
 - castWord32ToFloat :: Word32 -> Float
 - castFloatToWord32 :: Float -> Word32
 - castWord64ToDouble :: Word64 -> Double
 - castDoubleToWord64 :: Double -> Word64
 - data Float = F# Float#
 - data Double = D# Double#
 - data Float# :: TYPE 'FloatRep
 - data Double# :: TYPE 'DoubleRep
 - double2Int :: Double -> Int
 - int2Double :: Int -> Double
 - float2Int :: Float -> Int
 - int2Float :: Int -> Float
 - eqFloat :: Float -> Float -> Bool
 - eqDouble :: Double -> Double -> Bool
 
Documentation
class Fractional a => Floating a where Source #
Trigonometric and hyperbolic functions and related functions.
The Haskell Report defines no laws for Floating. However, (, +)(
 and *)exp are customarily expected to define an exponential field and have
 the following properties:
exp (a + b)=exp a * exp bexp (fromInteger 0)=fromInteger 1
Minimal complete definition
pi, exp, log, sin, cos, asin, acos, atan, sinh, cosh, asinh, acosh, atanh
Methods
(**) :: a -> a -> a infixr 8 Source #
logBase :: a -> a -> a Source #
 computes log1p x, but provides more precise
 results for small (absolute) values of log (1 + x)x if possible.
Since: 4.9.0.0
 computes expm1 x, but provides more precise
 results for small (absolute) values of exp x - 1x if possible.
Since: 4.9.0.0
Instances
class (RealFrac a, Floating a) => RealFloat a where Source #
Efficient, machine-independent access to the components of a floating-point number.
Minimal complete definition
floatRadix, floatDigits, floatRange, decodeFloat, encodeFloat, isNaN, isInfinite, isDenormalized, isNegativeZero, isIEEE
Methods
floatRadix :: a -> Integer Source #
a constant function, returning the radix of the representation
 (often 2)
floatDigits :: a -> Int Source #
a constant function, returning the number of digits of
 floatRadix in the significand
floatRange :: a -> (Int, Int) Source #
a constant function, returning the lowest and highest values the exponent may assume
decodeFloat :: a -> (Integer, Int) Source #
The function decodeFloat applied to a real floating-point
 number returns the significand expressed as an Integer and an
 appropriately scaled exponent (an Int).  If 
 yields decodeFloat x(m,n), then x is equal in value to m*b^^n, where b
 is the floating-point radix, and furthermore, either m and n
 are both zero or else b^(d-1) <= , where abs m < b^dd is
 the value of .
 In particular, floatDigits x. If the type
 contains a negative zero, also decodeFloat 0 = (0,0).
 The result of decodeFloat (-0.0) = (0,0) is unspecified if either of
 decodeFloat x or isNaN x is isInfinite xTrue.
encodeFloat :: Integer -> Int -> a Source #
encodeFloat performs the inverse of decodeFloat in the
 sense that for finite x with the exception of -0.0,
 .
 uncurry encodeFloat (decodeFloat x) = x is one of the two closest representable
 floating-point numbers to encodeFloat m nm*b^^n (or ±Infinity if overflow
 occurs); usually the closer, but if m contains too many bits,
 the result may be rounded in the wrong direction.
exponent corresponds to the second component of decodeFloat.
  and for finite nonzero exponent 0 = 0x,
 .
 If exponent x = snd (decodeFloat x) + floatDigits xx is a finite floating-point number, it is equal in value to
 , where significand x * b ^^ exponent xb is the
 floating-point radix.
 The behaviour is unspecified on infinite or NaN values.
significand :: a -> a Source #
The first component of decodeFloat, scaled to lie in the open
 interval (-1,1), either 0.0 or of absolute value >= 1/b,
 where b is the floating-point radix.
 The behaviour is unspecified on infinite or NaN values.
scaleFloat :: Int -> a -> a Source #
multiplies a floating-point number by an integer power of the radix
True if the argument is an IEEE "not-a-number" (NaN) value
isInfinite :: a -> Bool Source #
True if the argument is an IEEE infinity or negative infinity
isDenormalized :: a -> Bool Source #
True if the argument is too small to be represented in
 normalized format
isNegativeZero :: a -> Bool Source #
True if the argument is an IEEE negative zero
True if the argument is an IEEE floating point number
a version of arctangent taking two real floating-point arguments.
 For real floating x and y,  computes the angle
 (from the positive x-axis) of the vector from the origin to the
 point atan2 y x(x,y).   returns a value in the range [atan2 y x-pi,
 pi].  It follows the Common Lisp semantics for the origin when
 signed zeroes are supported.  , with atan2 y 1y in a type
 that is RealFloat, should return the same value as .
 A default definition of atan yatan2 is provided, but implementors
 can provide a more accurate implementation.
Instances
stgDoubleToWord64 :: Double# -> Word# Source #
stgWord64ToDouble :: Word# -> Double# Source #
stgFloatToWord32 :: Float# -> Word# Source #
stgWord32ToFloat :: Word# -> Float# Source #
expm1Float :: Float -> Float Source #
log1pFloat :: Float -> Float Source #
expm1Double :: Double -> Double Source #
log1pDouble :: Double -> Double Source #
isDoubleFinite :: Double -> Int Source #
isDoubleNegativeZero :: Double -> Int Source #
isDoubleDenormalized :: Double -> Int Source #
isDoubleInfinite :: Double -> Int Source #
isDoubleNaN :: Double -> Int Source #
isFloatFinite :: Float -> Int Source #
isFloatNegativeZero :: Float -> Int Source #
isFloatDenormalized :: Float -> Int Source #
isFloatInfinite :: Float -> Int Source #
isFloatNaN :: Float -> Int Source #
showFloat :: RealFloat a => a -> ShowS Source #
Show a signed RealFloat value to full precision
 using standard decimal notation for arguments whose absolute value lies
 between 0.1 and 9,999,999, and scientific notation otherwise.
floatToDigits :: RealFloat a => Integer -> a -> ([Int], Int) Source #
floatToDigits takes a base and a non-negative RealFloat number,
 and returns a list of digits and an exponent.
 In particular, if x>=0, and
floatToDigits base x = ([d1,d2,...,dn], e)
then
n >= 1
x = 0.d1d2...dn * (base**e)
0 <= di <= base-1
negateFloat :: Float -> Float Source #
asinhFloat :: Float -> Float Source #
acoshFloat :: Float -> Float Source #
atanhFloat :: Float -> Float Source #
negateDouble :: Double -> Double Source #
double2Float :: Double -> Float Source #
float2Double :: Float -> Double Source #
sqrtDouble :: Double -> Double Source #
fabsDouble :: Double -> Double Source #
asinDouble :: Double -> Double Source #
acosDouble :: Double -> Double Source #
atanDouble :: Double -> Double Source #
sinhDouble :: Double -> Double Source #
coshDouble :: Double -> Double Source #
tanhDouble :: Double -> Double Source #
asinhDouble :: Double -> Double Source #
acoshDouble :: Double -> Double Source #
atanhDouble :: Double -> Double Source #
word2Double :: Word -> Double Source #
word2Float :: Word -> Float Source #
castWord32ToFloat :: Word32 -> Float Source #
 does a bit-for-bit copy from an integral value
 to a floating-point value.castWord32ToFloat w
Since: 4.10.0.0
castFloatToWord32 :: Float -> Word32 Source #
 does a bit-for-bit copy from a floating-point value
 to an integral value.castFloatToWord32 f
Since: 4.10.0.0
castWord64ToDouble :: Word64 -> Double Source #
 does a bit-for-bit copy from an integral value
 to a floating-point value.castWord64ToDouble w
Since: 4.10.0.0
castDoubleToWord64 :: Double -> Word64 Source #
 does a bit-for-bit copy from a floating-point value
 to an integral value.castFloatToWord32 f
Since: 4.10.0.0
Single-precision floating point numbers. It is desirable that this type be at least equal in range and precision to the IEEE single-precision type.
Instances
| Enum Float Source # | Since: 2.1  | 
Defined in GHC.Float Methods succ :: Float -> Float Source # pred :: Float -> Float Source # toEnum :: Int -> Float Source # fromEnum :: Float -> Int Source # enumFrom :: Float -> [Float] Source # enumFromThen :: Float -> Float -> [Float] Source # enumFromTo :: Float -> Float -> [Float] Source # enumFromThenTo :: Float -> Float -> Float -> [Float] Source #  | |
| Eq Float | Note that due to the presence of  
 Also note that  
  | 
| Floating Float Source # | Since: 2.1  | 
Defined in GHC.Float Methods exp :: Float -> Float Source # log :: Float -> Float Source # sqrt :: Float -> Float Source # (**) :: Float -> Float -> Float Source # logBase :: Float -> Float -> Float Source # sin :: Float -> Float Source # cos :: Float -> Float Source # tan :: Float -> Float Source # asin :: Float -> Float Source # acos :: Float -> Float Source # atan :: Float -> Float Source # sinh :: Float -> Float Source # cosh :: Float -> Float Source # tanh :: Float -> Float Source # asinh :: Float -> Float Source # acosh :: Float -> Float Source # atanh :: Float -> Float Source # log1p :: Float -> Float Source # expm1 :: Float -> Float Source #  | |
| Fractional Float Source # | Note that due to the presence of  
 Since: 2.1  | 
| Data Float Source # | Since: 4.0.0.0  | 
Defined in Data.Data Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Float -> c Float Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Float Source # toConstr :: Float -> Constr Source # dataTypeOf :: Float -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Float) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Float) Source # gmapT :: (forall b. Data b => b -> b) -> Float -> Float Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Float -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Float -> r Source # gmapQ :: (forall d. Data d => d -> u) -> Float -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> Float -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Float -> m Float Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Float -> m Float Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Float -> m Float Source #  | |
| Num Float Source # | Note that due to the presence of  
 Also note that due to the presence of -0,  
 Since: 2.1  | 
| Ord Float | Note that due to the presence of  
 Also note that, due to the same,  
  | 
| Read Float Source # | Since: 2.1  | 
| Real Float Source # | Since: 2.1  | 
| RealFloat Float Source # | Since: 2.1  | 
Defined in GHC.Float Methods floatRadix :: Float -> Integer Source # floatDigits :: Float -> Int Source # floatRange :: Float -> (Int, Int) Source # decodeFloat :: Float -> (Integer, Int) Source # encodeFloat :: Integer -> Int -> Float Source # exponent :: Float -> Int Source # significand :: Float -> Float Source # scaleFloat :: Int -> Float -> Float Source # isNaN :: Float -> Bool Source # isInfinite :: Float -> Bool Source # isDenormalized :: Float -> Bool Source # isNegativeZero :: Float -> Bool Source #  | |
| RealFrac Float Source # | Since: 2.1  | 
| Show Float Source # | Since: 2.1  | 
| Storable Float Source # | Since: 2.1  | 
Defined in Foreign.Storable Methods sizeOf :: Float -> Int Source # alignment :: Float -> Int Source # peekElemOff :: Ptr Float -> Int -> IO Float Source # pokeElemOff :: Ptr Float -> Int -> Float -> IO () Source # peekByteOff :: Ptr b -> Int -> IO Float Source # pokeByteOff :: Ptr b -> Int -> Float -> IO () Source #  | |
| PrintfArg Float Source # | Since: 2.1  | 
Defined in Text.Printf  | |
| Generic1 (URec Float :: k -> Type) Source # | Since: 4.9.0.0  | 
| Functor (URec Float :: Type -> Type) Source # | Since: 4.9.0.0  | 
| Foldable (URec Float :: Type -> Type) Source # | Since: 4.9.0.0  | 
Defined in Data.Foldable Methods fold :: Monoid m => URec Float m -> m Source # foldMap :: Monoid m => (a -> m) -> URec Float a -> m Source # foldMap' :: Monoid m => (a -> m) -> URec Float a -> m Source # foldr :: (a -> b -> b) -> b -> URec Float a -> b Source # foldr' :: (a -> b -> b) -> b -> URec Float a -> b Source # foldl :: (b -> a -> b) -> b -> URec Float a -> b Source # foldl' :: (b -> a -> b) -> b -> URec Float a -> b Source # foldr1 :: (a -> a -> a) -> URec Float a -> a Source # foldl1 :: (a -> a -> a) -> URec Float a -> a Source # toList :: URec Float a -> [a] Source # null :: URec Float a -> Bool Source # length :: URec Float a -> Int Source # elem :: Eq a => a -> URec Float a -> Bool Source # maximum :: Ord a => URec Float a -> a Source # minimum :: Ord a => URec Float a -> a Source #  | |
| Traversable (URec Float :: Type -> Type) Source # | Since: 4.9.0.0  | 
Defined in Data.Traversable Methods traverse :: Applicative f => (a -> f b) -> URec Float a -> f (URec Float b) Source # sequenceA :: Applicative f => URec Float (f a) -> f (URec Float a) Source # mapM :: Monad m => (a -> m b) -> URec Float a -> m (URec Float b) Source # sequence :: Monad m => URec Float (m a) -> m (URec Float a) Source #  | |
| Eq (URec Float p) Source # | |
| Ord (URec Float p) Source # | |
Defined in GHC.Generics  | |
| Show (URec Float p) Source # | |
| Generic (URec Float p) Source # | |
| data URec Float (p :: k) Source # | Used for marking occurrences of  Since: 4.9.0.0  | 
| type Rep1 (URec Float :: k -> Type) Source # | |
Defined in GHC.Generics  | |
| type Rep (URec Float p) Source # | |
Defined in GHC.Generics  | |
Double-precision floating point numbers. It is desirable that this type be at least equal in range and precision to the IEEE double-precision type.
Instances
| Enum Double Source # | Since: 2.1  | 
Defined in GHC.Float Methods succ :: Double -> Double Source # pred :: Double -> Double Source # toEnum :: Int -> Double Source # fromEnum :: Double -> Int Source # enumFrom :: Double -> [Double] Source # enumFromThen :: Double -> Double -> [Double] Source # enumFromTo :: Double -> Double -> [Double] Source # enumFromThenTo :: Double -> Double -> Double -> [Double] Source #  | |
| Eq Double | Note that due to the presence of  
 Also note that  
  | 
| Floating Double Source # | Since: 2.1  | 
Defined in GHC.Float Methods exp :: Double -> Double Source # log :: Double -> Double Source # sqrt :: Double -> Double Source # (**) :: Double -> Double -> Double Source # logBase :: Double -> Double -> Double Source # sin :: Double -> Double Source # cos :: Double -> Double Source # tan :: Double -> Double Source # asin :: Double -> Double Source # acos :: Double -> Double Source # atan :: Double -> Double Source # sinh :: Double -> Double Source # cosh :: Double -> Double Source # tanh :: Double -> Double Source # asinh :: Double -> Double Source # acosh :: Double -> Double Source # atanh :: Double -> Double Source # log1p :: Double -> Double Source # expm1 :: Double -> Double Source #  | |
| Fractional Double Source # | Note that due to the presence of  
 Since: 2.1  | 
| Data Double Source # | Since: 4.0.0.0  | 
Defined in Data.Data Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Double -> c Double Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Double Source # toConstr :: Double -> Constr Source # dataTypeOf :: Double -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Double) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Double) Source # gmapT :: (forall b. Data b => b -> b) -> Double -> Double Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Double -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Double -> r Source # gmapQ :: (forall d. Data d => d -> u) -> Double -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> Double -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Double -> m Double Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Double -> m Double Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Double -> m Double Source #  | |
| Num Double Source # | Note that due to the presence of  
 Also note that due to the presence of -0,  
 Since: 2.1  | 
| Ord Double | Note that due to the presence of  
 Also note that, due to the same,  
  | 
| Read Double Source # | Since: 2.1  | 
| Real Double Source # | Since: 2.1  | 
| RealFloat Double Source # | Since: 2.1  | 
Defined in GHC.Float Methods floatRadix :: Double -> Integer Source # floatDigits :: Double -> Int Source # floatRange :: Double -> (Int, Int) Source # decodeFloat :: Double -> (Integer, Int) Source # encodeFloat :: Integer -> Int -> Double Source # exponent :: Double -> Int Source # significand :: Double -> Double Source # scaleFloat :: Int -> Double -> Double Source # isNaN :: Double -> Bool Source # isInfinite :: Double -> Bool Source # isDenormalized :: Double -> Bool Source # isNegativeZero :: Double -> Bool Source #  | |
| RealFrac Double Source # | Since: 2.1  | 
| Show Double Source # | Since: 2.1  | 
| Storable Double Source # | Since: 2.1  | 
Defined in Foreign.Storable Methods sizeOf :: Double -> Int Source # alignment :: Double -> Int Source # peekElemOff :: Ptr Double -> Int -> IO Double Source # pokeElemOff :: Ptr Double -> Int -> Double -> IO () Source # peekByteOff :: Ptr b -> Int -> IO Double Source # pokeByteOff :: Ptr b -> Int -> Double -> IO () Source #  | |
| PrintfArg Double Source # | Since: 2.1  | 
Defined in Text.Printf Methods formatArg :: Double -> FieldFormatter Source # parseFormat :: Double -> ModifierParser Source #  | |
| Generic1 (URec Double :: k -> Type) Source # | Since: 4.9.0.0  | 
| Functor (URec Double :: Type -> Type) Source # | Since: 4.9.0.0  | 
| Foldable (URec Double :: Type -> Type) Source # | Since: 4.9.0.0  | 
Defined in Data.Foldable Methods fold :: Monoid m => URec Double m -> m Source # foldMap :: Monoid m => (a -> m) -> URec Double a -> m Source # foldMap' :: Monoid m => (a -> m) -> URec Double a -> m Source # foldr :: (a -> b -> b) -> b -> URec Double a -> b Source # foldr' :: (a -> b -> b) -> b -> URec Double a -> b Source # foldl :: (b -> a -> b) -> b -> URec Double a -> b Source # foldl' :: (b -> a -> b) -> b -> URec Double a -> b Source # foldr1 :: (a -> a -> a) -> URec Double a -> a Source # foldl1 :: (a -> a -> a) -> URec Double a -> a Source # toList :: URec Double a -> [a] Source # null :: URec Double a -> Bool Source # length :: URec Double a -> Int Source # elem :: Eq a => a -> URec Double a -> Bool Source # maximum :: Ord a => URec Double a -> a Source # minimum :: Ord a => URec Double a -> a Source #  | |
| Traversable (URec Double :: Type -> Type) Source # | Since: 4.9.0.0  | 
Defined in Data.Traversable Methods traverse :: Applicative f => (a -> f b) -> URec Double a -> f (URec Double b) Source # sequenceA :: Applicative f => URec Double (f a) -> f (URec Double a) Source # mapM :: Monad m => (a -> m b) -> URec Double a -> m (URec Double b) Source # sequence :: Monad m => URec Double (m a) -> m (URec Double a) Source #  | |
| Eq (URec Double p) Source # | Since: 4.9.0.0  | 
| Ord (URec Double p) Source # | Since: 4.9.0.0  | 
Defined in GHC.Generics Methods compare :: URec Double p -> URec Double p -> Ordering # (<) :: URec Double p -> URec Double p -> Bool # (<=) :: URec Double p -> URec Double p -> Bool # (>) :: URec Double p -> URec Double p -> Bool # (>=) :: URec Double p -> URec Double p -> Bool #  | |
| Show (URec Double p) Source # | Since: 4.9.0.0  | 
| Generic (URec Double p) Source # | Since: 4.9.0.0  | 
| data URec Double (p :: k) Source # | Used for marking occurrences of  Since: 4.9.0.0  | 
| type Rep1 (URec Double :: k -> Type) Source # | |
Defined in GHC.Generics  | |
| type Rep (URec Double p) Source # | |
Defined in GHC.Generics  | |
double2Int :: Double -> Int Source #
int2Double :: Int -> Double Source #
Monomorphic equality operators
See GHC.Classes#matching_overloaded_methods_in_rules
Orphan instances
| Enum Double Source # | Since: 2.1  | 
Methods succ :: Double -> Double Source # pred :: Double -> Double Source # toEnum :: Int -> Double Source # fromEnum :: Double -> Int Source # enumFrom :: Double -> [Double] Source # enumFromThen :: Double -> Double -> [Double] Source # enumFromTo :: Double -> Double -> [Double] Source # enumFromThenTo :: Double -> Double -> Double -> [Double] Source #  | |
| Enum Float Source # | Since: 2.1  | 
Methods succ :: Float -> Float Source # pred :: Float -> Float Source # toEnum :: Int -> Float Source # fromEnum :: Float -> Int Source # enumFrom :: Float -> [Float] Source # enumFromThen :: Float -> Float -> [Float] Source # enumFromTo :: Float -> Float -> [Float] Source # enumFromThenTo :: Float -> Float -> Float -> [Float] Source #  | |
| Fractional Double Source # | Note that due to the presence of  
 Since: 2.1  | 
| Fractional Float Source # | Note that due to the presence of  
 Since: 2.1  | 
| Num Double Source # | Note that due to the presence of  
 Also note that due to the presence of -0,  
 Since: 2.1  | 
| Num Float Source # | Note that due to the presence of  
 Also note that due to the presence of -0,  
 Since: 2.1  | 
| Real Double Source # | Since: 2.1  | 
Methods toRational :: Double -> Rational Source #  | |
| Real Float Source # | Since: 2.1  | 
Methods toRational :: Float -> Rational Source #  | |
| RealFrac Double Source # | Since: 2.1  | 
| RealFrac Float Source # | Since: 2.1  | 
| Show Double Source # | Since: 2.1  | 
| Show Float Source # | Since: 2.1  |