type/facint
test for factored integer form
Calling Sequence
Parameters
Description
Examples
type(expr, facint)
expr
-
any expression
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.
a≔ifactor2520
a≔233257
typea,facint
true
b≔ifactor818
b≔3423
typeb,facint
type1,facint
type5,facint
false
typeifactor5,facint
See Also
ifactor
type
type/integer
Download Help Document