factory-0.2.1.1: Rational arithmetic in an irrational world.

Safe HaskellSafe-Inferred
LanguageHaskell98

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 Algorithmic algorithm where Source

Defines the methods expected of a factorial-algorithm.

Methods

factorial :: (Integral i, Show i) => algorithm -> i -> i Source