Documentation
¶
Index ¶
- type Float
- func (f *Float) Abs(a *Float) *Float
- func (f *Float) Add(a, b *Float) *Float
- func (f *Float) Arg(x *Float) *Float
- func (f *Float) Atan2(x *Float) *Float
- func (f *Float) Conj(a *Float) *Float
- func (f *Float) Cos(x *Float) *Float
- func (f *Float) Div(a, b *Float) *Float
- func (f *Float) Exp(x *Float) *Float
- func (f *Float) Log(x *Float) *Float
- func (f *Float) Mul(a, b *Float) *Float
- func (f *Float) Pow(x *Float, y *Float) *Float
- func (f *Float) Rat(r *Rational)
- func (f *Float) SetRat(r *Rational)
- func (f *Float) Sin(x *Float) *Float
- func (f *Float) Sqrt(a *Float) *Float
- func (f *Float) String() string
- func (f *Float) Sub(a, b *Float) *Float
- func (f *Float) Tan(x *Float) *Float
- type Matrix
- func (m *Matrix) Abs(a *Matrix) *Matrix
- func (m *Matrix) Add(a, b *Matrix) *Matrix
- func (m *Matrix) Arg(a *Matrix) *Matrix
- func (m *Matrix) Atan2(a *Matrix) *Matrix
- func (m *Matrix) Conj(a *Matrix) *Matrix
- func (m *Matrix) Cos(a *Matrix) *Matrix
- func (m *Matrix) Div(a, b *Matrix) *Matrix
- func (m *Matrix) Exp(a *Matrix) *Matrix
- func (m *Matrix) Log(a *Matrix) *Matrix
- func (m *Matrix) Mul(a, b *Matrix) *Matrix
- func (m *Matrix) Neg(a *Matrix) *Matrix
- func (m *Matrix) Pow(x *Matrix, y *Rational) *Matrix
- func (m *Matrix) Sin(a *Matrix) *Matrix
- func (m *Matrix) Sqrt(a *Matrix) *Matrix
- func (m *Matrix) String() string
- func (m *Matrix) Sub(a, b *Matrix) *Matrix
- func (m *Matrix) Tan(a *Matrix) *Matrix
- type Rational
- func (r *Rational) Add(a, b *Rational) *Rational
- func (r *Rational) Conj(a *Rational) *Rational
- func (r *Rational) Div(a, b *Rational) *Rational
- func (r *Rational) Mul(a, b *Rational) *Rational
- func (r *Rational) Neg(a *Rational) *Rational
- func (r *Rational) String() string
- func (r *Rational) Sub(a, b *Rational) *Rational
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Float ¶
Float is an imaginary number
func (*Float) Arg ¶
Arg computes arg(x + yi) = tan-1(y/x) https://mathworld.wolfram.com/ComplexArgument.html
func (*Float) Atan2 ¶
Atan2 computes atan2 of x https://en.wikipedia.org/wiki/Atan2
func (*Float) Cos ¶
Cos computes cosine of a number https://www.wolframalpha.com/input/?i=cos%28x+%2B+yi%29
func (*Float) Exp ¶
Exp computes e^x for a complex number https://www.wolframalpha.com/input/?i=e%5E%28x+%2B+yi%29
func (*Float) Log ¶
Log computes the natural log of x https://en.wikipedia.org/wiki/Complex_logarithm
func (*Float) Pow ¶
Pow computes x**y https://mathworld.wolfram.com/ComplexExponentiation.html
func (*Float) Sin ¶
Sin computes sine of a number https://www.wolframalpha.com/input/?i=sin%28x+%2B+yi%29
func (*Float) Sqrt ¶
Sqrt computes the square root of the complex number https://www.johndcook.com/blog/2020/06/09/complex-square-root/
type Matrix ¶
Matrix is a matrix
func (*Matrix) Arg ¶
Arg computes arg(x + yi) = tan-1(y/x) https://mathworld.wolfram.com/ComplexArgument.html
func (*Matrix) Atan2 ¶
Atan2 computes atan2 of x https://en.wikipedia.org/wiki/Atan2
func (*Matrix) Cos ¶
Cos computes cosine of a number https://www.wolframalpha.com/input/?i=cos%28x+%2B+yi%29
func (*Matrix) Exp ¶
Exp computes e^x for a complex number https://www.wolframalpha.com/input/?i=e%5E%28x+%2B+yi%29
func (*Matrix) Log ¶
Log computes the natural log of x https://en.wikipedia.org/wiki/Complex_logarithm
func (*Matrix) Pow ¶
Pow computes x**y https://mathworld.wolfram.com/ComplexExponentiation.html
func (*Matrix) Sin ¶
Sin computes sine of a number https://www.wolframalpha.com/input/?i=sin%28x+%2B+yi%29
type Rational ¶
Rational is an imaginary number
func NewRational ¶
NewRational creates a new imaginary number