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

dolfin::Lagrange Class Reference

#include <Lagrange.h>

List of all members.

Public Member Functions

 Lagrange (unsigned int q)
 Constructor.

 Lagrange (const Lagrange &p)
 Copy constructor.

 ~Lagrange ()
 Destructor.

void set (unsigned int i, real x)
 Specify point.

unsigned int size () const
 Return number of points.

unsigned int degree () const
 Return degree.

real point (unsigned int i) const
 Return point.

real operator() (unsigned int i, real x)
 Return value of polynomial i at given point x.

real eval (unsigned int i, real x)
 Return value of polynomial i at given point x.

real ddx (unsigned int i, real x)
 Return derivate of polynomial i at given point x.

real dqdx (unsigned int i)
 Return derivative q (a constant) of polynomial.

void show () const

Friends

LogStreamoperator<< (LogStream &stream, const Lagrange &p)
 Output.


Detailed Description

Lagrange polynomial (basis) with given degree q determined by n = q + 1 nodal points.

Example: q = 1 (n = 2)

Lagrange p(1); p.set(0, 0.0); p.set(1, 1.0);

This creates a Lagrange polynomial (actually two Lagrange polynomials):

p(0,x) = 1 - x (one at x = 0, zero at x = 1) p(1,x) = x (zero at x = 0, one at x = 1)


Constructor & Destructor Documentation

Lagrange::Lagrange unsigned int  q  ) 
 

Constructor.

Lagrange::Lagrange const Lagrange p  ) 
 

Copy constructor.

Lagrange::~Lagrange  ) 
 

Destructor.


Member Function Documentation

real Lagrange::ddx unsigned int  i,
real  x
 

Return derivate of polynomial i at given point x.

unsigned int Lagrange::degree  )  const
 

Return degree.

real Lagrange::dqdx unsigned int  i  ) 
 

Return derivative q (a constant) of polynomial.

real Lagrange::eval unsigned int  i,
real  x
 

Return value of polynomial i at given point x.

real Lagrange::operator() unsigned int  i,
real  x
 

Return value of polynomial i at given point x.

real Lagrange::point unsigned int  i  )  const
 

Return point.

void Lagrange::set unsigned int  i,
real  x
 

Specify point.

void Lagrange::show  )  const
 

unsigned int Lagrange::size  )  const
 

Return number of points.


Friends And Related Function Documentation

LogStream& operator<< LogStream stream,
const Lagrange p
[friend]
 

Output.


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


Documentation automatically generated with Doxygen on 10 Sep 2004.