restructure and add ipi texs

This commit is contained in:
2019-11-06 18:24:04 +01:00
parent e21da561fc
commit 8fd8d2a485
155 changed files with 129 additions and 0 deletions
@@ -0,0 +1,19 @@
bool Polynomial::operator== (Polynomial q)
{
if (q.degree()>degree())
{
for (int i=0; i<=degree(); i=i+1)
if ((*this)[i]!=q[i]) return false;
for (int i=degree()+1; i<=q.degree(); i=i+1)
if (q[i]!=0.0) return false;
}
else
{
for (int i=0; i<=q.degree(); i=i+1)
if ((*this)[i]!=q[i]) return false;
for (int i=q.degree()+1; i<=degree(); i=i+1)
if ((*this)[i]!=0.0) return false;
}
return true;
}