C# Класс Encog.MathUtil.ComplexNumber

A complex number class. This class is based on source code by Andrew G. Bennett, Department of Mathematics Kansas State University The original version can be found here: http://www.math.ksu.edu/~bennett/jomacg/c.html
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Arg ( ) : double

Argument of this Complex number (the angle in radians with the x-axis in polar coordinates).

ComplexNumber ( ComplexNumber other ) : System

Create a complex number from another complex number.

ComplexNumber ( double u, double v ) : System

Constructs the complex number z = u + i*v

Conj ( ) : ComplexNumber

Complex conjugate of this Complex number (the conjugate of x+i*y is x-i*y).

Cos ( ) : ComplexNumber

Cosine of this Complex number (doesn't change this Complex number). cos(z) = (exp(i*z)+exp(-i*z))/ 2.

Cosh ( ) : ComplexNumber

Hyperbolic cosine of this Complex number (doesn't change this Complex number). cosh(z) = (exp(z) + exp(-z)) / 2.

Exp ( ) : ComplexNumber

Complex exponential (doesn't change this Complex number).

Log ( ) : ComplexNumber

Principal branch of the Complex logarithm of this Complex number. (doesn't change this Complex number). The principal branch is the branch with -pi less arg les-equals pi.

Mod ( ) : double

Modulus of this Complex number (the distance from the origin in polar coordinates).

Sin ( ) : ComplexNumber

Sine of this Complex number (doesn't change this Complex number). sin(z) = (exp(i*z)-exp(-i*z))/(2*i).

Sinh ( ) : ComplexNumber

Hyperbolic sine of this Complex number (doesn't change this Complex number). sinh(z) = (exp(z)-exp(-z))/2.

Sqrt ( ) : ComplexNumber

Complex square root (doesn't change this complex number). Computes the principal branch of the square root, which is the value with 0 less equals arg less pi.

Tan ( ) : ComplexNumber

Tangent of this Complex number (doesn't change this Complex number).

ToString ( ) : String
operator ( ) : ComplexNumber

Addition of Complex numbers (doesn't change this Complex number). (x+i*y) + (s+i*t) = (x+s)+i*(y+t)

Приватные методы

Метод Описание
Cosh ( double theta ) : double

Real cosh function (used to compute complex trig functions).

Sinh ( double theta ) : double

Real sinh function (used to compute complex trig functions).

Описание методов

Arg() публичный Метод

Argument of this Complex number (the angle in radians with the x-axis in polar coordinates).
public Arg ( ) : double
Результат double

ComplexNumber() публичный Метод

Create a complex number from another complex number.
public ComplexNumber ( ComplexNumber other ) : System
other ComplexNumber The other complex number.
Результат System

ComplexNumber() публичный Метод

Constructs the complex number z = u + i*v
public ComplexNumber ( double u, double v ) : System
u double Real part
v double Imaginary part
Результат System

Conj() публичный Метод

Complex conjugate of this Complex number (the conjugate of x+i*y is x-i*y).
public Conj ( ) : ComplexNumber
Результат ComplexNumber

Cos() публичный Метод

Cosine of this Complex number (doesn't change this Complex number). cos(z) = (exp(i*z)+exp(-i*z))/ 2.
public Cos ( ) : ComplexNumber
Результат ComplexNumber

Cosh() публичный Метод

Hyperbolic cosine of this Complex number (doesn't change this Complex number). cosh(z) = (exp(z) + exp(-z)) / 2.
public Cosh ( ) : ComplexNumber
Результат ComplexNumber

Exp() публичный Метод

Complex exponential (doesn't change this Complex number).
public Exp ( ) : ComplexNumber
Результат ComplexNumber

Log() публичный Метод

Principal branch of the Complex logarithm of this Complex number. (doesn't change this Complex number). The principal branch is the branch with -pi less arg les-equals pi.
public Log ( ) : ComplexNumber
Результат ComplexNumber

Mod() публичный Метод

Modulus of this Complex number (the distance from the origin in polar coordinates).
public Mod ( ) : double
Результат double

Sin() публичный Метод

Sine of this Complex number (doesn't change this Complex number). sin(z) = (exp(i*z)-exp(-i*z))/(2*i).
public Sin ( ) : ComplexNumber
Результат ComplexNumber

Sinh() публичный Метод

Hyperbolic sine of this Complex number (doesn't change this Complex number). sinh(z) = (exp(z)-exp(-z))/2.
public Sinh ( ) : ComplexNumber
Результат ComplexNumber

Sqrt() публичный Метод

Complex square root (doesn't change this complex number). Computes the principal branch of the square root, which is the value with 0 less equals arg less pi.
public Sqrt ( ) : ComplexNumber
Результат ComplexNumber

Tan() публичный Метод

Tangent of this Complex number (doesn't change this Complex number).
public Tan ( ) : ComplexNumber
Результат ComplexNumber

ToString() публичный Метод

public ToString ( ) : String
Результат String

operator() публичный статический Метод

Addition of Complex numbers (doesn't change this Complex number). (x+i*y) + (s+i*t) = (x+s)+i*(y+t)
public static operator ( ) : ComplexNumber
Результат ComplexNumber