Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

dolfin::Legendre Class Reference

#include <Legendre.h>

List of all members.

Public Member Functions

 Legendre (int n)
real operator() (real x)
 Evaluation at given point.

real ddx (real x)
 Evaluation of derivative at given point.

real d2dx (real x)
 Evaluation of second derivative at given point.


Detailed Description

Legendre polynomial of given degree n on the interval [-1,1].

P0(x) = 1 P1(x) = x P2(x) = (3x^2 - 1) / 2 ...

The function values and derivatives are computed using three-term recurrence formulas.


Constructor & Destructor Documentation

Legendre::Legendre int  n  ) 
 


Member Function Documentation

real Legendre::d2dx real  x  ) 
 

Evaluation of second derivative at given point.

real Legendre::ddx real  x  ) 
 

Evaluation of derivative at given point.

real Legendre::operator() real  x  ) 
 

Evaluation at given point.


The documentation for this class was generated from the following files:


Documentation automatically generated with Doxygen on 10 Sep 2004.