Bridge++  Ver. 2.0.2
math_Sign_Zolotarev.h
Go to the documentation of this file.
1 
14 #ifndef MATH_SIGN_ZOLOTAREV_INCLUDED
15 #define MATH_SIGN_ZOLOTAREV_INCLUDED
16 
17 #include <cassert>
18 
19 #include "bridge_defs.h"
21 
22 #include "IO/bridgeIO.h"
23 using Bridge::vout;
24 
26 
37 {
38  public:
39  static const std::string class_name;
40 
41  protected:
43 
44  private:
45  int m_Np;
46  double m_bmax;
47  std::vector<double> m_cl;
48  std::vector<double> m_bl;
49 
50  public:
51  Math_Sign_Zolotarev(const int Np, const double bmax)
52  : m_vl(CommonParameters::Vlevel()),
53  m_Np(Np), m_bmax(bmax)
54  {
56  }
57 
58  void get_sign_parameters(std::vector<double>& cl, std::vector<double>& bl);
59 
60  double sign(const double x);
61 
62  private:
63  void set_sign_parameters();
64  void poly_Zolotarev(const double bmax, double& UK);
65  void Jacobi_elliptic(const double uu, const double emmc,
66  double& sn, double& cn, double& dn);
67 };
68 #endif
bridgeIO.h
Math_Sign_Zolotarev::m_bl
std::vector< double > m_bl
Definition: math_Sign_Zolotarev.h:48
CommonParameters
Common parameter class: provides parameters as singleton.
Definition: commonParameters.h:42
Math_Sign_Zolotarev::get_sign_parameters
void get_sign_parameters(std::vector< double > &cl, std::vector< double > &bl)
Definition: math_Sign_Zolotarev.cpp:25
Math_Sign_Zolotarev::poly_Zolotarev
void poly_Zolotarev(const double bmax, double &UK)
Definition: math_Sign_Zolotarev.cpp:87
Math_Sign_Zolotarev::sign
double sign(const double x)
Definition: math_Sign_Zolotarev.cpp:71
Math_Sign_Zolotarev::Jacobi_elliptic
void Jacobi_elliptic(const double uu, const double emmc, double &sn, double &cn, double &dn)
Definition: math_Sign_Zolotarev.cpp:195
Math_Sign_Zolotarev::set_sign_parameters
void set_sign_parameters()
Definition: math_Sign_Zolotarev.cpp:51
Math_Sign_Zolotarev::m_cl
std::vector< double > m_cl
Definition: math_Sign_Zolotarev.h:47
Math_Sign_Zolotarev::m_bmax
double m_bmax
Definition: math_Sign_Zolotarev.h:46
Math_Sign_Zolotarev::m_vl
Bridge::VerboseLevel m_vl
Definition: math_Sign_Zolotarev.h:42
Math_Sign_Zolotarev::Math_Sign_Zolotarev
Math_Sign_Zolotarev(const int Np, const double bmax)
Definition: math_Sign_Zolotarev.h:51
Math_Sign_Zolotarev::class_name
static const std::string class_name
Definition: math_Sign_Zolotarev.h:39
Math_Sign_Zolotarev::m_Np
int m_Np
Definition: math_Sign_Zolotarev.h:45
commonParameters.h
Bridge::VerboseLevel
VerboseLevel
Definition: bridgeIO.h:42
bridge_defs.h
Bridge::vout
BridgeIO vout
Definition: bridgeIO.cpp:512
Math_Sign_Zolotarev
Determination of Zolotarev coefficients.
Definition: math_Sign_Zolotarev.h:36