Home | History | Annotate | Download | only in src

Lines Matching refs:complex

21 // Trigonometric and hyperbolic functions for complex<float>,
22 // complex<double>, and complex<long double>
23 #include <complex>
68 static complex<_Tp> sinT(const complex<_Tp>& z) {
69 return complex<_Tp>(::sin(z._M_re) * ::cosh(z._M_im),
73 _STLP_DECLSPEC complex<float> _STLP_CALL sin(const complex<float>& z)
76 _STLP_DECLSPEC complex<double> _STLP_CALL sin(const complex<double>& z)
80 _STLP_DECLSPEC complex<long double> _STLP_CALL sin(const complex<long double>& z)
87 static complex<_Tp> cosT(const complex<_Tp>& z) {
88 return complex<_Tp>(::cos(z._M_re) * ::cosh(z._M_im),
92 _STLP_DECLSPEC complex<float> _STLP_CALL cos(const complex<float>& z)
95 _STLP_DECLSPEC complex<double> _STLP_CALL cos(const complex<double>& z)
99 _STLP_DECLSPEC complex<long double> _STLP_CALL cos(const complex<long double>& z)
106 static complex<_Tp> tanT(const complex<_Tp>& z, const _Tp& Tp_limit) {
111 return complex<_Tp>(0.f, (im2 > 0 ? 1.f : -1.f));
114 return complex<_Tp>(::sin(re2) / den, ::sinh(im2) / den);
118 _STLP_DECLSPEC complex<float> _STLP_CALL tan(const complex<float>& z)
121 _STLP_DECLSPEC complex<double> _STLP_CALL tan(const complex<double>& z)
125 _STLP_DECLSPEC complex<long double> _STLP_CALL tan(const complex<long double>& z)
132 static complex<_Tp> sinhT(const complex<_Tp>& z) {
133 return complex<_Tp>(::sinh(z._M_re) * ::cos(z._M_im),
137 _STLP_DECLSPEC complex<float> _STLP_CALL sinh(const complex<float>& z)
140 _STLP_DECLSPEC complex<double> _STLP_CALL sinh(const complex<double>& z)
144 _STLP_DECLSPEC complex<long double> _STLP_CALL sinh(const complex<long double>& z)
151 static complex<_Tp> coshT(const complex<_Tp>& z) {
152 return complex<_Tp>(::cosh(z._M_re) * ::cos(z._M_im),
156 _STLP_DECLSPEC complex<float> _STLP_CALL cosh(const complex<float>& z)
159 _STLP_DECLSPEC complex<double> _STLP_CALL cosh(const complex<double>& z)
163 _STLP_DECLSPEC complex<long double> _STLP_CALL cosh(const complex<long double>& z)
170 static complex<_Tp> tanhT(const complex<_Tp>& z, const _Tp& Tp_limit) {
174 return complex<_Tp>((re2 > 0 ? 1.f : -1.f), 0.f);
177 return complex<_Tp>(::sinh(re2) / den, ::sin(im2) / den);
181 _STLP_DECLSPEC complex<float> _STLP_CALL tanh(const complex<float>& z)
184 _STLP_DECLSPEC complex<double> _STLP_CALL tanh(const complex<double>& z)
188 _STLP_DECLSPEC complex<long double> _STLP_CALL tanh(const complex<long double>& z)