note 42714 added to ref.math
| From: | moc dot erawtfostym at evad dot php dot net | Date: | Wed, 26 May 2004 23:04:07 +0000 |
| Subject: | note 42714 added to ref.math | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-70154@lists.php.net to get a copy of this message | ||
The fastest O(1) factorial function has a lookup table of all the factorials that fit within the
output range. With an array of the first 34 (float) or 170 (double) factorials, you get identical
results in a fraction of the time.
----
Manual Page -- http://www.php.net/manual/en/ref.math.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+42714
Delete -- http://master.php.net/manage/user-notes.php?action=delete+42714&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+42714&report=yes
Search -- http://master.php.net/manage/user-notes.php