### Basic Examples

Basic Examples

Test whether an expression represents a rational function of a given variable:

[(x^2+1)/(x-a),x]

In[]:=

True

Out[]=

Test a different expression:

[xExp[x]+1,x]

In[]:=

False

Out[]=

Test for rationality with respect to a list of variables:

[(x^2+1)Log[y]/(x-a),{x}]

In[]:=

True

Out[]=

Test another expression for rationality with respect to a list of variables:

[(x^2+1)Log[y]/(x-a),{x,y}]

In[]:=

False

Out[]=

Test another expression for rationality with respect to a list of variables:

[(x^2y+y^3)/(x-y),{x,y}]

In[]:=

True

Out[]=

### Possible Issues

Possible Issues

Expressions which are constant with respect to a variable are considered rational:

[aLog[x],{y}]

In[]:=

True

Out[]=

[(x^2+1)/(x-a),{x,y}]

In[]:=

True

Out[]=