Previous Up Next

6.7.4  Denominator of a fraction after simplification: denom getDenom

The denom command finds the denominator of a fraction.
getDenom is a synonym for denom.


Example.
Input:

denom(42/12)

or:

getDenom(42/12)

Output:

2

To avoid simplification, the argument must be quoted (see Section 6.12.4).
(For rational expressions see Section 6.32.3).
Input:

denom(’42/12’)

or:

getDenom(’42/12’)

Output:

12

Previous Up Next