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);
General purpose messaging.
#define DEBUG(A)
Message macros.
#define ASSERT(A,...)
Assert macro.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
int main(int argc, char **argv)
Utility class to parse command line options.
const JPolynome f1(1.0, 2.0, 3.0)
Function.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
bool equals(const JPolynome_t &P, const double eps=std::numeric_limits< double >::min()) const
Equality.
Recursive template class for polynomial function.
double getIntegral(const double x) const
Integral value.
double getDerivative(const double x) const
Derivative value.