Bridge++  Version 1.4.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 <cmath>
18 #include <cassert>
19 
20 #include "defs.h"
22 
23 #include "IO/bridgeIO.h"
24 using Bridge::vout;
25 
27 
38 {
39  public:
40  static const std::string class_name;
41 
42  protected:
44 
45  private:
46  int m_Np;
47  double m_bmax;
48  std::vector<double> m_cl;
49  std::vector<double> m_bl;
50 
51  public:
52  Math_Sign_Zolotarev(int Np, double bmax)
53  : m_vl(CommonParameters::Vlevel()),
54  m_Np(Np), m_bmax(bmax)
55  {
57  }
58 
59  void get_sign_parameters(std::vector<double>& cl, std::vector<double>& bl);
60 
61  double sign(double x);
62 
63  private:
64 
65  void set_sign_parameters();
66 
67  void poly_Zolotarev(double bmax, double& UK);
68 
69  void Jacobi_elliptic(double uu, double emmc,
70  double& sn, double& cn, double& dn);
71 };
72 #endif
BridgeIO vout
Definition: bridgeIO.cpp:495
void get_sign_parameters(std::vector< double > &cl, std::vector< double > &bl)
Determination of Zolotarev coefficients.
void poly_Zolotarev(double bmax, double &UK)
void Jacobi_elliptic(double uu, double emmc, double &sn, double &cn, double &dn)
Bridge::VerboseLevel m_vl
static const std::string class_name
Common parameter class: provides parameters as singleton.
Math_Sign_Zolotarev(int Np, double bmax)
std::vector< double > m_bl
VerboseLevel
Definition: bridgeIO.h:42
std::vector< double > m_cl