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