Cpp-standard-library-cpp-complex-sqrt
提供:Dev Guides
C ++複雑なライブラリ-Sqrt
説明
これは複素数の平方根であり、主枝を使用してxの平方根を返します。主枝のカットは負の実軸に沿っています。
宣言
- 以下は、std
- sqrtの宣言です。
template<class T> complex<T> sqrt (const complex<T>& x);
C 11
template<class T> complex<T> sqrt (const complex<T>& x);
パラメーター
*x* -複素数値です。
戻り値
主分岐を使用してxの平方根を返します。主分岐のカットは負の実軸に沿っています。
例外
none