NuTo
Numerics Tool
Legendre.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <vector>
4 
5 namespace NuTo
6 {
7 namespace Math
8 {
9 
10 namespace Polynomial
11 {
12 
19 double Legendre(int n, double x, int k = 0);
20 
24 std::vector<double> LegendreRoots(int n);
25 
29 std::vector<double> LegendreDerivRoots(int n);
30 
31 } // namespace Polynomial
32 } // namespace Math
33 } // namespace NuTo
double Legendre(int n, double x, int k=0)
value of the k-th derivative of legendre polynomial
Definition: Legendre.cpp:8
std::vector< double > LegendreRoots(int n)
roots of legendre polynomial
Definition: Legendre.cpp:52
std::vector< double > LegendreDerivRoots(int n)
roots of first derivative of legendre polynomial
Definition: Legendre.cpp:57
Definition: Exception.h:6