legendre.h
来自「The Spectral Toolkit is a C++ spectral t」· C头文件 代码 · 共 34 行
H
34 行
//// spectral toolkit // copyright (c) 2005 university corporation for atmospheric research// licensed under the gnu general public license//#ifndef __legendre__#define __legendre__#include "gauss.h"namespace spectral{ /// Gauss-Legendre quadrature class. Uses an highly accurate method based on /// Swartztrauber, P.N., On Computing the Points and Weights for Gauss-Legendre Quadrature, /// <I>SIAM Journal on Scientific Computing</I>, <B>24</B> (2002), pp. 945-954. class legendre : public gauss { public: legendre(int n); private: real cpdp(real *cp, real *dcp); void tpdp(real theta,real cz,real *cp,real *dcp,real &pb,real &dpb); inline real sgn(real x) { return((x<0.0)?(-1.0):(1.0)); } };}#endif// Local Variables:// mode:C++// End:
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?