Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
Integers and the Integer Constructor
Calling Sequence
Integer(x)
Parameters
x
-
expression
Description
An integer is an optionally signed, arbitrary-length sequence of one or more decimal digits. The maximum length of an integer is system dependent and can be obtained by using kernelopts(maxdigits).
The Integer(x) constructor function returns
x if x is a positive or negative integer,
symbolic infinity if x is infinity, or
undefined if x is a symbolic undefined.
Integer(Re(x)) + I * Integer(Im(x)) if x is of type nonreal.
Otherwise, it returns unevaluated.
The integer 0 does not have a sign (compare the floating-point zeros, +0.0 and -0.0).
In addition to arithmetic operators, some basic functions that operate on integers are:
abs
sign
min
max
factorial
irem
iquo
modp
mods
mod
isqrt
iroot
isprime
ifactor
ifactors
igcd
ilcm
igcdex
iratrecon
rand
There are also many other functions for integers in the numtheory and combinat packages (including binomial coefficients, Fibonacci numbers, Stirling numbers, Jacobi symbol, and Euler's totient function).
See Also
combinat, constant, infinity, numtheory, type, type[integer], type[numeric], undefined
Download Help Document