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≔ifactor⁡2520
a≔23⁢32⁢5⁢7
type⁡a,facint
true
b≔ifactor⁡818
b≔3423
type⁡b,facint
type⁡1,facint
type⁡5,facint
false
type⁡ifactor⁡5,facint
See Also
ifactor
type
type/integer
Download Help Document