Searched refs:factorial (Results 1 - 3 of 3) sorted by relevance

/osnet-11/usr/src/cmd/perl/5.8.4/distrib/t/op/
H A Drecurse.t22 sub factorial { subroutine
23 $_[0] < 2 ? 1 : $_[0] * factorial($_[0] - 1);
56 is(factorial(10), 3628800, "factorial(10) == 3628800");
58 is(factorial(factorial(3)), 720, "factorial(factorial(3)) == 720");
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/Math/BigInt/
H A DCalc.pm1285 # factorial of $x
2063 _fac(obj) return factorial of object 1 (1*2*3*4..)
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/Math/
H A DBigRat.pm1405 Calculates the factorial of $x. For instance:

Completed in 22 milliseconds