29#include "gsl/gsl_sf_gamma.h"
30#include "gsl/gsl_sf_pow_int.h"
66 for(std::size_t i = 0; i <= n; i++) {
70 f_n *= gsl_sf_pow_int(-1.0, n);
71 Bx += f_n * gsl_sf_pow_int(R[1], 2 * n + 1) / gsl_sf_fact(2 * n + 1);
80 for(std::size_t i = 0; i <= n; i++) {
84 f_n *= gsl_sf_pow_int(-1.0, n);
85 Bs += f_n * gsl_sf_pow_int(R[1], 2 * n + 1) / gsl_sf_fact(2 * n + 1);
97 for (std::size_t i = 0; i <= n; i++) {
101 f_n *= gsl_sf_pow_int(-1.0, n);
ippl::Vector< T, Dim > Vector_t
PartBunch_t * RefPartBunch_m
ElementBase(const std::string &name)
Constructor with given name.
virtual void setMaxOrder(const std::size_t &maxOrder)
std::size_t getMaxOrder() const
double getTransDeriv(const std::size_t &n, const double &x)
double getFringeDeriv(const std::size_t &n, const double &s)
virtual double getBs(const Vector_t< double, 3 > &R) override
virtual double getBx(const Vector_t< double, 3 > &R) override
StraightGeometry straightGeometry_m
virtual double getFn(const std::size_t &n, const double &x, const double &s) override
virtual void setMaxOrder(const std::size_t &maxOrder) override
virtual ElementBase * clone() const override
MultipoleTStraight(const std::string &name)
virtual void transformCoords(Vector_t< double, 3 > &R) override