src/Malenki/Math/Factorial.php
protected function compute($n)
    {
        $int_fact = 1;

        for ($i = 1; $i <= $n ; $i++) {
            $int_fact *= $i;
        }

        return $int_fact;
    }
protected function compute($n)
    {
        $int_fact = 1;

        for ($i = 1; $i <= $n ; $i++) {
            $int_fact *= $i;
        }

        return $int_fact;
    }
Computes the factorial and returns the result internally.

@param  integer $n The rank
@access protected
@return void