factorial - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


type/factorial

test for factorial

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

type(expr, `!`)

Parameters

expr

-

any expression

Description

• 

This function will return true if expr is a factorial, and false otherwise.  For more information about factorials, see factorial.

• 

An expression of the type n!, where n is an integer, is not of type `!`, since its value is calculated before the call to the type function is executed.

• 

Note that the factorial function is both of type function and type `!`. In the function call, it is important that the exclamation mark, !, be enclosed in quotes.  Missing quotes will cause a syntax error.

Examples

typen!,`!`

true

(1)

typen!,function

true

(2)

type6!,`!`

false

(3)

type0.5!,`!`

false

(4)

See Also

factorial

type