OGS
GaussLegendre.cpp
Go to the documentation of this file.
1
13#include "GaussLegendre.h"
14
15namespace MathLib
16{
17template <>
18double const GaussLegendre<1>::X[1] = {0.};
19template <>
20double const GaussLegendre<1>::W[1] = {2.};
21
22template <>
23double const GaussLegendre<2>::X[2] = {0.577350269189626, -0.577350269189626};
24template <>
25double const GaussLegendre<2>::W[2] = {1., 1.};
26
27template <>
28double const GaussLegendre<3>::X[3] = {0.774596669241483, 0.,
29 -0.774596669241483};
30template <>
31double const GaussLegendre<3>::W[3] = {5. / 9, 8. / 9, 5. / 9};
32
33template <>
34double const GaussLegendre<4>::X[4] = {-0.861136311594053, -0.339981043584856,
35 0.339981043584856, 0.861136311594053};
36template <>
37double const GaussLegendre<4>::W[4] = {0.347854845137454, 0.652145154862546,
38 0.652145154862546, 0.347854845137454};
39
40} // namespace MathLib