Telling maxima something is an integer
- Subject: Telling maxima something is an integer
- From: Stavros Macrakis
- Date: Tue, 4 Jan 2005 22:28:32 -0500
> Is there a way to tell maxima something is an integer?
declare(qqq,integer)$
askinteger(qqq) => yes
(-1)^(2*qqq) => 1
sin(qqq*%pi) => 0