factory-0.3.0.0: Rational arithmetic in an irrational world.

Safe HaskellNone
LanguageHaskell2010

Factory.Data.Ring

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION

Synopsis

Type-classes

class Ring r where Source #

Methods

(=+=) :: r -> r -> r infixl 6 Source #

(=*=) :: r -> r -> r infixl 7 Source #

additiveInverse :: r -> r Source #

multiplicativeIdentity :: r Source #

additiveIdentity :: r Source #

(=-=) :: r -> r -> r infixl 6 Source #

square :: r -> r Source #

Types

Data-types

Functions

product' :: Ring r => BisectionRatio -> MinLength -> [r] -> r Source #

Returns the product of the list of ring-members.

sum' :: Ring r => BisectionRatio -> MinLength -> [r] -> r Source #

Returns the sum of the list of ring-members.

Operators

(=^) :: (Eq r, Integral power, Ring r, Show power) => r -> power -> r infixr 8 Source #