The getNum command finds the numerator of an unreduced rational function.
Unlike numer (see Section 6.32.2), textttgetNum does not simplify the expression before extracting the numerator.
Examples.