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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Calculating the factorial of n
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

bigworm

Albania
Posts

Posted - 01/10/2005 :  03:02:40 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi all,
Does Origin have the function of calculating the factorial of n?
Thx a lot.

Mike

USA
357 Posts

Posted - 01/10/2005 :  10:57:12 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

verrallr@a

Canada
44 Posts

Posted - 01/10/2005 :  3:49:45 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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).
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 02/06/2005 :  10:53:47 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000