# Module Scientific.Functions.Rational

## Class RationalFunction: Rational Function

Instances of this class represent rational functions in a single variable. They can be evaluated like functions.

Constructor: RationalFunction(numerator, denominator)

numerator, denominator

  polynomials or sequences of numbers that represent the polynomial coefficients

Rational functions support addition, subtraction, multiplication, and division.

Methods:

- divide(shift=`0`)

  Returns a polynomial and a rational function such that the sum of the two is equal to the original rational function. The returned rational function's numerator is of lower order than its denominator.

  The argument shift (default: 0) specifies a positive integer power of the independent variable by which the numerator is multiplied prior to division.

- zeros()

  Returns an array containing the zeros.

- poles()

  Returns an array containing the poles.