6.7.3 Numerator of a fraction after simplification: numer getNum
The numer command finds the numerator of a
fraction.
getNum is a synonym for numer.
-
numer takes one argument:
r, a fraction.
- numer(r) returns the
numerator of r after it has been reduced to lowest terms. (For
rational expressions, see Section 6.32.2 and Section 6.32.1.)
Examples.
-
Input:
numer(42/12)
or:
getNum(42/12)
Output:
- To avoid simplification, the argument must
be quoted (see Section 6.12.4).
(For rational fractions see 6.32.1).
Input:
numer(’42/12’)
or:
getNum(’42/12’)
Output: