go1.20.5
GoThrough

cmplx.MACHEP

const MACHEP = 1.0 / (1 << 53)

cmplx.PI1

// Use Cody-Waite reduction in three parts. // PI1, PI2 and PI3 comprise an extended precision value of PI // such that PI ~= PI1 + PI2 + PI3. The parts are chosen so // that PI1 and PI2 have an approximately equal number of trailing // zero bits. This ensures that t*PI1 and t*PI2 are exact for // large integer values of t. The full precision PI3 ensures the // approximation of PI is accurate to 102 bits to handle cancellation // during subtraction. const PI1 = 3.141592502593994

cmplx.PI2

// Use Cody-Waite reduction in three parts. const PI2 = 1.5099578831723193e-07

cmplx.PI3

// Use Cody-Waite reduction in three parts. const PI3 = 1.0780605716316238e-14

cmplx.Abs

// Abs returns the absolute value (also called the modulus) of x. func Abs(x complex128) float64

cmplx.Acos

// Acos returns the inverse cosine of x. func Acos(x complex128) complex128

cmplx.Acosh

// Acosh returns the inverse hyperbolic cosine of x. func Acosh(x complex128) complex128

cmplx.Asin

// Asin returns the inverse sine of x. func Asin(x complex128) complex128

cmplx.Asinh

// Asinh returns the inverse hyperbolic sine of x. func Asinh(x complex128) complex128

cmplx.Atan

// Atan returns the inverse tangent of x. func Atan(x complex128) complex128

cmplx.Atanh

// Atanh returns the inverse hyperbolic tangent of x. func Atanh(x complex128) complex128

cmplx.Conj

// Conj returns the complex conjugate of x. func Conj(x complex128) complex128

cmplx.Cos

// Cos returns the cosine of x. func Cos(x complex128) complex128

cmplx.Cosh

// Cosh returns the hyperbolic cosine of x. func Cosh(x complex128) complex128

cmplx.Cot

// Cot returns the cotangent of x. func Cot(x complex128) complex128

cmplx.Exp

// Exp returns e**x, the base-e exponential of x. func Exp(x complex128) complex128

cmplx.Inf

// Inf returns a complex infinity, complex(+Inf, +Inf). func Inf() complex128

cmplx.IsInf

// IsInf reports whether either real(x) or imag(x) is an infinity. func IsInf(x complex128) bool

cmplx.IsNaN

// IsNaN reports whether either real(x) or imag(x) is NaN // and neither is an infinity. func IsNaN(x complex128) bool

cmplx.Log

// Log returns the natural logarithm of x. func Log(x complex128) complex128

cmplx.Log10

// Log10 returns the decimal logarithm of x. func Log10(x complex128) complex128

cmplx.NaN

// NaN returns a complex “not-a-number” value. func NaN() complex128

cmplx.Phase

// Phase returns the phase (also called the argument) of x. // The returned value is in the range [-Pi, Pi]. func Phase(x complex128) float64

cmplx.Polar

// Polar returns the absolute value r and phase θ of x, // such that x = r * e**θi. // The phase is in the range [-Pi, Pi]. func Polar(x complex128) (r float64, θ float64)

cmplx.Pow

// Pow returns x**y, the base-x exponential of y. // For generalized compatibility with math.Pow: // // Pow(0, ±0) returns 1+0i // Pow(0, c) for real(c)<0 returns Inf+0i if imag(c) is zero, otherwise Inf+Inf i. func Pow(x complex128, y complex128) complex128

cmplx.Rect

// Rect returns the complex number x with polar coordinates r, θ. func Rect(r float64, θ float64) complex128

cmplx.Sin

// Sin returns the sine of x. func Sin(x complex128) complex128

cmplx.Sinh

// Sinh returns the hyperbolic sine of x. func Sinh(x complex128) complex128

cmplx.Sqrt

// Sqrt returns the square root of x. // The result r is chosen so that real(r) ≥ 0 and imag(r) has the same sign as imag(x). func Sqrt(x complex128) complex128

cmplx.Tan

// Tan returns the tangent of x. func Tan(x complex128) complex128

cmplx.Tanh

// Tanh returns the hyperbolic tangent of x. func Tanh(x complex128) complex128