![]() |
00001 // Copyright (C) 2003 Johan Hoffman and Anders Logg. 00002 // Licensed under the GNU GPL Version 2. 00003 00004 #ifndef __LEGENDRE_H 00005 #define __LEGENDRE_H 00006 00007 #include <dolfin/constants.h> 00008 00009 namespace dolfin { 00010 00020 00021 class Legendre { 00022 public: 00023 00024 Legendre(int n); 00025 00027 real operator() (real x); 00028 00030 real ddx(real x); 00031 00033 real d2dx(real x); 00034 00035 private: 00036 00037 real eval (int n, real x); 00038 real ddx (int n, real x); 00039 real d2dx (int n, real x); 00040 00041 int n; 00042 00043 }; 00044 00045 } 00046 00047 #endif
Documentation automatically generated with Doxygen on 10 Sep 2004.