25 int main(
int argc,
char**argv)
30 const double xmin = -10.0;
31 const double xmax = +10.0;
35 unsigned int numberOfEvents;
42 JParser<> zap(
"Example program to test Legendre polynome.");
51 catch(
const exception &error) {
52 FATAL(error.what() << endl);
60 STATUS(
"function: " << *i << endl);
76 <<
FIXED(7,3) << i->first <<
" "
78 << 360.0 * acos(i->second.getA()) /
PI << endl);
86 for (
size_t n = 0;
n != N + 1; ++
n) {
88 STATUS(
"Legendre: " << setw(2) <<
n <<
' ' <<
g1[
n]);
98 if (numberOfEvents > 0) {
102 for (
unsigned int i = 0; i != numberOfEvents; ++i) {
104 const double x = gRandom->Uniform(
xmin,
xmax);
int main(int argc, char **argv)
Auxiliary methods for mathematics.
General purpose messaging.
#define DEBUG(A)
Message macros.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Double_t g1(const Double_t x)
Function.
int numberOfBins
number of bins for average CDF integral of optical module
Data structure for unit quaternion in three dimensions.
Utility class to parse command line options.
const JPolynome f1(1.0, 2.0, 3.0)
Function.
double getAngle(const JQuaternion3D &first, const JQuaternion3D &second)
Get space angle between quanternions.
static const double PI
Mathematical constants.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary data structure for floating point format specification.
Template specialisation for function evaluation of Legendre polynome of quaternions for defined numbe...
Base class for Legendre polynome.
std::vector< JOrdinate_t >::iterator iterator
Template definition for function evaluation of Legendre polynome.