factory-0.0.0.2: Rational arithmetic in an irrational world.

Factory.Math.Factorial

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
  • Whilst this particular function is the subject of many introductory examples to Haskell, the simple algorithms appropriate for that forum, leave a large margin for performance-improvement. This module provides the interface for alternative algorithms.
  • http://mathworld.wolfram.com/Factorial.html.

Synopsis

Type-classes

class Algorithm algorithm whereSource

Defines the methods expected of a factorial-algorithm.

Methods

factorial :: Integral i => algorithm -> i -> iSource

Instances