basement-0.0.11: Foundation scrap box of array & string

Safe Haskell | None
Language | Haskell2010

Basement.Numerical.Multiplicative

Synopsis

- class Multiplicative a where
  - midentity :: a
  - (*) :: a -> a -> a
  - (^) :: (IsNatural n, Enum n, IDivisible n) => a -> n -> a
- class (Additive a, Multiplicative a) => IDivisible a where
  - div :: a -> a -> a
  - mod :: a -> a -> a
  - divMod :: a -> a -> (a, a)
- class Multiplicative a => Divisible a where
  - (/) :: a -> a -> a
- recip :: Divisible a => a -> a

# Documentation

class Multiplicative a where Source #

Represent class of things that can be multiplied together

    x * midentity = x
    midentity * x = x

Minimal complete definition

midentity, (*)

Methods

midentity :: a Source #

Identity element over multiplication

(*) :: a -> a -> a infixl 7 Source #

Multiplication of 2 elements that result in another element

(^) :: (IsNatural n, Enum n, IDivisible n) => a -> n -> a infixr 8 Source #

Raise to power, repeated multiplication e.g. > a ^ 2 = a * a > a ^ 10 = (a ^ 5) * (a ^ 5) .. (^) :: (IsNatural n) => a -> n -> a

#### Instances

Instances details

Multiplicative Double Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: Double Source # (*) :: Double -> Double -> Double Source # (^) :: (IsNatural n, Enum n, IDivisible n) => Double -> n -> Double Source #
Multiplicative Float Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: Float Source # (*) :: Float -> Float -> Float Source # (^) :: (IsNatural n, Enum n, IDivisible n) => Float -> n -> Float Source #
Multiplicative Int Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: Int Source # (*) :: Int -> Int -> Int Source # (^) :: (IsNatural n, Enum n, IDivisible n) => Int -> n -> Int Source #
Multiplicative Int8 Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: Int8 Source # (*) :: Int8 -> Int8 -> Int8 Source # (^) :: (IsNatural n, Enum n, IDivisible n) => Int8 -> n -> Int8 Source #
Multiplicative Int16 Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: Int16 Source # (*) :: Int16 -> Int16 -> Int16 Source # (^) :: (IsNatural n, Enum n, IDivisible n) => Int16 -> n -> Int16 Source #
Multiplicative Int32 Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: Int32 Source # (*) :: Int32 -> Int32 -> Int32 Source # (^) :: (IsNatural n, Enum n, IDivisible n) => Int32 -> n -> Int32 Source #
Multiplicative Int64 Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: Int64 Source # (*) :: Int64 -> Int64 -> Int64 Source # (^) :: (IsNatural n, Enum n, IDivisible n) => Int64 -> n -> Int64 Source #
Multiplicative Integer Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: Integer Source # (*) :: Integer -> Integer -> Integer Source # (^) :: (IsNatural n, Enum n, IDivisible n) => Integer -> n -> Integer Source #
Multiplicative Natural Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: Natural Source # (*) :: Natural -> Natural -> Natural Source # (^) :: (IsNatural n, Enum n, IDivisible n) => Natural -> n -> Natural Source #
Multiplicative Rational Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: Rational Source # (*) :: Rational -> Rational -> Rational Source # (^) :: (IsNatural n, Enum n, IDivisible n) => Rational -> n -> Rational Source #
Multiplicative Word Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: Word Source # (*) :: Word -> Word -> Word Source # (^) :: (IsNatural n, Enum n, IDivisible n) => Word -> n -> Word Source #
Multiplicative Word8 Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: Word8 Source # (*) :: Word8 -> Word8 -> Word8 Source # (^) :: (IsNatural n, Enum n, IDivisible n) => Word8 -> n -> Word8 Source #
Multiplicative Word16 Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: Word16 Source # (*) :: Word16 -> Word16 -> Word16 Source # (^) :: (IsNatural n, Enum n, IDivisible n) => Word16 -> n -> Word16 Source #
Multiplicative Word32 Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: Word32 Source # (*) :: Word32 -> Word32 -> Word32 Source # (^) :: (IsNatural n, Enum n, IDivisible n) => Word32 -> n -> Word32 Source #
Multiplicative Word64 Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: Word64 Source # (*) :: Word64 -> Word64 -> Word64 Source # (^) :: (IsNatural n, Enum n, IDivisible n) => Word64 -> n -> Word64 Source #
Multiplicative COff Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: COff Source # (*) :: COff -> COff -> COff Source # (^) :: (IsNatural n, Enum n, IDivisible n) => COff -> n -> COff Source #
Multiplicative CChar Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: CChar Source # (*) :: CChar -> CChar -> CChar Source # (^) :: (IsNatural n, Enum n, IDivisible n) => CChar -> n -> CChar Source #
Multiplicative CSChar Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: CSChar Source # (*) :: CSChar -> CSChar -> CSChar Source # (^) :: (IsNatural n, Enum n, IDivisible n) => CSChar -> n -> CSChar Source #
Multiplicative CUChar Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: CUChar Source # (*) :: CUChar -> CUChar -> CUChar Source # (^) :: (IsNatural n, Enum n, IDivisible n) => CUChar -> n -> CUChar Source #
Multiplicative CShort Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: CShort Source # (*) :: CShort -> CShort -> CShort Source # (^) :: (IsNatural n, Enum n, IDivisible n) => CShort -> n -> CShort Source #
Multiplicative CUShort Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: CUShort Source # (*) :: CUShort -> CUShort -> CUShort Source # (^) :: (IsNatural n, Enum n, IDivisible n) => CUShort -> n -> CUShort Source #
Multiplicative CInt Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: CInt Source # (*) :: CInt -> CInt -> CInt Source # (^) :: (IsNatural n, Enum n, IDivisible n) => CInt -> n -> CInt Source #
Multiplicative CUInt Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: CUInt Source # (*) :: CUInt -> CUInt -> CUInt Source # (^) :: (IsNatural n, Enum n, IDivisible n) => CUInt -> n -> CUInt Source #
Multiplicative CLong Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: CLong Source # (*) :: CLong -> CLong -> CLong Source # (^) :: (IsNatural n, Enum n, IDivisible n) => CLong -> n -> CLong Source #
Multiplicative CULong Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: CULong Source # (*) :: CULong -> CULong -> CULong Source # (^) :: (IsNatural n, Enum n, IDivisible n) => CULong -> n -> CULong Source #
Multiplicative CLLong Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: CLLong Source # (*) :: CLLong -> CLLong -> CLLong Source # (^) :: (IsNatural n, Enum n, IDivisible n) => CLLong -> n -> CLLong Source #
Multiplicative CULLong Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: CULLong Source # (*) :: CULLong -> CULLong -> CULLong Source # (^) :: (IsNatural n, Enum n, IDivisible n) => CULLong -> n -> CULLong Source #
Multiplicative CFloat Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: CFloat Source # (*) :: CFloat -> CFloat -> CFloat Source # (^) :: (IsNatural n, Enum n, IDivisible n) => CFloat -> n -> CFloat Source #
Multiplicative CDouble Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: CDouble Source # (*) :: CDouble -> CDouble -> CDouble Source # (^) :: (IsNatural n, Enum n, IDivisible n) => CDouble -> n -> CDouble Source #
Multiplicative CPtrdiff Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: CPtrdiff Source # (*) :: CPtrdiff -> CPtrdiff -> CPtrdiff Source # (^) :: (IsNatural n, Enum n, IDivisible n) => CPtrdiff -> n -> CPtrdiff Source #
Multiplicative CSize Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: CSize Source # (*) :: CSize -> CSize -> CSize Source # (^) :: (IsNatural n, Enum n, IDivisible n) => CSize -> n -> CSize Source #
Multiplicative CWchar Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: CWchar Source # (*) :: CWchar -> CWchar -> CWchar Source # (^) :: (IsNatural n, Enum n, IDivisible n) => CWchar -> n -> CWchar Source #
Multiplicative CSigAtomic Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: CSigAtomic Source # (*) :: CSigAtomic -> CSigAtomic -> CSigAtomic Source # (^) :: (IsNatural n, Enum n, IDivisible n) => CSigAtomic -> n -> CSigAtomic Source #
Multiplicative CClock Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: CClock Source # (*) :: CClock -> CClock -> CClock Source # (^) :: (IsNatural n, Enum n, IDivisible n) => CClock -> n -> CClock Source #
Multiplicative CTime Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: CTime Source # (*) :: CTime -> CTime -> CTime Source # (^) :: (IsNatural n, Enum n, IDivisible n) => CTime -> n -> CTime Source #
Multiplicative CUSeconds Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: CUSeconds Source # (*) :: CUSeconds -> CUSeconds -> CUSeconds Source # (^) :: (IsNatural n, Enum n, IDivisible n) => CUSeconds -> n -> CUSeconds Source #
Multiplicative CSUSeconds Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: CSUSeconds Source # (*) :: CSUSeconds -> CSUSeconds -> CSUSeconds Source # (^) :: (IsNatural n, Enum n, IDivisible n) => CSUSeconds -> n -> CSUSeconds Source #
Multiplicative CIntPtr Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: CIntPtr Source # (*) :: CIntPtr -> CIntPtr -> CIntPtr Source # (^) :: (IsNatural n, Enum n, IDivisible n) => CIntPtr -> n -> CIntPtr Source #
Multiplicative CUIntPtr Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: CUIntPtr Source # (*) :: CUIntPtr -> CUIntPtr -> CUIntPtr Source # (^) :: (IsNatural n, Enum n, IDivisible n) => CUIntPtr -> n -> CUIntPtr Source #
Multiplicative CIntMax Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: CIntMax Source # (*) :: CIntMax -> CIntMax -> CIntMax Source # (^) :: (IsNatural n, Enum n, IDivisible n) => CIntMax -> n -> CIntMax Source #
Multiplicative CUIntMax Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: CUIntMax Source # (*) :: CUIntMax -> CUIntMax -> CUIntMax Source # (^) :: (IsNatural n, Enum n, IDivisible n) => CUIntMax -> n -> CUIntMax Source #
Multiplicative Word128 Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: Word128 Source # (*) :: Word128 -> Word128 -> Word128 Source # (^) :: (IsNatural n, Enum n, IDivisible n) => Word128 -> n -> Word128 Source #
Multiplicative Word256 Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods midentity :: Word256 Source # (*) :: Word256 -> Word256 -> Word256 Source # (^) :: (IsNatural n, Enum n, IDivisible n) => Word256 -> n -> Word256 Source #
SizeValid n => Multiplicative (Bits n) Source # |
Instance details Defined in Basement.Bits Methods midentity :: Bits n Source # (*) :: Bits n -> Bits n -> Bits n Source # (^) :: (IsNatural n0, Enum n0, IDivisible n0) => Bits n -> n0 -> Bits n Source #

class (Additive a, Multiplicative a) => IDivisible a where Source #

Represent types that supports an euclidian division

    (x ‘div‘ y) * y + (x ‘mod‘ y) == x

Minimal complete definition

div, mod | divMod

Methods

div :: a -> a -> a Source #

mod :: a -> a -> a Source #

divMod :: a -> a -> (a, a) Source #

#### Instances

Instances details

IDivisible Int Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods div :: Int -> Int -> Int Source # mod :: Int -> Int -> Int Source # divMod :: Int -> Int -> (Int, Int) Source #
IDivisible Int8 Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods div :: Int8 -> Int8 -> Int8 Source # mod :: Int8 -> Int8 -> Int8 Source # divMod :: Int8 -> Int8 -> (Int8, Int8) Source #
IDivisible Int16 Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods div :: Int16 -> Int16 -> Int16 Source # mod :: Int16 -> Int16 -> Int16 Source # divMod :: Int16 -> Int16 -> (Int16, Int16) Source #
IDivisible Int32 Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods div :: Int32 -> Int32 -> Int32 Source # mod :: Int32 -> Int32 -> Int32 Source # divMod :: Int32 -> Int32 -> (Int32, Int32) Source #
IDivisible Int64 Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods div :: Int64 -> Int64 -> Int64 Source # mod :: Int64 -> Int64 -> Int64 Source # divMod :: Int64 -> Int64 -> (Int64, Int64) Source #
IDivisible Integer Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods div :: Integer -> Integer -> Integer Source # mod :: Integer -> Integer -> Integer Source # divMod :: Integer -> Integer -> (Integer, Integer) Source #
IDivisible Natural Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods div :: Natural -> Natural -> Natural Source # mod :: Natural -> Natural -> Natural Source # divMod :: Natural -> Natural -> (Natural, Natural) Source #
IDivisible Word Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods div :: Word -> Word -> Word Source # mod :: Word -> Word -> Word Source # divMod :: Word -> Word -> (Word, Word) Source #
IDivisible Word8 Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods div :: Word8 -> Word8 -> Word8 Source # mod :: Word8 -> Word8 -> Word8 Source # divMod :: Word8 -> Word8 -> (Word8, Word8) Source #
IDivisible Word16 Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods div :: Word16 -> Word16 -> Word16 Source # mod :: Word16 -> Word16 -> Word16 Source # divMod :: Word16 -> Word16 -> (Word16, Word16) Source #
IDivisible Word32 Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods div :: Word32 -> Word32 -> Word32 Source # mod :: Word32 -> Word32 -> Word32 Source # divMod :: Word32 -> Word32 -> (Word32, Word32) Source #
IDivisible Word64 Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods div :: Word64 -> Word64 -> Word64 Source # mod :: Word64 -> Word64 -> Word64 Source # divMod :: Word64 -> Word64 -> (Word64, Word64) Source #
IDivisible CChar Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods div :: CChar -> CChar -> CChar Source # mod :: CChar -> CChar -> CChar Source # divMod :: CChar -> CChar -> (CChar, CChar) Source #
IDivisible CSChar Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods div :: CSChar -> CSChar -> CSChar Source # mod :: CSChar -> CSChar -> CSChar Source # divMod :: CSChar -> CSChar -> (CSChar, CSChar) Source #
IDivisible CUChar Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods div :: CUChar -> CUChar -> CUChar Source # mod :: CUChar -> CUChar -> CUChar Source # divMod :: CUChar -> CUChar -> (CUChar, CUChar) Source #
IDivisible CShort Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods div :: CShort -> CShort -> CShort Source # mod :: CShort -> CShort -> CShort Source # divMod :: CShort -> CShort -> (CShort, CShort) Source #
IDivisible CUShort Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods div :: CUShort -> CUShort -> CUShort Source # mod :: CUShort -> CUShort -> CUShort Source # divMod :: CUShort -> CUShort -> (CUShort, CUShort) Source #
IDivisible CInt Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods div :: CInt -> CInt -> CInt Source # mod :: CInt -> CInt -> CInt Source # divMod :: CInt -> CInt -> (CInt, CInt) Source #
IDivisible CUInt Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods div :: CUInt -> CUInt -> CUInt Source # mod :: CUInt -> CUInt -> CUInt Source # divMod :: CUInt -> CUInt -> (CUInt, CUInt) Source #
IDivisible CLong Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods div :: CLong -> CLong -> CLong Source # mod :: CLong -> CLong -> CLong Source # divMod :: CLong -> CLong -> (CLong, CLong) Source #
IDivisible CULong Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods div :: CULong -> CULong -> CULong Source # mod :: CULong -> CULong -> CULong Source # divMod :: CULong -> CULong -> (CULong, CULong) Source #
IDivisible CLLong Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods div :: CLLong -> CLLong -> CLLong Source # mod :: CLLong -> CLLong -> CLLong Source # divMod :: CLLong -> CLLong -> (CLLong, CLLong) Source #
IDivisible CULLong Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods div :: CULLong -> CULLong -> CULLong Source # mod :: CULLong -> CULLong -> CULLong Source # divMod :: CULLong -> CULLong -> (CULLong, CULLong) Source #
IDivisible CPtrdiff Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods div :: CPtrdiff -> CPtrdiff -> CPtrdiff Source # mod :: CPtrdiff -> CPtrdiff -> CPtrdiff Source # divMod :: CPtrdiff -> CPtrdiff -> (CPtrdiff, CPtrdiff) Source #
IDivisible CSize Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods div :: CSize -> CSize -> CSize Source # mod :: CSize -> CSize -> CSize Source # divMod :: CSize -> CSize -> (CSize, CSize) Source #
IDivisible CWchar Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods div :: CWchar -> CWchar -> CWchar Source # mod :: CWchar -> CWchar -> CWchar Source # divMod :: CWchar -> CWchar -> (CWchar, CWchar) Source #
IDivisible CSigAtomic Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods div :: CSigAtomic -> CSigAtomic -> CSigAtomic Source # mod :: CSigAtomic -> CSigAtomic -> CSigAtomic Source # divMod :: CSigAtomic -> CSigAtomic -> (CSigAtomic, CSigAtomic) Source #
IDivisible CIntPtr Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods div :: CIntPtr -> CIntPtr -> CIntPtr Source # mod :: CIntPtr -> CIntPtr -> CIntPtr Source # divMod :: CIntPtr -> CIntPtr -> (CIntPtr, CIntPtr) Source #
IDivisible CUIntPtr Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods div :: CUIntPtr -> CUIntPtr -> CUIntPtr Source # mod :: CUIntPtr -> CUIntPtr -> CUIntPtr Source # divMod :: CUIntPtr -> CUIntPtr -> (CUIntPtr, CUIntPtr) Source #
IDivisible CIntMax Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods div :: CIntMax -> CIntMax -> CIntMax Source # mod :: CIntMax -> CIntMax -> CIntMax Source # divMod :: CIntMax -> CIntMax -> (CIntMax, CIntMax) Source #
IDivisible CUIntMax Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods div :: CUIntMax -> CUIntMax -> CUIntMax Source # mod :: CUIntMax -> CUIntMax -> CUIntMax Source # divMod :: CUIntMax -> CUIntMax -> (CUIntMax, CUIntMax) Source #
IDivisible Word128 Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods div :: Word128 -> Word128 -> Word128 Source # mod :: Word128 -> Word128 -> Word128 Source # divMod :: Word128 -> Word128 -> (Word128, Word128) Source #
IDivisible Word256 Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods div :: Word256 -> Word256 -> Word256 Source # mod :: Word256 -> Word256 -> Word256 Source # divMod :: Word256 -> Word256 -> (Word256, Word256) Source #
SizeValid n => IDivisible (Bits n) Source # |
Instance details Defined in Basement.Bits Methods div :: Bits n -> Bits n -> Bits n Source # mod :: Bits n -> Bits n -> Bits n Source # divMod :: Bits n -> Bits n -> (Bits n, Bits n) Source #

class Multiplicative a => Divisible a where Source #

Support for division between same types

This is likely to change to represent specific mathematic divisions

Methods

(/) :: a -> a -> a infixl 7 Source #

#### Instances

Instances details

Divisible Double Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods (/) :: Double -> Double -> Double Source #
Divisible Float Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods (/) :: Float -> Float -> Float Source #
Divisible Rational Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods (/) :: Rational -> Rational -> Rational Source #
Divisible CFloat Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods (/) :: CFloat -> CFloat -> CFloat Source #
Divisible CDouble Source # |
Instance details Defined in Basement.Numerical.Multiplicative Methods (/) :: CDouble -> CDouble -> CDouble Source #

recip :: Divisible a => a -> a Source #