npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
shiftedLegendreIntegral.hh
Go to the documentation of this file.
1 #ifndef NPSTAT_SHIFTEDLEGENDREINTEGRAL_HH_
2 #define NPSTAT_SHIFTEDLEGENDREINTEGRAL_HH_
3 
4 /*!
5 // \file shiftedLegendreIntegral.hh
6 //
7 // \brief Integrals between 0 and 1 of products of shifted Legendre
8 // polynomials orthonormal on [0, 1]
9 //
10 // Author: I. Volobouev
11 //
12 // July 2023
13 */
14 
15 namespace npstat {
16  // In the subsequent declarations, i, j, k, and l are
17  // the polynomial degrees
18  inline long double shiftedLegendreIntegral(const unsigned i)
19  {return i ? 0.0L : 1.0L;}
20 
21  inline long double shiftedLegendreIntegral(const unsigned i,
22  const unsigned j)
23  {return i == j ? 1.0L : 0.0L;}
24 
25  long double shiftedLegendreIntegral(unsigned i, unsigned j, unsigned k);
26 
27  long double shiftedLegendreIntegral(unsigned i, unsigned j,
28  unsigned k, unsigned l,
29  bool memoize = false);
30 }
31 
32 #endif // NPSTAT_SHIFTEDLEGENDREINTEGRAL_HH_
Definition: AbsArrayProjector.hh:14