ATLAS Offline Software
Loading...
Searching...
No Matches
LegendreWeights.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef LEGENDREWEIGHTS_H_
6#define LEGENDREWEIGHTS_H_
7
11constexpr double legendreWeights[21] = {
12
13 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
14
15 // Weights for the 5th order Legendre polynomial
16
17 0.236926885056189, 0.478628670499366, 0.568888888888889, 0.478628670499366,
18 0.236926885056189,
19
20 // Weights for the 6th order Legendre polynomial
21
22 0.17132449237917, 0.360761573048139, 0.467913934572691, 0.467913934572691,
23 0.360761573048139, 0.17132449237917
24
25};
26
30constexpr double legendreRoots[21] = {
31
32 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
33
34 // Roots of the 5th order Legendre polynomial
35
36 -0.906179845938664, -0.538469310105683, 0.0, 0.538469310105683, 0.906179845938664,
37
38 // Roots of the 6th order Legendre polynomial
39
40 -0.932469514203152, -0.661209386466265, -0.238619186083197, 0.238619186083197,
41 0.661209386466265, 0.932469514203152
42
43};
44
45#endif /* LEGENDREWEIGHTS_H_ */
constexpr double legendreRoots[21]
Stores roots of 5th and 6th order Legendre polynomials.
constexpr double legendreWeights[21]
Stores weights of 5th and 6th order Legendre polynomials.