ComplexNumber ClassEncog Machine Learning Framework for .Net
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
Inheritance Hierarchy

System Object
  Encog.MathUtil ComplexNumber

Namespace: Encog.MathUtil
Assembly: encog-core-cs (in encog-core-cs.dll) Version: 3.3.0.0 (3.3.0.0)
Syntax

public class ComplexNumber

The ComplexNumber type exposes the following members.

Constructors

  NameDescription
Public methodComplexNumber(ComplexNumber)
Create a complex number from another complex number.
Public methodComplexNumber(Double, Double)
Constructs the complex number z = u + i*v
Top
Methods

  NameDescription
Public methodArg
Argument of this Complex number (the angle in radians with the x-axis in polar coordinates).
Public methodConj
Complex conjugate of this Complex number (the conjugate of x+i*y is x-i*y).
Public methodCos
Cosine of this Complex number (doesn't change this Complex number). cos(z) = (exp(i*z)+exp(-i*z))/ 2.
Public methodCosh
Hyperbolic cosine of this Complex number (doesn't change this Complex number). cosh(z) = (exp(z) + exp(-z)) / 2.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExp
Complex exponential (doesn't change this Complex number).
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodLog
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.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMod
Modulus of this Complex number (the distance from the origin in polar coordinates).
Public methodSin
Sine of this Complex number (doesn't change this Complex number). sin(z) = (exp(i*z)-exp(-i*z))/(2*i).
Public methodSinh
Hyperbolic sine of this Complex number (doesn't change this Complex number). sinh(z) = (exp(z)-exp(-z))/2.
Public methodSqrt
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 methodTan
Tangent of this Complex number (doesn't change this Complex number).
Public methodToString
Top
Operators

  NameDescription
Public operatorStatic memberAddition
Addition of Complex numbers (doesn't change this Complex number). (x+i*y) + (s+i*t) = (x+s)+i*(y+t)
Public operatorStatic memberDivision
Division of Complex numbers.
Public operatorStatic memberMultiply
Multiplication of Complex numbers.
Public operatorStatic memberSubtraction
Subtraction of Complex numbers. (x-i*y) + (s-i*t) = (x-s)+i*(y-t)
Public operatorStatic memberUnaryNegation
Negative of this complex number (chs stands for change sign). This produces a new Complex number and doesn't change this Complex number. -(x+i*y) = -x-i*y.
Top
Properties

  NameDescription
Public propertyImaginary
Imaginary part of this Complex number
Public propertyReal
Real part of this Complex number (the x-coordinate in rectangular coordinates).
Top
See Also