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)doubleabs()stl_Complexconj()stl_Complexcos()stl_Complexdivides(stl_Complex stl_complex)inthashCode()doubleim()doubleimaginary()voidimaginary(double i)stl_Complexminus(stl_Complex stl_complex)stl_Complexplus(stl_Complex stl_complex)doublere()doublereal()voidreal(double r)stl_Complexrecp()stl_Complexscale(double k)stl_Complexsin()stl_Complextimes(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:
hashCodein classjava.lang.Object
-