factory-0.3.2.1: 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.
  • https://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 #

Instances
Algorithmic Algorithm Source # 
Instance details

Defined in Factory.Math.Implementations.Factorial

Methods

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