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

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

integerp(a);

truncate(a);

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-linsolve

eq1:x*2=y;

eq2:x+y=3;

linsolve([eq1,eq2,int...

Calculate

integerp-rhs

answer: x=2.5;

integerp(rhs(answer));

Calculate

integerp

a:0.12345*10*10*10*10;

integerp(a);

Calculate

integerp

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

integerp(a);

truncate(a);

Calculate

integerp

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

integerp(a);

truncate(a);

Calculate