Table of Contents

Factorial

Block Group: Math Operations
Icon:Factorial block icon

The Factorial block returns the single factorial of a number. The single factorial of n is equal to 1*2*3*…* n.

For information on using dataflow blocks, see Dataflow.

For accepted and excluded arguments of Math Operations blocks, see Math Operations.


Input/Output Property

The following property of the Factorial block can take input and give output.

input specifies the number to find the factorial for.


Output Property

The following property of the Factorial block can give output but cannot take input.

output returns the factorial of the input.


Special Cases for the Factorial Block

The following are special cases for the Factorial block:


Examples

The following image shows four examples of the Factorial block.

Factorial block examples