Numerator: getNum

### 5.32.1 Numerator: getNum

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

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

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

#### Examples

- Input:
  getNum((x^2-1)/(x-1))
  Output:

  x2−1

- Input:
  getNum((x^2+2*x+1)/(x^2-1))
  Output:

  x2+2 x+1