函式模板
<complex>

std::sqrt

template<class T> complex<T> sqrt (const complex<T>& x);
複數平方根
返回 x 的平方根,使用主分支,其截線沿負實軸。

這是 sqrt 函式(在 <cmath> 中定義)的 complex 版本。

引數

x
複數值。

返回值

x 的平方根。

另見