# package cmplx

`import "math/cmplx"`

cmplx包提供了复数的常用常数和常用函数。

## func NaN

``````func NaN() complex128
``````

## func IsNaN

``````func IsNaN(x complex128) bool
``````

## func Inf

``````func Inf() complex128
``````

## func IsInf

``````func IsInf(x complex128) bool
``````

## func Abs

``````func Abs(x complex128) float64
``````

## func Phase

``````func Phase(x complex128) float64
``````

## func Polar

``````func Polar(x complex128) (r, θ float64)
``````

## func Rect

``````func Rect(r, θ float64) complex128
``````

## func Conj

``````func Conj(x complex128) complex128
``````

## func Sqrt

``````func Sqrt(x complex128) complex128
``````

## func Log

``````func Log(x complex128) complex128
``````

## func Log10

``````func Log10(x complex128) complex128
``````

## func Exp

``````func Exp(x complex128) complex128
``````

## func Pow

``````func Pow(x, y complex128) complex128
``````

``````Pow(0, ±0)  returns 1+0i
Pow(0, c)   如果image(c)==0，则当real(c)<0时返回Inf+0i；否则返回Inf+Inf i
``````

## func Sin

``````func Sin(x complex128) complex128
``````

## func Cos

``````func Cos(x complex128) complex128
``````

## func Tan

``````func Tan(x complex128) complex128
``````

## func Cot

``````func Cot(x complex128) complex128
``````

## func Asin

``````func Asin(x complex128) complex128
``````

## func Acos

``````func Acos(x complex128) complex128
``````

## func Atan

``````func Atan(x complex128) complex128
``````

## func Sinh

``````func Sinh(x complex128) complex128
``````

## func Cosh

``````func Cosh(x complex128) complex128
``````

## func Tanh

``````func Tanh(x complex128) complex128
``````

## func Asinh

``````func Asinh(x complex128) complex128
``````

## func Acosh

``````func Acosh(x complex128) complex128
``````

## func Atanh

``````func Atanh(x complex128) complex128
``````