numeric-prelude-0.1.2: An experimental alternative hierarchy of numeric type classesSource codeContentsIndex
Algebra.Algebraic
Contents
Properties
Synopsis
class C a => C a where
sqrt :: a -> a
root :: Integer -> a -> a
(^/) :: a -> Rational -> a
genericRoot :: (C a, C b) => b -> a -> a
power :: (C a, C b) => b -> a -> a
propSqrSqrt :: (Eq a, C a) => a -> Bool
propPowerCascade :: (Eq a, C a) => a -> Rational -> Rational -> Bool
propPowerProduct :: (Eq a, C a) => a -> Rational -> Rational -> Bool
propPowerDistributive :: (Eq a, C a) => Rational -> a -> a -> Bool
Documentation
class C a => C a whereSource
Minimal implementation: root or '(^/)'.
Methods
sqrt :: a -> aSource
root :: Integer -> a -> aSource
(^/) :: a -> Rational -> aSource
show/hide Instances
C Double
C Float
C T
C T
(Ord a, C a) => C (T a)
C a => C (T a)
C a => C (T a)
(C a, C a) => C (T a)
(C a, C a) => C (T a)
(C a, C a, Power a) => C (T a)
C a => C (T a)
(C a, C v, Show v, C a v) => C (T a v)
(Ord i, C a) => C (T i a)
C v => C (T a v)
genericRoot :: (C a, C b) => b -> a -> aSource
power :: (C a, C b) => b -> a -> aSource
Properties
propSqrSqrt :: (Eq a, C a) => a -> BoolSource
propPowerCascade :: (Eq a, C a) => a -> Rational -> Rational -> BoolSource
propPowerProduct :: (Eq a, C a) => a -> Rational -> Rational -> BoolSource
propPowerDistributive :: (Eq a, C a) => Rational -> a -> a -> BoolSource
Produced by Haddock version 2.4.2