ComplexDouble

public final class ComplexDouble

Represents complex number using two Double values.

Parameters

real

real part.

imaginary

imaginary part.

Constructors

ComplexDouble
Link copied to clipboard
ComplexDouble ComplexDouble(Number real, Number imaginary)
Converts real part and imaginary part from Number to Double.

Types

Companion
Link copied to clipboard
public class Companion

Functions

abs
Link copied to clipboard
final Double abs()
Absolute value of a complex number.
arg
Link copied to clipboard
final Double arg()
Argument of a complex number from -PI to PI radians.
conj
Link copied to clipboard
final ComplexDouble conj()
Complex conjugate.
div
Link copied to clipboard
final ComplexDouble div(ComplexDouble other)
final ComplexDouble div(Number other)
equals
Link copied to clipboard
Boolean equals(Object other)
getIm
Link copied to clipboard
final Double getIm()
imaginary part.
getRe
Link copied to clipboard
final Double getRe()
real part.
minus
Link copied to clipboard
final ComplexDouble minus(ComplexDouble other)
final ComplexDouble minus(Number other)
plus
Link copied to clipboard
final ComplexDouble plus(ComplexDouble other)
final ComplexDouble plus(Number other)
pow
Link copied to clipboard
final ComplexDouble pow(ComplexDouble z)
Most Generalized form of pow.
final ComplexDouble pow(Double k)
Multiply to the power of k.
final ComplexDouble pow(Integer n)
Multiply to the power of n.
setIm
Link copied to clipboard
final Unit setIm(Double im)
imaginary part.
setRe
Link copied to clipboard
final Unit setRe(Double re)
real part.
times
Link copied to clipboard
final ComplexColumnVector times(ComplexColumnVector other)
final ComplexDouble times(ComplexDouble other)
final ComplexMatrix times(ComplexMatrix other)
final ComplexRowVector times(ComplexRowVector other)
final ComplexTensor times(ComplexTensor other)
final ComplexDouble times(Number other)
toString
Link copied to clipboard
String toString()
Stringification.
unaryMinus
Link copied to clipboard
final ComplexDouble unaryMinus()
unaryPlus
Link copied to clipboard
final ComplexDouble unaryPlus()

Properties

im
Link copied to clipboard
private Double im
imaginary part.
re
Link copied to clipboard
private Double re
real part.