JAutoDiff

nilgiri.math
Interface ComplexNumber<R extends RealNumber<R>,X>

Type Parameters:
R - Real numbers.
X - Complex numbers which is (x + i y) where x, y in R.
All Superinterfaces:
CommutativeGroup<X>, CommutativeRing<X>, Field<X>, Group<X>, Ring<X>
All Known Implementing Classes:
DoubleComplex

public interface ComplexNumber<R extends RealNumber<R>,X>
extends Field<X>

Let R denote a class implements RealNumber<R>. A class X implements the ComplexNumber<R, X> interface indicates that X is a complex number whose real and imaginary parts are of R.d


Method Summary
 X conjugate()
          Returns an object of X whose value is the conjugate (this.re() - this.im()).
 R im()
          Returns an object of R whose value is the imaginary part of this.
 R re()
          Returns an object of R whose value is the real part of this.
 
Methods inherited from interface nilgiri.math.Field
div, inverse
 
Methods inherited from interface nilgiri.math.Ring
mul, pow
 
Methods inherited from interface nilgiri.math.Group
minus, mul, negate, plus
 

Method Detail

conjugate

X conjugate()
Returns an object of X whose value is the conjugate (this.re() - this.im()).

Returns:
(this.re() - this.im()).

re

R re()
Returns an object of R whose value is the real part of this.

Returns:
the real part of this.

im

R im()
Returns an object of R whose value is the imaginary part of this.

Returns:
the imaginary part of this.

JAutoDiff

JAutoDiff website