factory-0.3.0.0: Rational arithmetic in an irrational world.

Safe HaskellSafe
LanguageHaskell2010

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.

Minimal complete definition

factorial

Methods

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

Instances