X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=check%2Fcheck_lsolve.cpp;h=d09b6e9dda94fe7b30703256480bb9f1ad8dd753;hb=ec64e556734484ca3c518e6de95b26be61bedee7;hp=cbc77c1a7675e41286302d97e985df12b2be97e8;hpb=da64e515abf7243bc4c84ca3631470931c4e6691;p=ginac.git diff --git a/check/check_lsolve.cpp b/check/check_lsolve.cpp index cbc77c1a..d09b6e9d 100644 --- a/check/check_lsolve.cpp +++ b/check/check_lsolve.cpp @@ -5,7 +5,7 @@ * the underlying symbolic manipulations. */ /* - * GiNaC Copyright (C) 1999-2005 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2019 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 @@ -22,8 +22,16 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "checks.h" +#include "ginac.h" +using namespace GiNaC; + +#include // for rand() +#include #include +using namespace std; + +extern const ex +dense_univariate_poly(const symbol & x, unsigned degree); static unsigned check_matrix_solve(unsigned m, unsigned n, unsigned p, unsigned degree) @@ -110,7 +118,6 @@ static unsigned check_inifcns_lsolve(unsigned n) } lst eqns; // equation list lst vars; // variable list - ex sol; // solution // Create a random linear system... for (unsigned i=0; i