T O P I C R E V I E W |
bigworm |
Posted - 01/10/2005 : 03:02:40 AM Hi all, Does Origin have the function of calculating the factorial of n? Thx a lot. |
3 L A T E S T R E P L I E S (Newest First) |
Mike Buess |
Posted - 02/06/2005 : 10:53:47 AM LabTalk also has the gammaln() function which can be used in all versions of Origin... N! = exp(gammaln(N+1)).
...Same upper limit of N <= 162 applies.
Mike Buess Origin WebRing Member
Edited by - Mike Buess on 02/06/2005 10:55:08 AM |
verrallr@a |
Posted - 01/10/2005 : 3:49:45 PM There is also a nag_gamma function. The gamma function is related to the factorial function, Gamma(N) = (N-1)! But N doesn't need to be an integer for the gamma function. It can any real number or complex number. But, the absolute value can't be larger than some value (Help does not indicate what value, but it's probably something like 162). |
Mike |
Posted - 01/10/2005 : 10:57:12 AM Hi bigworm,
The Script Tool is a free download. It has a factorial calculation function that will compute N! for 0 < N < 162.
Mike OriginLab |