public class BigComplex extends Object implements ComplexType<BigComplex>
Constructor and Description |
---|
BigComplex()
Default constructor: value = (0,0).
|
BigComplex(BigDecimal r,
BigDecimal i)
Constructor from BigDecimals.
|
BigComplex(BigInteger r,
BigInteger i)
Constructor from BigIntegers.
|
BigComplex(double r,
double i)
Constructor from doubles.
|
BigComplex(long r,
long i)
Constructor from longs.
|
BigComplex(String r,
String i)
Constructor from Strings.
|
Modifier and Type | Method and Description |
---|---|
void |
add(BigComplex other)
Adds another BigComplex value to self.
|
void |
add(BigComplex a,
BigComplex b)
Set self to the result of addition between two BigComplex values.
|
void |
complexConjugate()
Does complex conjugation on self.
|
BigComplex |
copy()
Creates a new BigComplex whose values are taken from this BigComplex.
|
BigComplex |
createVariable()
Creates a new BigComplex initialized to (0,0).
|
void |
div(BigComplex other)
Divides self by another BigComplex value.
|
void |
div(BigComplex a,
BigComplex b)
Set self to the result of division between two BigComplex values.
|
void |
E()
Fills self with the representation of e for the given type.
|
BigDecimal |
getImag()
Gets imaginary component of this complex number as a BigDecimal.
|
double |
getImaginaryDouble()
Gets imaginary component as a double (narrowing possible).
|
float |
getImaginaryFloat()
Gets imaginary component as a float (narrowing possible).
|
BigDecimal |
getPhase()
Gets phase as a BigDecimal.
|
double |
getPhaseDouble()
Gets phase as a double (narrowing possible).
|
float |
getPhaseFloat()
Gets phase as a float (narrowing possible).
|
BigDecimal |
getPower()
Gets magnitude as a BigDecimal.
|
double |
getPowerDouble()
Gets magnitude as a double (narrowing possible).
|
float |
getPowerFloat()
Gets magnitude as a float (narrowing possible).
|
BigDecimal |
getReal()
Gets real component of this complex number as a BigDecimal.
|
double |
getRealDouble()
Gets real component as a double (narrowing possible).
|
float |
getRealFloat()
Gets real component as a float (narrowing possible).
|
void |
mul(BigComplex other)
Multiplies another BigComplex value with self.
|
void |
mul(BigComplex a,
BigComplex b)
Set self to the result of multiplication between two BigComplex values.
|
void |
mul(double c)
Multiplies self by a scalar (double) constant.
|
void |
mul(float c)
Multiplies self by a scalar (float) constant.
|
void |
PI()
Fills self with the representation of pi for the given type.
|
void |
pow(BigComplex c) |
void |
pow(double power) |
void |
set(BigComplex other)
Sets the real and imaginary components of this BigComplex to match those of
another.
|
void |
set(BigDecimal r,
BigDecimal i)
Sets the real and imaginary components of this BigComplex to given
BigDecimal values.
|
void |
set(BigInteger r,
BigInteger i)
Sets the real and imaginary components of this BigComplex to given
BigInteger values.
|
void |
set(double r,
double i)
Sets the real and imaginary components of this BigComplex to given double
values.
|
void |
set(long r,
long i)
Sets the real and imaginary components of this BigComplex to given long
values.
|
void |
set(String r,
String i)
Sets the real and imaginary components of this BigComplex to given String
values.
|
void |
setComplexNumber(BigDecimal r,
BigDecimal i)
Sets the real and imaginary components of this BigComplex to given
BigDecimal values.
|
void |
setComplexNumber(double r,
double i)
Sets the real and imaginary components of this BigComplex to given double
values.
|
void |
setComplexNumber(float r,
float i)
Sets the real and imaginary components of this BigComplex to given float
values.
|
void |
setComplexNumber(String r,
String i)
Sets the real and imaginary components of this BigComplex to given String
values.
|
void |
setImag(BigDecimal i)
Sets the imaginary component of this BigComplex to given BigDecimal value.
|
void |
setImag(BigInteger i)
Sets the imaginary component of this BigComplex to given BigInteger value.
|
void |
setImag(double i)
Sets the imaginary component of this BigComplex to given double value.
|
void |
setImag(long i)
Sets the imaginary component of this BigComplex to given long value.
|
void |
setImag(String i)
Sets the imaginary component of this BigComplex to given String value.
|
void |
setImaginary(double f)
Sets the imaginary component of this BigComplex to given double value.
|
void |
setImaginary(float f)
Sets the imaginary component of this BigComplex to given float value.
|
void |
setOne()
Sets this BigComplex to the unity value.
|
void |
setReal(BigDecimal r)
Sets the real component of this BigComplex to given BigDecimal value.
|
void |
setReal(BigInteger r)
Sets the real component of this BigComplex to given BigInteger value.
|
void |
setReal(double r)
Sets the real component of this BigComplex to given double value.
|
void |
setReal(float f)
Sets the real component of this BigComplex to given float value.
|
void |
setReal(long r)
Sets the real component of this BigComplex to given long value.
|
void |
setReal(String r)
Sets the real component of this BigComplex to given String value.
|
void |
setZero()
Sets this BigComplex to the zero value.
|
void |
sub(BigComplex other)
Subtracts another BigComplex value from self.
|
void |
sub(BigComplex a,
BigComplex b)
Set self to the result of subtraction between two BigComplex values.
|
boolean |
valueEquals(BigComplex t) |
public BigComplex()
public BigComplex(long r, long i)
public BigComplex(double r, double i)
public BigComplex(BigInteger r, BigInteger i)
public BigComplex(BigDecimal r, BigDecimal i)
public BigDecimal getReal()
public BigDecimal getImag()
public void set(BigComplex other)
set
in interface Type<BigComplex>
public void set(long r, long i)
public void set(double r, double i)
public void set(BigInteger r, BigInteger i)
public void set(BigDecimal r, BigDecimal i)
public void set(String r, String i)
public void setReal(long r)
public void setReal(float f)
setReal
in interface ComplexType<BigComplex>
public void setReal(double r)
setReal
in interface ComplexType<BigComplex>
public void setReal(BigInteger r)
public void setReal(BigDecimal r)
public void setReal(String r)
public void setImag(long i)
public void setImag(double i)
public void setImag(BigInteger i)
public void setImag(BigDecimal i)
public void setImag(String i)
public void setImaginary(float f)
setImaginary
in interface ComplexType<BigComplex>
public void setImaginary(double f)
setImaginary
in interface ComplexType<BigComplex>
public void setComplexNumber(float r, float i)
setComplexNumber
in interface ComplexType<BigComplex>
public void setComplexNumber(double r, double i)
setComplexNumber
in interface ComplexType<BigComplex>
public void setComplexNumber(BigDecimal r, BigDecimal i)
public void setComplexNumber(String r, String i)
public void setZero()
public void setOne()
public BigComplex createVariable()
createVariable
in interface Type<BigComplex>
public BigComplex copy()
copy
in interface Type<BigComplex>
public void add(BigComplex a, BigComplex b)
public void add(BigComplex other)
add
in interface Add<BigComplex>
public void sub(BigComplex a, BigComplex b)
public void sub(BigComplex other)
sub
in interface Sub<BigComplex>
public void mul(BigComplex a, BigComplex b)
public void mul(BigComplex other)
mul
in interface Mul<BigComplex>
public void div(BigComplex a, BigComplex b)
public void div(BigComplex other)
div
in interface Div<BigComplex>
public void mul(float c)
mul
in interface MulFloatingPoint
public void mul(double c)
mul
in interface MulFloatingPoint
public void pow(BigComplex c)
pow
in interface Pow<BigComplex>
public void pow(double power)
pow
in interface PowFloatingPoint
public void complexConjugate()
complexConjugate
in interface ComplexType<BigComplex>
public double getRealDouble()
getRealDouble
in interface ComplexType<BigComplex>
public float getRealFloat()
getRealFloat
in interface ComplexType<BigComplex>
public double getImaginaryDouble()
getImaginaryDouble
in interface ComplexType<BigComplex>
public float getImaginaryFloat()
getImaginaryFloat
in interface ComplexType<BigComplex>
public float getPowerFloat()
getPowerFloat
in interface ComplexType<BigComplex>
public double getPowerDouble()
getPowerDouble
in interface ComplexType<BigComplex>
public BigDecimal getPower()
public float getPhaseFloat()
getPhaseFloat
in interface ComplexType<BigComplex>
public double getPhaseDouble()
getPhaseDouble
in interface ComplexType<BigComplex>
public BigDecimal getPhase()
public void PI()
public void E()
public boolean valueEquals(BigComplex t)
valueEquals
in interface ValueEquals<BigComplex>
Copyright © 2014–2022 ImageJ. All rights reserved.