DOLFIN
DOLFIN C++ interface
Toggle main menu visibility
Loading...
Searching...
No Matches
dolfin
math
Legendre.h
1
// Copyright (C) 2011 Garth N. Wells
2
//
3
// This file is part of DOLFIN.
4
//
5
// DOLFIN is free software: you can redistribute it and/or modify
6
// it under the terms of the GNU Lesser General Public License as published by
7
// the Free Software Foundation, either version 3 of the License, or
8
// (at your option) any later version.
9
//
10
// DOLFIN is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
// GNU Lesser General Public License for more details.
14
//
15
// You should have received a copy of the GNU Lesser General Public License
16
// along with DOLFIN. If not, see <http://www.gnu.org/licenses/>.
17
//
18
// First added: 2011-06-01
19
// Last changed:
20
21
#ifndef __LEGENDRE_H
22
#define __LEGENDRE_H
23
24
#include <cstddef>
25
26
namespace
dolfin
27
{
28
30
31
class
Legendre
32
{
33
public
:
34
42
static
double
eval
(std::size_t n,
double
x);
43
51
static
double
ddx
(std::size_t n,
double
x);
52
60
static
double
d2dx
(std::size_t n,
double
x);
61
62
};
63
64
}
65
66
#endif
dolfin::Legendre
Interface for computing Legendre polynomials via Boost.
Definition
Legendre.h:32
dolfin::Legendre::eval
static double eval(std::size_t n, double x)
Definition
Legendre.cpp:33
dolfin::Legendre::ddx
static double ddx(std::size_t n, double x)
Definition
Legendre.cpp:38
dolfin::Legendre::d2dx
static double d2dx(std::size_t n, double x)
Definition
Legendre.cpp:44
dolfin
Definition
adapt.h:30
Generated by
1.17.0