c1ddb4c814 2021-03-01 jeff@gridfini: n:=3;
c1ddb4c814 2021-03-01 jeff@gridfini: if (evenp(n)) then write n," is even" else write n, " is odd";
c1ddb4c814 2021-03-01 jeff@gridfini: if (fixp(n)) then write n," is Integer" else write n, " is not Integer";
c1ddb4c814 2021-03-01 jeff@gridfini: n:=pi;
c1ddb4c814 2021-03-01 jeff@gridfini: if (fixp(n)) then write n," is Integer" else write n, " is not Integer";
c1ddb4c814 2021-03-01 jeff@gridfini: n:=3.1;
c1ddb4c814 2021-03-01 jeff@gridfini: if (fixp(n)) then write n," is Integer" else write n, " is not Integer";
c1ddb4c814 2021-03-01 jeff@gridfini: %
c1ddb4c814 2021-03-01 jeff@gridfini: a:=(b+c)^2;
c1ddb4c814 2021-03-01 jeff@gridfini: if (freeof(a,b)) then write b," not in ",a else write b," is in ",a;
c1ddb4c814 2021-03-01 jeff@gridfini: a:=(c+d)^2;
c1ddb4c814 2021-03-01 jeff@gridfini: if (freeof(a,b)) then write b," not in ",a else write b," is in ",a;
c1ddb4c814 2021-03-01 jeff@gridfini: %
c1ddb4c814 2021-03-01 jeff@gridfini: n:=pi;
c1ddb4c814 2021-03-01 jeff@gridfini: if (numberp(n)) then write n," is a number" else write n, " is not a number";
c1ddb4c814 2021-03-01 jeff@gridfini: n:=3.1;
c1ddb4c814 2021-03-01 jeff@gridfini: if (numberp(n)) then write n," is a number" else write n, " is not a number";
c1ddb4c814 2021-03-01 jeff@gridfini: %
c1ddb4c814 2021-03-01 jeff@gridfini: if (ordp(n,c)) then write n," before ",c else write n, " after ",c;
c1ddb4c814 2021-03-01 jeff@gridfini: n:=z;
c1ddb4c814 2021-03-01 jeff@gridfini: if (ordp(n,c)) then write n," before ",c else write n, " after ",c;
c1ddb4c814 2021-03-01 jeff@gridfini: %
c1ddb4c814 2021-03-01 jeff@gridfini: n:=10;
c1ddb4c814 2021-03-01 jeff@gridfini: if (primep(n)) then write n," is prime" else write n, " is not prime";
c1ddb4c814 2021-03-01 jeff@gridfini: n:=11;
c1ddb4c814 2021-03-01 jeff@gridfini: if (primep(n)) then write n," is prime" else write n, " is not prime";