facint - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


type/facint

test for factored integer form

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

type(expr, facint)

Parameters

expr

-

any expression

Description

• 

This function will return true if expr is an expression of the form returned by the function ifactor, and false otherwise.

• 

The numbers 0, 1, and −1 are considered to be of type facint, but all other integers and rationals must be passed through ifactor before type/facint will return true when applied to them.

Examples

> 

a≔ifactor⁡2520

a≔23⁢32⁢5⁢7

(1)
> 

type⁡a,facint

true

(2)
> 

b≔ifactor⁡818

b≔3423

(3)
> 

type⁡b,facint

true

(4)
> 

type⁡1,facint

true

(5)
> 

type⁡5,facint

false

(6)
> 

type⁡ifactor⁡5,facint

true

(7)

See Also

ifactor

type

type/integer