fast-arithmetic-0.2.3.2: Fast functions on integers.

Safe HaskellSafe
LanguageHaskell2010

Numeric.Pure

Contents

Description

Pure Haskell functions. These tend to be more general than the equivalents in ATS.

Synopsis

Useful functions

derangement :: Integral a => Int -> a Source #

See here.

λ:> fmap derangement [0..10] :: [Integer]
[1,0,1,2,9,44,265,1854,14833,133496,1334961]

Functions exported for testing and benchmarking

hsChoose :: Integral a => a -> a -> a Source #

hsTotient :: Integral a => a -> a Source #

hsTau :: Integral a => a -> Int Source #

hsTotientSum :: Integral a => a -> a Source #

hsCatalan :: Integral a => a -> a Source #

hsFactorial :: Integral a => a -> a Source #

hsJacobi :: Integral a => a -> a -> a Source #