Module: stdgo.math.cmplx
Overview
Index
-
function polar(_x:stdgo.GoComplex128):stdgo.Tuple<Float, Float>
-
function pow(_x:stdgo.GoComplex128, _y:stdgo.GoComplex128):stdgo.GoComplex128
-
function testInfiniteLoopIntanSeries(_t:stdgo._internal.testing.T_):Void
Classes
import
class Cmplx
Package cmplx provides basic constants and mathematical functions for
complex numbers. Special case handling conforms to the C99 standard
Annex G IEC 60559-compatible complex arithmetic.
Cmplx function abs
function abs(_x:stdgo.GoComplex128):Float
Abs returns the absolute value (also called the modulus) of x.
Cmplx function acos
function acos(_x:stdgo.GoComplex128):stdgo.GoComplex128
Acos returns the inverse cosine of x.
Cmplx function acosh
function acosh(_x:stdgo.GoComplex128):stdgo.GoComplex128
Acosh returns the inverse hyperbolic cosine of x.
Cmplx function asin
function asin(_x:stdgo.GoComplex128):stdgo.GoComplex128
Asin returns the inverse sine of x.
Cmplx function asinh
function asinh(_x:stdgo.GoComplex128):stdgo.GoComplex128
Asinh returns the inverse hyperbolic sine of x.
Cmplx function atan
function atan(_x:stdgo.GoComplex128):stdgo.GoComplex128
Atan returns the inverse tangent of x.
Cmplx function atanh
function atanh(_x:stdgo.GoComplex128):stdgo.GoComplex128
Atanh returns the inverse hyperbolic tangent of x.
Cmplx function benchmarkAbs
function benchmarkAbs(_b:stdgo._internal.testing.B):Void
Cmplx function benchmarkAcos
function benchmarkAcos(_b:stdgo._internal.testing.B):Void
Cmplx function benchmarkAcosh
function benchmarkAcosh(_b:stdgo._internal.testing.B):Void
Cmplx function benchmarkAsin
function benchmarkAsin(_b:stdgo._internal.testing.B):Void
Cmplx function benchmarkAsinh
function benchmarkAsinh(_b:stdgo._internal.testing.B):Void
Cmplx function benchmarkAtan
function benchmarkAtan(_b:stdgo._internal.testing.B):Void
Cmplx function benchmarkAtanh
function benchmarkAtanh(_b:stdgo._internal.testing.B):Void
Cmplx function benchmarkConj
function benchmarkConj(_b:stdgo._internal.testing.B):Void
Cmplx function benchmarkCos
function benchmarkCos(_b:stdgo._internal.testing.B):Void
Cmplx function benchmarkCosh
function benchmarkCosh(_b:stdgo._internal.testing.B):Void
Cmplx function benchmarkExp
function benchmarkExp(_b:stdgo._internal.testing.B):Void
Cmplx function benchmarkLog
function benchmarkLog(_b:stdgo._internal.testing.B):Void
Cmplx function benchmarkLog10
function benchmarkLog10(_b:stdgo._internal.testing.B):Void
Cmplx function benchmarkPhase
function benchmarkPhase(_b:stdgo._internal.testing.B):Void
Cmplx function benchmarkPolar
function benchmarkPolar(_b:stdgo._internal.testing.B):Void
Cmplx function benchmarkPow
function benchmarkPow(_b:stdgo._internal.testing.B):Void
Cmplx function benchmarkRect
function benchmarkRect(_b:stdgo._internal.testing.B):Void
Cmplx function benchmarkSin
function benchmarkSin(_b:stdgo._internal.testing.B):Void
Cmplx function benchmarkSinh
function benchmarkSinh(_b:stdgo._internal.testing.B):Void
Cmplx function benchmarkSqrt
function benchmarkSqrt(_b:stdgo._internal.testing.B):Void
Cmplx function benchmarkTan
function benchmarkTan(_b:stdgo._internal.testing.B):Void
Cmplx function benchmarkTanh
function benchmarkTanh(_b:stdgo._internal.testing.B):Void
Cmplx function conj
function conj(_x:stdgo.GoComplex128):stdgo.GoComplex128
Conj returns the complex conjugate of x.
Cmplx function cos
function cos(_x:stdgo.GoComplex128):stdgo.GoComplex128
Cos returns the cosine of x.
Cmplx function cosh
function cosh(_x:stdgo.GoComplex128):stdgo.GoComplex128
Cosh returns the hyperbolic cosine of x.
Cmplx function cot
function cot(_x:stdgo.GoComplex128):stdgo.GoComplex128
Cot returns the cotangent of x.
Cmplx function exp
function exp(_x:stdgo.GoComplex128):stdgo.GoComplex128
Exp returns e\\x, the base-e exponential of x.
Cmplx function inf
function inf():stdgo.GoComplex128
Inf returns a complex infinity, complex(+Inf, +Inf).
Cmplx function isInf
function isInf(_x:stdgo.GoComplex128):Bool
IsInf reports whether either real(x) or imag(x) is an infinity.
Cmplx function isNaN
function isNaN(_x:stdgo.GoComplex128):Bool
IsNaN reports whether either real(x) or imag(x) is NaN
and neither is an infinity.
Cmplx function log
function log(_x:stdgo.GoComplex128):stdgo.GoComplex128
Log returns the natural logarithm of x.
Cmplx function log10
function log10(_x:stdgo.GoComplex128):stdgo.GoComplex128
Log10 returns the decimal logarithm of x.
Cmplx function naN
function naN():stdgo.GoComplex128
NaN returns a complex “not-a-number” value.
Cmplx function phase
function phase(_x:stdgo.GoComplex128):Float
Phase returns the phase (also called the argument) of x.
The returned value is in the range [-Pi, Pi].
Cmplx function polar
function polar(_x:stdgo.GoComplex128):stdgo.Tuple<Float, Float>
Polar returns the absolute value r and phase θ of x,
such that x = r * e**θi.
The phase is in the range [-Pi, Pi].
Cmplx function pow
function pow(_x:stdgo.GoComplex128, _y:stdgo.GoComplex128):stdgo.GoComplex128
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.
Cmplx function rect
function rect(_r:Float, __952:Float):stdgo.GoComplex128
Rect returns the complex number x with polar coordinates r, θ.
Cmplx function sin
function sin(_x:stdgo.GoComplex128):stdgo.GoComplex128
Sin returns the sine of x.
Cmplx function sinh
function sinh(_x:stdgo.GoComplex128):stdgo.GoComplex128
Sinh returns the hyperbolic sine of x.
Cmplx function sqrt
function sqrt(_x:stdgo.GoComplex128):stdgo.GoComplex128
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).
Cmplx function tan
function tan(_x:stdgo.GoComplex128):stdgo.GoComplex128
Tan returns the tangent of x.
Cmplx function tanh
function tanh(_x:stdgo.GoComplex128):stdgo.GoComplex128
Tanh returns the hyperbolic tangent of x.
Cmplx function testAbs
function testAbs(_t:stdgo._internal.testing.T_):Void
Cmplx function testAcos
function testAcos(_t:stdgo._internal.testing.T_):Void
Cmplx function testAcosh
function testAcosh(_t:stdgo._internal.testing.T_):Void
Cmplx function testAsin
function testAsin(_t:stdgo._internal.testing.T_):Void
Cmplx function testAsinh
function testAsinh(_t:stdgo._internal.testing.T_):Void
Cmplx function testAtan
function testAtan(_t:stdgo._internal.testing.T_):Void
Cmplx function testAtanh
function testAtanh(_t:stdgo._internal.testing.T_):Void
Cmplx function testConj
function testConj(_t:stdgo._internal.testing.T_):Void
Cmplx function testCos
function testCos(_t:stdgo._internal.testing.T_):Void
Cmplx function testCosh
function testCosh(_t:stdgo._internal.testing.T_):Void
Cmplx function testExp
function testExp(_t:stdgo._internal.testing.T_):Void
Cmplx function testInfiniteLoopIntanSeries
function testInfiniteLoopIntanSeries(_t:stdgo._internal.testing.T_):Void
See issue 17577
Cmplx function testIsNaN
function testIsNaN(_t:stdgo._internal.testing.T_):Void
Cmplx function testLog
function testLog(_t:stdgo._internal.testing.T_):Void
Cmplx function testLog10
function testLog10(_t:stdgo._internal.testing.T_):Void
Cmplx function testPolar
function testPolar(_t:stdgo._internal.testing.T_):Void
Cmplx function testPow
function testPow(_t:stdgo._internal.testing.T_):Void
Cmplx function testRect
function testRect(_t:stdgo._internal.testing.T_):Void
Cmplx function testSin
function testSin(_t:stdgo._internal.testing.T_):Void
Cmplx function testSinh
function testSinh(_t:stdgo._internal.testing.T_):Void
Cmplx function testSqrt
function testSqrt(_t:stdgo._internal.testing.T_):Void
Cmplx function testTan
function testTan(_t:stdgo._internal.testing.T_):Void
Cmplx function testTanHuge
function testTanHuge(_t:stdgo._internal.testing.T_):Void
Cmplx function testTanh
function testTanh(_t:stdgo._internal.testing.T_):Void
Typedefs
import
typedef T__struct_0
typedef T__struct_0 = stdgo._internal.math.cmplx.T__struct_0;