### 11.6.1 Numerator

The getNum command finds the numerator of an unreduced rational function.

- getNum takes rat, a rational function.
- getNum(rat) returns the numerator of rat.

Unlike numer (see Section 11.6.2), textttgetNum does not simplify the expression before extracting the numerator.

#### Examples

getNum((x^2-1)/(x-1))

x2−1 |  |  |  |  |  |  |  |  |  |

getNum((x^2+2*x+1)/(x^2-1))

x2+2 x+1 |  |  |  |  |  |  |  |  |  |