File indexing completed on 2026-06-02 08:48:23
0001 #ifndef TRAPEZOIDAL_INTEGRATOR_1D_H
0002 #define TRAPEZOIDAL_INTEGRATOR_1D_H
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #include "QuadratureIntegrator1D.h"
0013
0014 class FunctionType1D;
0015
0016 namespace NumA {
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026 class TrapezoidalIntegrator1D: public QuadratureIntegrator1D {
0027
0028 public:
0029
0030
0031
0032
0033
0034 TrapezoidalIntegrator1D(unsigned int N = 40);
0035
0036
0037
0038
0039 virtual ~TrapezoidalIntegrator1D();
0040
0041 virtual TrapezoidalIntegrator1D* clone() const;
0042
0043 virtual void setN(unsigned int n);
0044
0045 protected:
0046
0047
0048
0049
0050
0051
0052 TrapezoidalIntegrator1D(const TrapezoidalIntegrator1D &other);
0053
0054
0055
0056
0057 void setNodesAndWeights();
0058 };
0059
0060 }
0061
0062 #endif