]> www.ginac.de Git - ginac.git/blobdiff - ginac/polynomial/divide_in_z_p.cpp
Added `degree_vector' utility function.
[ginac.git] / ginac / polynomial / divide_in_z_p.cpp
index 58ad7e8b4eba48b47e397c4bf4edb0468996150c..e39cb34a1d81b744eb2f4ef42c807dda04303377 100644 (file)
@@ -1,10 +1,32 @@
+/** @file divide_in_z_p.cpp
+ *
+ *  Implementation of polynomial division in Z/Zp. */
+
+/*
+ *  GiNaC Copyright (C) 1999-2010 Johannes Gutenberg University Mainz, Germany
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+ */
+
 #include "add.h"
 #include "operators.h"
 #include "power.h"
 #include "smod_helpers.h"
 
-namespace GiNaC
-{
+namespace GiNaC {
+
 /** 
  * Exact polynomial division of a, b \in Z_p[x_0, \ldots, x_n]
  * It doesn't check whether the inputs are proper polynomials, so be careful
@@ -87,4 +109,4 @@ bool divide_in_z_p(const ex &a, const ex &b, ex &q, const exvector& vars, const
        return false;
 }
 
-}
+} // namespace GiNaC