Example program to test polynome.
More...
#include <string>
#include <iostream>
#include <iomanip>
#include "JMath/JPolynome.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
Example program to test polynome.
- Author
- mdejong
Definition in file JPolynome.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 17 of file JPolynome.cc.
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));
Utility class to parse command line options.
#define ASSERT(A,...)
Assert macro.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG