Package | Description |
---|---|
org.josef.science.math |
Mathematical related classes.
|
Modifier and Type | Field and Description |
---|---|
static Complex |
Complex.I
Complex imaginary number I (Square root of -1).
|
static Complex |
Complex.NOT_A_NUMBER
Complex number representing NaN (Not a Number).
|
static Complex |
Complex.ONE
Complex number with a value of one.
|
static Complex |
Complex.TWO
Complex number with a value of two.
|
static Complex |
Complex.ZERO
Complex number with a value of zero.
|
Modifier and Type | Method and Description |
---|---|
Complex |
Complex.add(Complex complex)
Adds the supplied Complex number to this Complex number.
|
static Complex |
Complex.add(Complex left,
Complex right)
Computes left + right.
|
Complex |
Complex.divide(Complex complex)
Multiplies this Complex number by the supplied Complex number.
|
static Complex |
Complex.divide(Complex left,
Complex right)
Computes left * right.
|
Complex[] |
QuadraticEquation.getComplexRoots()
Gets the Complex roots.
|
Complex |
Complex.multiply(Complex complex)
Multiplies this Complex number by the supplied Complex number.
|
static Complex |
Complex.multiply(Complex left,
Complex right)
Computes left * right.
|
Complex |
Complex.negate()
Negates this Complex number.
|
Complex |
Complex.subtract(Complex complex)
Subtracts the supplied Complex number from this Complex number.
|
static Complex |
Complex.subtract(Complex left,
Complex right)
Computes left - right.
|
static Complex |
Complex.valueOf(double real,
double imaginary)
Creates a Complex number from the supplied real and imaginary parts.
|
Modifier and Type | Method and Description |
---|---|
Complex |
Complex.add(Complex complex)
Adds the supplied Complex number to this Complex number.
|
static Complex |
Complex.add(Complex left,
Complex right)
Computes left + right.
|
Complex |
Complex.divide(Complex complex)
Multiplies this Complex number by the supplied Complex number.
|
static Complex |
Complex.divide(Complex left,
Complex right)
Computes left * right.
|
Complex |
Complex.multiply(Complex complex)
Multiplies this Complex number by the supplied Complex number.
|
static Complex |
Complex.multiply(Complex left,
Complex right)
Computes left * right.
|
Complex |
Complex.subtract(Complex complex)
Subtracts the supplied Complex number from this Complex number.
|
static Complex |
Complex.subtract(Complex left,
Complex right)
Computes left - right.
|
Copyright © 2008–2018. All rights reserved.