Rational

Rational

is the head used for rational numbers.

Details

  • You can enter a rational number in the form n/m.
  • The pattern object _Rational can be used to stand for a rational number. It cannot stand for a single integer.
  • You have to use Numerator and Denominator to extract parts of Rational numbers.

Examples

open allclose all

Basic Examples  (1)

Enter a rational number:

In[1]:=
Click for copyable input
Out[1]=

Rational is the Head for rational numbers:

In[2]:=
Click for copyable input
Out[2]=

Scope  (7)

Applications  (1)

Properties & Relations  (4)

Possible Issues  (1)

See Also

Rationals  Integer  Real  Numerator  Denominator  Rationalize

Tutorials

Introduced in 1988
(1.0)