Maxima Function
ratnump (expr)
Returns true if expr is a literal integer or ratio of literal integers, otherwise false.
true
false