Lines Matching refs:z
167 static complex<_Tp> sqrtT(const complex<_Tp>& z) { in sqrtT() argument
168 _Tp re = z._M_re; in sqrtT()
169 _Tp im = z._M_im; in sqrtT()
188 sqrt(const complex<float>& z) { return sqrtT(z); } in sqrt() argument
191 sqrt(const complex<double>& z) { return sqrtT(z); } in sqrt() argument
195 sqrt(const complex<long double>& z) { return sqrtT(z); } in sqrt() argument
202 static complex<_Tp> expT(const complex<_Tp>& z) { in expT() argument
203 _Tp expx = ::exp(z._M_re); in expT()
204 return complex<_Tp>(expx * ::cos(z._M_im), in expT()
205 expx * ::sin(z._M_im)); in expT()
207 _STLP_DECLSPEC complex<float> _STLP_CALL exp(const complex<float>& z) in exp() argument
208 { return expT(z); } in exp()
210 _STLP_DECLSPEC complex<double> _STLP_CALL exp(const complex<double>& z) in exp() argument
211 { return expT(z); } in exp()
214 _STLP_DECLSPEC complex<long double> _STLP_CALL exp(const complex<long double>& z) in exp() argument
215 { return expT(z); } in exp()
221 static complex<_Tp> log10T(const complex<_Tp>& z, const _Tp& ln10_inv) { in log10T() argument
224 r._M_im = ::atan2(z._M_im, z._M_re) * ln10_inv; in log10T()
225 r._M_re = ::log10(::hypot(z._M_re, z._M_im)); in log10T()
229 _STLP_DECLSPEC complex<float> _STLP_CALL log10(const complex<float>& z) in log10() argument
232 return log10T(z, LN10_INVF); in log10()
235 _STLP_DECLSPEC complex<double> _STLP_CALL log10(const complex<double>& z) in log10() argument
238 return log10T(z, LN10_INV); in log10()
242 _STLP_DECLSPEC complex<long double> _STLP_CALL log10(const complex<long double>& z) in log10() argument
245 return log10T(z, LN10_INVL); in log10()
252 static complex<_Tp> logT(const complex<_Tp>& z) { in logT() argument
255 r._M_im = ::atan2(z._M_im, z._M_re); in logT()
256 r._M_re = ::log(::hypot(z._M_re, z._M_im)); in logT()
259 _STLP_DECLSPEC complex<float> _STLP_CALL log(const complex<float>& z) in log() argument
260 { return logT(z); } in log()
262 _STLP_DECLSPEC complex<double> _STLP_CALL log(const complex<double>& z) in log() argument
263 { return logT(z); } in log()
266 _STLP_DECLSPEC complex<long double> _STLP_CALL log(const complex<long double>& z) in log() argument
267 { return logT(z); } in log()
283 complex<_Tp> z = z_in; in powT() local
284 z = _STLP_PRIV __power(z, (n < 0 ? -n : n), multiplies< complex<_Tp> >()); in powT()
286 return _Tp(1.0) / z; in powT()
288 return z; in powT()