Package com.jackmeng.stl
Class stl_Complex
java.lang.Object
com.jackmeng.stl.stl_Complex
public class stl_Complex
extends java.lang.Object
-
Field Summary
-
Constructor Summary
Constructors Constructor Description stl_Complex(double real, double imaginary)
-
Method Summary
Modifier and Type Method Description stl_Complex
$minus0(stl_Complex stl_complex)
double
abs()
stl_Complex
conj()
stl_Complex
cos()
stl_Complex
divides(stl_Complex stl_complex)
int
hashCode()
double
im()
double
imaginary()
void
imaginary(double i)
stl_Complex
minus(stl_Complex stl_complex)
stl_Complex
plus(stl_Complex stl_complex)
double
re()
double
real()
void
real(double r)
stl_Complex
recp()
stl_Complex
scale(double k)
stl_Complex
sin()
stl_Complex
times(stl_Complex stl_complex)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
real
private double real -
imaginary
private double imaginary
-
-
Constructor Details
-
stl_Complex
public stl_Complex(double real, double imaginary)
-
-
Method Details
-
real
public double real() -
imaginary
public double imaginary() -
real
public void real(double r) -
imaginary
public void imaginary(double i) -
re
public double re() -
im
public double im() -
plus
-
minus
-
$minus0
-
times
-
divides
-
abs
public double abs() -
sin
-
cos
-
recp
-
conj
-
scale
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-