Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

factorial (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the basic class.

Syntax

c = factorial(a)

Description

Computes the factorial of a given number. For all natural numbers a, factorial(a) = a*(a-1)*...*2*1.

Examples

Inputs

Name Description
a Specifies a natural number. a must be less than 20.

Outputs

Name Description
c Returns the factorial of a. c is a scalar.

Examples

C = factorial(5)/(factorial(2)*factorial(3))

Related Topics

gamma


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit