type/primepower - Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : type/primepower

type/primepower

check for a rational prime power

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

type( expr, primepower )

Parameters

expr

-

any Maple expression

Description

• 

This command returns true if expr is of type primepower, and false otherwise.

• 

An expression is of type primepower if it is a positive integer of the form p^k, for some prime number p and some non-negative integer k.

Examples

type0,'primepower'

false

(1)

type1,'primepower'

true

(2)

type4,'primepower'

true

(3)

type8,'primepower'

false

(4)

type6,'primepower'

false

(5)

type23,'primepower'

false

(6)

See Also

integer

type

type/prime