X-Git-Url: https://ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=ginac%2Fpolynomial%2Fdivide_in_z_p.cpp;h=5caea0e982dba389a803982ba2da46afc803aa32;hb=d5b86dd10dd9cba12175d07af0b6edfc9a215e36;hp=dff30a9d6ab64724716b245425e217f7da61847e;hpb=45b1e47372090352ac5af655b32473df2abab23b;p=ginac.git diff --git a/ginac/polynomial/divide_in_z_p.cpp b/ginac/polynomial/divide_in_z_p.cpp index dff30a9d..5caea0e9 100644 --- a/ginac/polynomial/divide_in_z_p.cpp +++ b/ginac/polynomial/divide_in_z_p.cpp @@ -1,8 +1,32 @@ -#include +/** @file divide_in_z_p.cpp + * + * Implementation of polynomial division in Z/Zp. */ + +/* + * GiNaC Copyright (C) 1999-2015 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 @@ -85,4 +109,4 @@ bool divide_in_z_p(const ex &a, const ex &b, ex &q, const exvector& vars, const return false; } -} +} // namespace GiNaC