The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum
 Origin Forum
 Calculating the factorial of n

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000