numhask-0.0.9: A numeric prelude

Safe HaskellNone
LanguageHaskell2010

NumHask.Algebra.Field

Description

Field

Synopsis

Documentation

class Field a => ExpField a where Source #

ExpField

Minimal complete definition

exp, log

Methods

exp :: a -> a Source #

log :: a -> a Source #

logBase :: a -> a -> a Source #

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

sqrt :: a -> a Source #

class Field a => QuotientField a where Source #

quotient fields explode constraints if they are polymorphed to emit general integrals

Minimal complete definition

round, ceiling, floor, (^^)

Methods

round :: a -> Integer Source #

ceiling :: a -> Integer Source #

floor :: a -> Integer Source #

(^^) :: a -> Integer -> a Source #

class Field a => BoundedField a where Source #

providing the concepts of infinity and NaN, thus moving away from error throwing

Minimal complete definition

isNaN

Methods

maxBound :: a Source #

minBound :: a Source #

nan :: a Source #

isNaN :: a -> Bool Source #

infinity :: BoundedField a => a Source #

prints as Infinity

neginfinity :: BoundedField a => a Source #

prints as `-Infinity`