test for factored integer form - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Data Types : Type Checking : Types : type/facint

type/facint - test for factored integer form

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:=ifactor2520

a:=233257

(1)

typea,facint

true

(2)

b:=ifactor818

b:=3423

(3)

typeb,facint

true

(4)

type1,facint

true

(5)

type5,facint

false

(6)

typeifactor5,facint

true

(7)

See Also

ifactor, type, type[integer]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam