Revision badc53c944c7ced3e83e7e51116c9641eb6502d8 authored by Lars Bilke on 13 March 2023, 15:05:09 UTC, committed by Dmitry Yu. Naumov on 03 April 2023, 14:31:36 UTC
1 parent b72e93f
Raw File
GaussLegendre.cpp
/**
 * \author Norihiro Watanabe
 * \date   2013-08-13
 *
 * \file
 * \copyright
 * Copyright (c) 2012-2023, OpenGeoSys Community (http://www.opengeosys.org)
 *            Distributed under a Modified BSD License.
 *              See accompanying file LICENSE.txt or
 *              http://www.opengeosys.org/project/license
 */

#include "GaussLegendre.h"

namespace MathLib
{
template <>
double const GaussLegendre<1>::X[1] = {0.};
template <>
double const GaussLegendre<1>::W[1] = {2.};

template <>
double const GaussLegendre<2>::X[2] = {0.577350269189626, -0.577350269189626};
template <>
double const GaussLegendre<2>::W[2] = {1., 1.};

template <>
double const GaussLegendre<3>::X[3] = {0.774596669241483, 0.,
                                       -0.774596669241483};
template <>
double const GaussLegendre<3>::W[3] = {5. / 9, 8. / 9, 5. / 9};

template <>
double const GaussLegendre<4>::X[4] = {-0.861136311594053, -0.339981043584856,
                                       0.339981043584856, 0.861136311594053};
template <>
double const GaussLegendre<4>::W[4] = {0.347854845137454, 0.652145154862546,
                                       0.652145154862546, 0.347854845137454};

}  // namespace MathLib
back to top