Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Re: Factorial algorithm execution time

by Anonymous Monk
on Oct 26, 2002 at 18:39 UTC ( [id://208260]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    log(n!) = log(1) + log(2) + ... + log(n)
            = 1/2 log(1) + (log(1) + log(2))/2
    ...
                         + ...
                         + (log(n-1) + log(n))/2
                         + 1/2 log(n)
    
  2. or download this
    log(n!) = 1/2 0 + Integral from 1 to n of log(x) +
              1/2 log(n) + e(1) + e(2) + ... + e(n-1)
    
  3. or download this
    log(n!) = 1/2 0 + Integral from 1 to n of log(x) +
              1/2 log(n) + e(1) + e(2) + ... + e(n-1)
    ...
              - (e(n) + e(n+1) + e(n+2) + ...)
            = n*log(n) - n + log(n)/2 + E + 1
              - e(n) - e(n+1) - e(n+2) - ...
    
  4. or download this
    n! = K * sqrt(n) + n**n * (1 + O(1/n)) / e**n
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://208260]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-25 23:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found