当前位置: 首页>>代码示例>>C++>>正文


C++ complex::as_gsl_type方法代码示例

本文整理汇总了C++中complex::as_gsl_type方法的典型用法代码示例。如果您正苦于以下问题:C++ complex::as_gsl_type方法的具体用法?C++ complex::as_gsl_type怎么用?C++ complex::as_gsl_type使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在complex的用法示例。


在下文中一共展示了complex::as_gsl_type方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1:

 /** Constructor  */
 vector<complex>::vector(const size_t& size, const complex& z)
 {
     _vector = gsl_vector_complex_alloc(size);
     gsl_vector_complex_set_all(_vector, z.as_gsl_type());
 }
开发者ID:silvest,项目名称:HEPfit,代码行数:6,代码来源:gslpp_vector_complex.cpp

示例2: arccoth

 /** Inverse hyperbolic cotangent
 \ingroup complex
 \param[in] z Complex number
 \return \f$ \mathrm{acoth}(z) \f$*/
 complex arccoth(const complex& z)
 {
   return complex(gsl_complex_arccoth(z.as_gsl_type()));
 }
开发者ID:shehu0,项目名称:HEPfit,代码行数:8,代码来源:gslpp_complex.cpp

示例3: tanh

 /** Hyperbolic tangent
 \ingroup complex
 \param[in] z Complex number
 \return \f$ \tanh z \f$*/
 complex tanh(const complex& z)
 {
   return complex(gsl_complex_tanh(z.as_gsl_type()));
 }
开发者ID:shehu0,项目名称:HEPfit,代码行数:8,代码来源:gslpp_complex.cpp

示例4: csch

 /** Hyperbolic cosecant
 \ingroup complex
 \param[in] z Complex number
 \return \f$ \mathrm{csch} z \f$*/
 complex csch(const complex& z)
 {
   return complex(gsl_complex_csch(z.as_gsl_type()));
 }
开发者ID:shehu0,项目名称:HEPfit,代码行数:8,代码来源:gslpp_complex.cpp

示例5: pow

 /** Complex number to the x real order
 \ingroup complex
 \param[in] z Complex number
 \param[in] x Real number
 \return \f$ z^x \f$ */
 complex pow(const complex& z, const double  x)
 {
   return complex(gsl_complex_pow_real(z.as_gsl_type(), x));
 }
开发者ID:shehu0,项目名称:HEPfit,代码行数:9,代码来源:gslpp_complex.cpp

示例6: sec

 /** Secant
 \ingroup complex
 \param[in] z Complex number
 \return \f$ \sec z \f$*/
 complex sec(const complex& z)
 {
   return complex(gsl_complex_sec(z.as_gsl_type()));
 }
开发者ID:shehu0,项目名称:HEPfit,代码行数:8,代码来源:gslpp_complex.cpp

示例7: sqrt

 /** Square root of a complex number
 \ingroup complex
 \param[in] z Complex number
 \return \f$ \sqrt z \f$*/
 complex sqrt(const complex& z)
 {
   return complex(gsl_complex_sqrt(z.as_gsl_type()));
 }
开发者ID:shehu0,项目名称:HEPfit,代码行数:8,代码来源:gslpp_complex.cpp

示例8: log

 /** Logarithm of a complex number (base b)
 \ingroup complex
 \param[in] z Complex number
 \param[in] b Complex number
 \return \f$ \log_b z \f$*/
 complex log(const complex& z,
             const complex& b)
 {
   return complex(gsl_complex_log_b(z.as_gsl_type(),b.as_gsl_type()));
 }
开发者ID:shehu0,项目名称:HEPfit,代码行数:10,代码来源:gslpp_complex.cpp

示例9: complex

 /** Logarithm of a complex number (base 10)
 \ingroup complex
 \param[in] z Complex number
 \return \f$ \log_{10} z \f$*/
 complex log10(const complex& z)
 {
   return complex(gsl_complex_log10(z.as_gsl_type()));
 }
开发者ID:shehu0,项目名称:HEPfit,代码行数:8,代码来源:gslpp_complex.cpp

示例10: exp

 /** exponentioal of a complex number
 \ingroup complex
 \param[in] z Complex number
 \return \f$ e^z \f$*/
 complex exp(const complex& z)
 {
   return complex(gsl_complex_exp(z.as_gsl_type()));
 }
开发者ID:shehu0,项目名称:HEPfit,代码行数:8,代码来源:gslpp_complex.cpp


注:本文中的complex::as_gsl_type方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。