factorial¶
Under Construction
This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/dot/blob/main/js/util/factorial.ts for the most up-to-date information.
Overview¶
Computes the factorial of a non-negative integer n without using recursion. n! = 1 * 2 * ... * ( n - 1 ) * n
@author Chris Malley (cmalley@pixelzoom.com)
Source Code¶
See the source for factorial.ts in the dot repository.