*/
/*
- * GiNaC Copyright (C) 1999-2000 Johannes Gutenberg University Mainz, Germany
+ * GiNaC Copyright (C) 1999-2001 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
unsigned result = 0;
symbol a("a"), b("b");
ex p[8] = {a,
- b,
- a+b,
- pow(a,2) + a*b + pow(b,2),
- pow(a,3) + pow(a,2)*b - a*pow(b,2) + pow(b,3),
- pow(a,4) + pow(a,3)*b + pow(a*b,2) + a*pow(b,3) + pow(b,4),
- pow(a,5) + pow(a,4)*b + pow(a,3)*pow(b,2) - pow(a,2)*pow(b,3) + a*pow(b,4) + pow(b,5),
- pow(a,6) + pow(a,5)*b + pow(a,4)*pow(b,2) + pow(a*b,3) + pow(a,2)*pow(b,4) + a*pow(b,5) + pow(b,6)
+ b,
+ a+b,
+ pow(a,2) + a*b + pow(b,2),
+ pow(a,3) + pow(a,2)*b - a*pow(b,2) + pow(b,3),
+ pow(a,4) + pow(a,3)*b + pow(a*b,2) + a*pow(b,3) + pow(b,4),
+ pow(a,5) + pow(a,4)*b + pow(a,3)*pow(b,2) - pow(a,2)*pow(b,3) + a*pow(b,4) + pow(b,5),
+ pow(a,6) + pow(a,5)*b + pow(a,4)*pow(b,2) + pow(a*b,3) + pow(a,2)*pow(b,4) + a*pow(b,5) + pow(b,6)
};
// construct Toeplitz matrix:
// dirty consistency check of result:
if (!tdet.subs(a==0).subs(b==0).is_zero()) {
clog << "Determaint of Toeplitz matrix " << endl
- << "M==" << M << endl
- << "was miscalculated: det(M)==" << tdet << endl;
+ << "M==" << M << endl
+ << "was miscalculated: det(M)==" << tdet << endl;
++result;
}