// The fix in the workaround left a whole which was fixed hours later...
ex another_zero = pow(zero,numeric(1)/numeric(2));
- if (another_zero.compare(exZERO())) {
+ if (!another_zero.is_zero()) {
clog << "pow(0,1/2) erroneously returned" << another_zero << endl;
++result;
}
// square roots of squares of integers:
passed = true;
for (int i=0; i<42; ++i) {
- if ( !sqrt(numeric(i*i)).is_integer() ) {
+ if (!sqrt(numeric(i*i)).is_integer()) {
passed = false;
}
}
passed = true;
for (int num=0; num<41; ++num) {
for (int den=1; den<42; ++den) {
- if ( !sqrt(numeric(num*num)/numeric(den*den)).is_rational() ) {
+ if (!sqrt(numeric(num*num)/numeric(den*den)).is_rational()) {
passed = false;
}
}