sallam-ahmed / Polynomial-Calculator

Data Structure 2015 Course Project
Apache License 2.0
0 stars 3 forks source link

Fixes / Unit tests #24

Closed khaledkee closed 8 years ago

khaledkee commented 8 years ago
sallam-ahmed commented 8 years ago

_There is a problem calculating the middle term in any polynomial _x^n - p^2__

image

khaledkee commented 8 years ago

It's mainly because of the Add function. More precisely, if there is a term in the polynomial with the same degree, the Add function replaces it. However, in the recent commit, Add function discards zero terms before changing the old term.