numeric-extras-0.1: Useful tools from the C standard library

Safe HaskellTrustworthy
LanguageHaskell98

Numeric.Extras

Documentation

class (Storable (C a), RealFloat (C a), RealFloat a) => RealExtras a where #

Minimal complete definition

fmod, expm1, log1p, hypot, cbrt, erf, floor, ceil, trunc, modf, remainder

Associated Types

type C a :: * #

Methods

fmod :: a -> a -> a #

expm1 :: a -> a #

log1p :: a -> a #

hypot :: a -> a -> a #

cbrt :: a -> a #

erf :: a -> a #

floor :: a -> a #

ceil :: a -> a #

trunc :: a -> a #

modf :: a -> (a, a) #

remainder :: a -> a -> a #

Instances

RealExtras Double # 
RealExtras Float # 

Associated Types

type C Float :: * #