# Simplifying: simp2

### 5.32.6 Simplifying: simp2

The simp2 command removes common factors from a pair of polynomials, as if reducing the numerator and denominator of a rational function. (See also Section 5.7.6.)

- simp2 takes two arguments:
  P and Q, two polynomials (or two integers, see Section 5.7.6).
- simp2(P,Q) returns a list of two polynomials seen as the numerator and denominator of the irreducible representation of the rational function P/Q.

#### Example.

Input:

simp2(x^3-1,x^2-1)

Output:

⎡ ⎣ | x2+x+1,x+1 | ⎤ ⎦