# Numerator of a fraction (numerator)

Numerator of a fraction.

## How to write it

### numerator(expr)

**expr**

Any expression: a number, a formula, a list or a matrix. Takes an expression.

## Examples

- $\displaystyle \operatorname{numerator}\left(\frac{3}{4}\right) = 3$

  `numerator(3/4)`

  In the solver, `numerator(3/4)` gives `3`.

  [Open in the solver](https://hilberon.com/?q=numerator%283%2F4%29)
- $\displaystyle \operatorname{numerator}\left(\frac{x+1}{x-1}\right) = x+1$

  `numerator((x + 1)/(x - 1))`

  In the solver, `numerator((x + 1)/(x - 1))` gives `x + 1`.

  [Open in the solver](https://hilberon.com/?q=numerator%28%28x%20%2B%201%29%2F%28x%20-%201%29%29)

## Related functions

- [polynomial_gcd](https://hilberon.com/library/polynomial_gcd)

  Greatest common divisor of two polynomials.
- [nc_multiply](https://hilberon.com/library/nc_multiply)

  The noncommutative product: multiplies quaternions in order, and anything else stays as written.
- [polynomial_lcm](https://hilberon.com/library/polynomial_lcm)

  Least common multiple of two polynomials.
- [minimal_polynomial](https://hilberon.com/library/minimal_polynomial)

  Minimal polynomial of an algebraic number over the rationals.
- [polynomial_quotient](https://hilberon.com/library/polynomial_quotient)

  Quotient of a polynomial division.
- [groebner_basis](https://hilberon.com/library/groebner_basis)

  Groebner basis of a list of polynomials.

---
Source: https://hilberon.com/library/numerator
