ccgsl 2.7.2
C++wrappersforGnuScientificLibrary
gsl::cpx_long_double Namespace Reference

The gsl::cpx_long_double namespace allows the gsl::complex_long_double static funtions to be called from a namespace and so allows the usual C++ convenience of using code like the following. More...

Functions

complex_long_double rect (long double x, long double y)
 C++ version of gsl_complex_long_double_rect(). More...
 
complex_long_double polar (long double r, long double theta)
 C++ version of gsl_complex_long_double_rect(). More...
 

Detailed Description

The gsl::cpx_long_double namespace allows the gsl::complex_long_double static funtions to be called from a namespace and so allows the usual C++ convenience of using code like the following.

using namespace gsl;
using namespace gsl::cpx_long_double;
This class handles complex_long_double numbers.
The gsl::cpx_long_double namespace allows the gsl::complex_long_double static funtions to be called f...
complex_long_double rect(long double x, long double y)
C++ version of gsl_complex_long_double_rect().
complex sin(complex const &a)
C++ version of gsl_complex_sin().
Definition: complex.hpp:992
The gsl package creates an interface to the GNU Scientific Library for C++.
Definition: blas.hpp:34

Function Documentation

◆ polar()

complex_long_double gsl::cpx_long_double::polar ( long double  r,
long double  theta 
)
inline

C++ version of gsl_complex_long_double_rect().

Parameters
rThe magnitude
thetaThe argument
Returns
complex_long_double

Definition at line 376 of file complex_long_double.hpp.

References gsl::complex_long_double::polar().

◆ rect()

complex_long_double gsl::cpx_long_double::rect ( long double  x,
long double  y 
)
inline

C++ version of gsl_complex_long_double_rect().

Parameters
xReal part
yImaginary part
Returns
complex_long_double

Definition at line 369 of file complex_long_double.hpp.

References gsl::complex_long_double::rect().