DOLFIN
DOLFIN C++ interface
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
static double d2dx(std::size_t n, double x)
Definition: Legendre.cpp:44
Definition: adapt.h:29
static double eval(std::size_t n, double x)
Definition: Legendre.cpp:33
Interface for computing Legendre polynomials via Boost.
Definition: Legendre.h:31
static double ddx(std::size_t n, double x)
Definition: Legendre.cpp:38