|
Parkinson Disease Database | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmathutil.Complex
public class Complex
Třída slouží k uchování jednoho komplexního čísla.
Copyright: Copyright (c) 2005 Jan Dolezel
Company: ČVUT FEL, Prague
Field Summary | |
---|---|
private double |
im
|
private double |
real
|
Constructor Summary | |
---|---|
Complex()
|
|
Complex(Complex c)
|
|
Complex(double real)
|
|
Complex(double real,
double im)
|
Method Summary | |
---|---|
Complex |
add(Complex c)
Sčítá dvě komplexní čísla. |
void |
divide(double num)
Dělí komplexní číslo reálným číslem |
boolean |
equals(java.lang.Object o)
|
double |
getIm()
|
double |
getReal()
|
Complex |
multiple(Complex c)
Násobí dvě komplexní čísla. |
Complex |
substract(Complex c)
Odečítá dvě komplexní čísla. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private double real
private double im
Constructor Detail |
---|
public Complex()
public Complex(double real)
public Complex(double real, double im)
public Complex(Complex c)
Method Detail |
---|
public double getReal()
public double getIm()
public void divide(double num)
num
- doublepublic Complex add(Complex c)
c
- Complex druhý sčítanec
public Complex substract(Complex c)
c
- Complex odečítané číslo
public Complex multiple(Complex c)
c
- Complex
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
Parkinson Disease Database | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |