WOLFRAM

DEMONSTRATIONS
PROJECT
Division of Polynomials up to Degree Six
p
(
x
)
=
c
6
x
6
+
c
5
x
5
+
c
4
x
4
+
c
3
x
3
+
c
2
x
2
+
c
1
x
+
c
0
coefficients
c
6
c
5
c
4
c
3
c
2
c
1
c
0
q
(
x
)
=
a
6
x
6
+
a
5
x
5
+
a
4
x
4
+
a
3
x
3
+
a
2
x
2
+
a
1
x
+
a
0
coefficients
a
6
a
5
a
4
a
3
a
2
a
1
a
0
reset
Divide
the
polynomial
p
(
x
)
=
4
x
6
+
6
x
5
+
6
x
4
+
5
x
3
+
3
x
2
+
6
x
+
4
by
the
polynomial
q
(
x
)
=
4
x
5
+
2
x
4
+
4
x
3
+
x
2
+
2
x
+
4
to
get
p
(
x
)
q
(
x
)
=
1
.
987
(
x
)
q
(
x
)
+
Q
(
x
)
,
where
degree
1
.
987
(
x
)
<
degree
q
(
x
)
.
Alternatively
,
this
is
p
(
x
)
1
.
987
(
x
)
+
q
(
x
)
Q
(
x
)
.
The
quotient
is
Q
(
x
)
=
x
+
1
and
the
remainder
is
1
.
987
(
x
)
=
0
.
This Demonstration divides two polynomials of degree six or less, showing the quotient and remainder.