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
파일 보기 프로젝트 열기: encog/encog-silverlight-core 1 사용 예제들

공개 메소드들

메소드 설명
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