* These exams test solving small linear systems of symbolic equations. */
/*
- * 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
if (aux != 1) {
++result;
clog << "solution of 3*x+5==8 erroneously returned "
- << aux << endl;
+ << aux << endl;
}
return result;
!normal(sol_y - (3-a*b)/(a+b)).is_zero()) {
++result;
clog << "solution of the system " << eqns << " for " << vars
- << " erroneously returned " << sol << endl;
+ << " erroneously returned " << sol << endl;
}
return result;
(sol_y != numeric(-10,17))) {
++result;
clog << "solution of the system " << eqns << " for " << vars
- << " erroneously returned " << sol << endl;
+ << " erroneously returned " << sol << endl;
}
return result;
(sol_y != numeric(-1,2))) {
++result;
clog << "solution of the system " << eqns << " for " << vars
- << " erroneously returned " << sol << endl;
+ << " erroneously returned " << sol << endl;
}
return result;
(sol_y != t)) {
++result;
clog << "solution of the system " << eqns << " for " << vars
- << " erroneously returned " << sol << endl;
+ << " erroneously returned " << sol << endl;
}
return result;
(sol_z != (b+c)/2)) {
++result;
clog << "solution of the system " << eqns << " for " << vars
- << " erroneously returned " << sol << endl;
+ << " erroneously returned " << sol << endl;
}
return result;