note 53442 deleted from ref.math by cmb
| From: | cmb@php.net | Date: | Sun, 21 Jul 2019 09:01:29 +0000 |
| Subject: | note 53442 deleted from ref.math by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-211665@lists.php.net to get a copy of this message | ||
Note Submitter: graywh at gmail DELETE dot com
----
If you're really concerned about speed, you could compute the factorial of large numbers using
the Gamma function of n-1.
Integral y^(t-1)*Exp(-y) for y from 0 to Infinity
For Fibonacci numbers, there's a better-than-recursive way.
((1+sqrt(5))/2)^(n/sqrt(5)) - ((1-sqrt(5))/2)^(n/sqrt(5))