File indexing completed on 2025-03-13 09:06:09
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019 #ifndef Bessel_h
0020 #define Bessel_h 1
0021 #include "CLHEP/GenericFunctions/AbsFunction.hh"
0022 #include "CLHEP/GenericFunctions/Parameter.hh"
0023 namespace Genfun {
0024
0025 namespace FractionalOrder {
0026
0027
0028
0029
0030 class Bessel : public AbsFunction {
0031
0032 FUNCTION_OBJECT_DEF(Bessel)
0033
0034 public:
0035
0036
0037 enum Type {J, Y};
0038
0039
0040
0041 Bessel (Type type);
0042
0043
0044 Bessel(const Bessel &right);
0045
0046
0047 virtual ~Bessel();
0048
0049
0050 virtual double operator ()(double argument) const override;
0051 virtual double operator ()(const Argument & a) const override {return operator() (a[0]);}
0052
0053
0054
0055 Parameter & order();
0056 const Parameter & order() const;
0057
0058 private:
0059
0060
0061 const Bessel & operator=(const Bessel &right);
0062
0063
0064 Type _type;
0065 Parameter _order;
0066
0067 };
0068 }
0069
0070 namespace IntegralOrder {
0071
0072
0073
0074
0075 class Bessel : public AbsFunction {
0076
0077 FUNCTION_OBJECT_DEF(Bessel)
0078
0079 public:
0080
0081
0082 enum Type {J, Y};
0083
0084
0085
0086 Bessel (Type type, unsigned int order);
0087
0088
0089 Bessel(const Bessel &right);
0090
0091
0092 virtual ~Bessel();
0093
0094
0095 virtual double operator ()(double argument) const override;
0096 virtual double operator ()(const Argument & a) const override {return operator() (a[0]);}
0097
0098 private:
0099
0100
0101 const Bessel & operator=(const Bessel &right);
0102
0103
0104 Type _type;
0105 unsigned int _order;
0106
0107 double _bessel_IJ_taylor(double nu,
0108 double x,
0109 int sign,
0110 int kmax,
0111 double threshhold) const;
0112
0113 };
0114 }
0115
0116 }
0117
0118
0119 #include "CLHEP/GenericFunctions/Bessel.icc"
0120 #endif