WLJS LogoWLJS Notebook

Rational

Rational is the head used for rational numbers.

Examples

Check head of a fraction:

Head[3/4]
(* Rational *)

Pattern matching:

MatchQ[5/7, _Rational]
(* True *)

Please visit the official Wolfram Language Reference for more details.

On this page