Sponsored links: Algebra eBooks
 

Related

nonnegintegerp

nonnegintegerp(6);

Calculate

nonnegintegerp

? nonnegintegerp;

Calculate

nonnegintegerp

nonnegintegerp(6);

Calculate

nonnegintegerp

? nonnegintegerp;

Calculate

nonnegintegerp

Run Example
(%i1)genp: lambda([x],true);
(%o1)                          lambda([x], true)
(%i2) polynomialp(x^(3/2),[x]);
(%o2)                                false
(%i3) polynomialp(x^(3/2),[x],'genp);
(%o3)                                true
(%i4) polynomialp(x^(3/2),[x],'genp,'nonnegintegerp);
(%o4)                                true
(%i5) 
Run Example
p1: a*x^2+b*x+c;
                                   2
(%o1)                           a x  + b x + c
(%i2) p2: a*x^(3/2)+b*x+c;
                                  3/2
(%o2)                          a x    + b x + c
(%i3) p3: a*x^2+b*x+c*y;
                                        2
(%o3)                          c y + a x  + b x
(%i4) genp: lambda([x],true);
(%o4)                          lambda([x], true)
(%i5) polynomialp(p1,[x]);
(%o5)                                false
(%i6) polynomialp(p1,[x],genp);
(%o6)                                true
(%i7) polynomialp(p1,[x],genp,nonnegintegerp);
(%o7)                                true
(%i8) polynomialp(p1,[x,y]);
(%o8)                                false
(%i9) polynomialp(p1,[x,y],genp);
(%o9)                                true
(%i10) polynomialp(p1,[x,y],genp,nonnegintegerp);
(%o10)                               true
(%i11) 
Run Example
genp: lambda([x],true);
(%o1)                          lambda([x], true)
(%i2) polynomialp(x^(3/2),[x],'genp,'nonnegintegerp);
(%o2)                                true
(%i3) 

Related Help

Help for Nonnegintegerp