33    static double get(
const double R) 
 
   35      return 2*JTOOLS::PI*R*R * JVolume<N-2>::get(R) / N;
 
   51    static double get(
const double R) 
 
   53      return JTOOLS::PI*R*R;
 
   69    static double get(
const double R) 
 
   83int main(
int argc, 
char **argv)
 
   93    JParser<> zap(
"Example program to test integration of sphere in any number of dimensions.");
 
  101  catch(
const exception &error) {
 
  102    FATAL(error.what() << endl);
 
  110  const double R = 1.0;
 
  121  gs.configure(make_multigrid<N-2>(grid));
 
  123  for (JMultiFunction_t::super_iterator i = gs.super_begin(); i != gs.super_end(); ++i) {
 
  125    const double x = (*i).getKey().getLength();
 
  127    for (
int __i = 0; __i != grid.
getSize(); ++__i) {
 
  129      const double y = grid.
getX(__i);
 
  130      const double z = R*R - x*x - y*y;
 
  133        (*i).getValue()[y] = 2.0 * sqrt(z);
 
  135        (*i).getValue()[y] = 0.0;
 
  141  const double U = JVolume<N>::get(R);
 
  143  JTimer timer(
"integrator");
 
  147  const double W = getIntegral(gs);
 
  151  NOTICE(
"Sphere " << N << 
"D" << endl);
 
  157  ASSERT(fabs(U - W) < precision * U);
 
 
Various implementations of functional maps.
 
General purpose messaging.
 
#define ASSERT(A,...)
Assert macro.
 
Utility class to parse command line options.
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
I/O formatting auxiliaries.
 
int numberOfBins
number of bins for average CDF integral of optical module
 
int main(int argc, char **argv)
 
Auxiliary class for CPU timing and usage.
 
Utility class to parse command line options.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
Auxiliary data structure for floating point format specification.