⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xcomplex

📁 vc6.0完整版
💻
📖 第 1 页 / 共 2 页
字号:
		else if (imag(_X) < 0)
			return (_CMPLX(_Ty)(-imag(_X) / (2 * _Rho), -_Rho));
		else
			return (_CMPLX(_Ty)(imag(_X) / (2 * _Rho),
				_Rho)); }}

#ifdef _DLL
#pragma warning(disable:4231) /* the extern before template is a non-standard extension */

extern template _CRTIMP complex<float>& __cdecl operator+=(
        complex<float>&, const complex<float>&);
extern template _CRTIMP complex<float>& __cdecl operator-=(
        complex<float>&, const complex<float>&);
extern template _CRTIMP complex<float>& __cdecl operator*=(
        complex<float>&, const complex<float>&);
extern template _CRTIMP complex<float>& __cdecl operator/=(
        complex<float>&, const complex<float>&);

extern template _CRTIMP basic_istream<char, char_traits<char> >& __cdecl operator>>(
        basic_istream<char, char_traits<char> >&, complex<float>&);
extern template _CRTIMP basic_ostream<char, char_traits<char> >& __cdecl operator<<(
        basic_ostream<char, char_traits<char> >&, const complex<float>&);
extern template _CRTIMP basic_istream<wchar_t, char_traits<wchar_t> >& __cdecl operator>>(
        basic_istream<wchar_t, char_traits<wchar_t> >&, complex<float>&);
extern template _CRTIMP basic_ostream<wchar_t, char_traits<wchar_t> >& __cdecl operator<<(
        basic_ostream<wchar_t, char_traits<wchar_t> >&, const complex<float>&);

extern template _CRTIMP complex<double>& __cdecl operator+=(
        complex<double>&, const complex<double>&);
extern template _CRTIMP complex<double>& __cdecl operator-=(
        complex<double>&, const complex<double>&);
extern template _CRTIMP complex<double>& __cdecl operator*=(
        complex<double>&, const complex<double>&);
extern template _CRTIMP complex<double>& __cdecl operator/=(
        complex<double>&, const complex<double>&);
extern template _CRTIMP basic_istream<char, char_traits<char> >& __cdecl operator>>(
        basic_istream<char, char_traits<char> >&, complex<double>&);
extern template _CRTIMP basic_ostream<char, char_traits<char> >& __cdecl operator<<(
        basic_ostream<char, char_traits<char> >&, const complex<double>&);
extern template _CRTIMP basic_istream<wchar_t, char_traits<wchar_t> >& __cdecl operator>>(
        basic_istream<wchar_t, char_traits<wchar_t> >&, complex<double>&);
extern template _CRTIMP basic_ostream<wchar_t, char_traits<wchar_t> >& __cdecl operator<<(
        basic_ostream<wchar_t, char_traits<wchar_t> >&, const complex<double>&);

extern template _CRTIMP complex<long double>& __cdecl operator+=(
        complex<long double>&, const complex<long double>&);
extern template _CRTIMP complex<long double>& __cdecl operator-=(
        complex<long double>&, const complex<long double>&);
extern template _CRTIMP complex<long double>& __cdecl operator*=(
        complex<long double>&, const complex<long double>&);
extern template _CRTIMP complex<long double>& __cdecl operator/=(
        complex<long double>&, const complex<long double>&);
extern template _CRTIMP basic_istream<char, char_traits<char> >& __cdecl operator>>(
        basic_istream<char, char_traits<char> >&, complex<long double>&);
extern template _CRTIMP basic_ostream<char, char_traits<char> >& __cdecl operator<<(
        basic_ostream<char, char_traits<char> >&, const complex<long double>&);
extern template _CRTIMP basic_istream<wchar_t, char_traits<wchar_t> >& __cdecl operator>>(
        basic_istream<wchar_t, char_traits<wchar_t> >&, complex<long double>&);
extern template _CRTIMP basic_ostream<wchar_t, char_traits<wchar_t> >& __cdecl operator<<(
        basic_ostream<wchar_t, char_traits<wchar_t> >&, const complex<long double>&);

extern template _CRTIMP float __cdecl imag(const complex<float>&);
extern template _CRTIMP float __cdecl real(const complex<float>&);
extern template _CRTIMP float __cdecl _Fabs(const complex<float>&, int *);
extern template _CRTIMP complex<float> __cdecl operator+(
        const complex<float>&, const complex<float>&);
extern template _CRTIMP complex<float> __cdecl operator+(
        const complex<float>&, const float&);
extern template _CRTIMP complex<float> __cdecl operator+(
        const float&, const complex<float>&);
extern template _CRTIMP complex<float> __cdecl operator-(
        const complex<float>&, const complex<float>&);
extern template _CRTIMP complex<float> __cdecl operator-(
        const complex<float>&, const float&);
extern template _CRTIMP    complex<float> __cdecl operator-(
        const float&, const complex<float>&);
extern template _CRTIMP complex<float> __cdecl operator*(
        const complex<float>&, const complex<float>&);
extern template _CRTIMP complex<float> __cdecl operator*(
        const complex<float>&, const float&);
extern template _CRTIMP complex<float> __cdecl operator*(
        const float&, const complex<float>&);
extern template _CRTIMP complex<float> __cdecl operator/(
        const complex<float>&, const complex<float>&);
extern template _CRTIMP complex<float> __cdecl operator/(
        const complex<float>&, const float&);
extern template _CRTIMP complex<float> __cdecl operator/(
        const float&, const complex<float>&);
extern template _CRTIMP complex<float> __cdecl operator+(
        const complex<float>&);
extern template _CRTIMP complex<float> __cdecl operator-(
        const complex<float>&);
extern template _CRTIMP bool __cdecl operator==(
        const complex<float>&, const complex<float>&);
extern template _CRTIMP bool __cdecl operator==(
        const complex<float>&, const float&);
extern template _CRTIMP bool __cdecl operator==(
        const float&, const complex<float>&);
extern template _CRTIMP bool __cdecl operator!=(
        const complex<float>&, const complex<float>&);
extern template _CRTIMP bool __cdecl operator!=(
        const complex<float>&, const float&);
extern template _CRTIMP bool __cdecl operator!=(
        const float&, const complex<float>&);
extern template _CRTIMP float __cdecl abs(const complex<float>&);
extern template _CRTIMP float __cdecl arg(const complex<float>&);
extern template _CRTIMP complex<float> __cdecl conj(const complex<float>&);
extern template _CRTIMP complex<float> __cdecl cos(const complex<float>&);
extern template _CRTIMP complex<float> __cdecl cosh(const complex<float>&);
extern template _CRTIMP complex<float> __cdecl exp(const complex<float>&);
extern template _CRTIMP complex<float> __cdecl log(const complex<float>&);
extern template _CRTIMP complex<float> __cdecl log10(const complex<float>&);
extern template _CRTIMP float __cdecl norm(const complex<float>&);
extern template _CRTIMP complex<float> __cdecl polar(const float&, const float&);
extern template _CRTIMP complex<float> __cdecl polar(const float&);
extern template _CRTIMP complex<float> __cdecl pow(
        const complex<float>&, const complex<float>&);
extern template _CRTIMP complex<float> __cdecl pow(
        const complex<float>&, const float&);
extern template _CRTIMP complex<float> __cdecl pow(
        const complex<float>&, int);
extern template _CRTIMP complex<float> __cdecl pow(
        const float&, const complex<float>&);
extern template _CRTIMP complex<float> __cdecl sin(const complex<float>&);
extern template _CRTIMP complex<float> __cdecl sinh(const complex<float>&);
extern template _CRTIMP complex<float> __cdecl sqrt(const complex<float>&);

extern template _CRTIMP double __cdecl imag(const complex<double>&);
extern template _CRTIMP double __cdecl real(const complex<double>&);
extern template _CRTIMP double __cdecl _Fabs(const complex<double>&, int *);
extern template _CRTIMP complex<double> __cdecl operator+(
        const complex<double>&, const complex<double>&);
extern template _CRTIMP complex<double> __cdecl operator+(
        const complex<double>&, const double&);
extern template _CRTIMP complex<double> __cdecl operator+(
        const double&, const complex<double>&);
extern template _CRTIMP complex<double> __cdecl operator-(
        const complex<double>&, const complex<double>&);
extern template _CRTIMP complex<double> __cdecl operator-(
        const complex<double>&, const double&);
extern template _CRTIMP    complex<double> __cdecl operator-(
        const double&, const complex<double>&);
extern template _CRTIMP complex<double> __cdecl operator*(
        const complex<double>&, const complex<double>&);
extern template _CRTIMP complex<double> __cdecl operator*(
        const complex<double>&, const double&);
extern template _CRTIMP complex<double> __cdecl operator*(
        const double&, const complex<double>&);
extern template _CRTIMP complex<double> __cdecl operator/(
        const complex<double>&, const complex<double>&);
extern template _CRTIMP complex<double> __cdecl operator/(
        const complex<double>&, const double&);
extern template _CRTIMP complex<double> __cdecl operator/(
        const double&, const complex<double>&);
extern template _CRTIMP complex<double> __cdecl operator+(
        const complex<double>&);
extern template _CRTIMP complex<double> __cdecl operator-(
        const complex<double>&);
extern template _CRTIMP bool __cdecl operator==(
        const complex<double>&, const complex<double>&);
extern template _CRTIMP bool __cdecl operator==(
        const complex<double>&, const double&);
extern template _CRTIMP bool __cdecl operator==(
        const double&, const complex<double>&);
extern template _CRTIMP bool __cdecl operator!=(
        const complex<double>&, const complex<double>&);
extern template _CRTIMP bool __cdecl operator!=(
        const complex<double>&, const double&);
extern template _CRTIMP bool __cdecl operator!=(
        const double&, const complex<double>&);
extern template _CRTIMP double __cdecl abs(const complex<double>&);
extern template _CRTIMP double __cdecl arg(const complex<double>&);
extern template _CRTIMP complex<double> __cdecl conj(const complex<double>&);
extern template _CRTIMP complex<double> __cdecl cos(const complex<double>&);
extern template _CRTIMP complex<double> __cdecl cosh(const complex<double>&);
extern template _CRTIMP complex<double> __cdecl exp(const complex<double>&);
extern template _CRTIMP complex<double> __cdecl log(const complex<double>&);
extern template _CRTIMP complex<double> __cdecl log10(const complex<double>&);
extern template _CRTIMP double __cdecl norm(const complex<double>&);
extern template _CRTIMP complex<double> __cdecl polar(const double&, const double&);
extern template _CRTIMP complex<double> __cdecl polar(const double&);
extern template _CRTIMP complex<double> __cdecl pow(
        const complex<double>&, const complex<double>&);
extern template _CRTIMP complex<double> __cdecl pow(
        const complex<double>&, const double&);
extern template _CRTIMP complex<double> __cdecl pow(
        const complex<double>&, int);
extern template _CRTIMP complex<double> __cdecl pow(
        const double&, const complex<double>&);
extern template _CRTIMP complex<double> __cdecl sin(const complex<double>&);
extern template _CRTIMP complex<double> __cdecl sinh(const complex<double>&);
extern template _CRTIMP complex<double> __cdecl sqrt(const complex<double>&);

extern template _CRTIMP long double __cdecl imag(const complex<long double>&);
extern template _CRTIMP long double __cdecl real(const complex<long double>&);
extern template _CRTIMP long double __cdecl _Fabs(const complex<long double>&, int *);
extern template _CRTIMP complex<long double> __cdecl operator+(
        const complex<long double>&, const complex<long double>&);
extern template _CRTIMP complex<long double> __cdecl operator+(
        const complex<long double>&, const long double&);
extern template _CRTIMP complex<long double> __cdecl operator+(
        const long double&, const complex<long double>&);
extern template _CRTIMP complex<long double> __cdecl operator-(
        const complex<long double>&, const complex<long double>&);
extern template _CRTIMP complex<long double> __cdecl operator-(
        const complex<long double>&, const long double&);
extern template _CRTIMP    complex<long double> __cdecl operator-(
        const long double&, const complex<long double>&);
extern template _CRTIMP complex<long double> __cdecl operator*(
        const complex<long double>&, const complex<long double>&);
extern template _CRTIMP complex<long double> __cdecl operator*(
        const complex<long double>&, const long double&);
extern template _CRTIMP complex<long double> __cdecl operator*(
        const long double&, const complex<long double>&);
extern template _CRTIMP complex<long double> __cdecl operator/(
        const complex<long double>&, const complex<long double>&);
extern template _CRTIMP complex<long double> __cdecl operator/(
        const complex<long double>&, const long double&);
extern template _CRTIMP complex<long double> __cdecl operator/(
        const long double&, const complex<long double>&);
extern template _CRTIMP complex<long double> __cdecl operator+(
        const complex<long double>&);
extern template _CRTIMP complex<long double> __cdecl operator-(
        const complex<long double>&);
extern template _CRTIMP bool __cdecl operator==(
        const complex<long double>&, const complex<long double>&);
extern template _CRTIMP bool __cdecl operator==(
        const complex<long double>&, const long double&);
extern template _CRTIMP bool __cdecl operator==(
        const long double&, const complex<long double>&);
extern template _CRTIMP bool __cdecl operator!=(
        const complex<long double>&, const complex<long double>&);
extern template _CRTIMP bool __cdecl operator!=(
        const complex<long double>&, const long double&);
extern template _CRTIMP bool __cdecl operator!=(
        const long double&, const complex<long double>&);
extern template _CRTIMP long double __cdecl abs(const complex<long double>&);
extern template _CRTIMP long double __cdecl arg(const complex<long double>&);
extern template _CRTIMP complex<long double> __cdecl conj(const complex<long double>&);
extern template _CRTIMP complex<long double> __cdecl cos(const complex<long double>&);
extern template _CRTIMP complex<long double> __cdecl cosh(const complex<long double>&);
extern template _CRTIMP complex<long double> __cdecl exp(const complex<long double>&);
extern template _CRTIMP complex<long double> __cdecl log(const complex<long double>&);
extern template _CRTIMP complex<long double> __cdecl log10(const complex<long double>&);
extern template _CRTIMP long double __cdecl norm(const complex<long double>&);
extern template _CRTIMP complex<long double> __cdecl polar(const long double&, const long double&);
extern template _CRTIMP complex<long double> __cdecl polar(const long double&);
extern template _CRTIMP complex<long double> __cdecl pow(
        const complex<long double>&, const complex<long double>&);
extern template _CRTIMP complex<long double> __cdecl pow(
        const complex<long double>&, const long double&);
extern template _CRTIMP complex<long double> __cdecl pow(
        const complex<long double>&, int);
extern template _CRTIMP complex<long double> __cdecl pow(
        const long double&, const complex<long double>&);
extern template _CRTIMP complex<long double> __cdecl sin(const complex<long double>&);
extern template _CRTIMP complex<long double> __cdecl sinh(const complex<long double>&);
extern template _CRTIMP complex<long double> __cdecl sqrt(const complex<long double>&);

#pragma warning(default:4231) /* restore previous warning */
#endif		// _DLL

#endif          /* _XCOMPLEX */

/*
 * Copyright (c) 1996 by P.J. Plauger.  ALL RIGHTS RESERVED. 
 * Consult your license regarding permissions and restrictions.
 */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -