Sponsored links: Algebra eBooks
 

Help Index

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

The Maxima on-line user's manual

Algebra Calculator

Search:

Integerp Calculator

Integerp

Function: integerp (<expr>) Returns true if <expr> is a literal numeric integer, otherwise false.

integerp returns false if its argument is a symbol, even if the argument is declared integer.

Examples:

          (%i1) integerp (0);
          (%o1)                         true
          (%i2) integerp (1);
          (%o2)                         true
          (%i3) integerp (-17);
          (%o3)                         true
          (%i4) integerp (0.0);
          (%o4)                         false
          (%i5) integerp (1.0);
          (%o5)                         false
          (%i6) integerp (%pi);
          (%o6)                         false
          (%i7) integerp (n);
          (%o7)                         false
          (%i8) declare (n, integer);
          (%o8)                         done
          (%i9) integerp (n);
          (%o9)                         false

There are also some inexact matches for integerp. Try ?? integerp to see them.

(%o1)                                true
(%i2) 

Integerp Example

Related Examples

integerp

integerp(1);

Calculate

integerp-not-sqrt

not(integerp(sqrt(2)));

Calculate

integerp

a:0.12345*10*10*10*10...

integerp(a);

truncate(a);

Calculate

integerp

a:0.12345*10*10*10*10...

integerp(a);

truncat(a);

Calculate

integerp

a:0.12345*10*10*10*10...

integerp(a);

truncate(a);

Calculate

integerp-numer

steep:1/303,numer;

integerp(1024*steep),...

Calculate

integerp

integerp(0.12345*10*1...

Calculate

integerp-not-sqrt

not(integerp(sqrt(2)));

Calculate

integerp

integerp(0.12345*10*1...

Calculate

integerp

integerp (-1);

Calculate