integerp



No.
When a symbol is declared INTEGER, automatic simplifications can
exploit this fact.  For example, SIN(n*%pi) simplifies to 0 if n is
declared INTEGER.  A symbol can be declared INTEGER if it is known to
represent an integer.  INTEGER is a member of the FEATURES list.
It can be asserted with DECLARE, withdrawn with REMOVE, and detected
with FEATUREP.

(C1) declare(x,integer);
(D1)      DONE
(C2) FEATUREP(x,integer);
(D2)      TRUE

Dan Stanger

a9104910@unet.univie.ac.at wrote:

> Hi folks!
>
> I'm just starting...
>
> When I say
>
> declare(x,integer);
>
> then
>
> integerp(x);
>
> gives false.
>
> Does this mean, that integerp(x) is intended to give true if x is an
> instance of an integer?
>
> Thanks, Martin
>
> _______________________________________________
> Maxima mailing list
> Maxima@www.math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima