Skip to content

Rational

Rational

is the head of rational numbers.

Rational(a, b)

constructs the rational number a / b.

See

Examples

>> Head(1/2)
Rational
>> Rational(1, 2)
1/2
>> -2/3
-2/3

Implementation status

  • ✅ - full supported

Github