17 int main(
int argc,
char **argv)
28 JParser<> zap(
"Example program to test polynome.");
31 zap[
'e'] =
make_field(precision) = numeric_limits<double>::min();
36 catch(
const exception &error) {
37 FATAL(error.what() << endl);
42 DEBUG(
"polynome: " << f1 << endl);
43 DEBUG(
"derivative: " << f1.getDerivative() << endl);
44 DEBUG(
"integral: " << f1.getIntegral() << endl);
45 DEBUG(
"polynome: " << f1.getDerivative().getIntegral() << endl);
46 DEBUG(
"polynome: " << f1.getIntegral().getDerivative() << endl);
48 ASSERT(f1.equals(f1.getIntegral().getDerivative(), precision));