|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--jp.go.ipa.jgcl.JgclComplex
複素数を表すクラス。
このクラスのインスタンスは、 複素数の実数部を表す実数 re と虚数部を表す実数 im を持つ。
コンストラクタの概要 | |
JgclComplex()
実数部 0.0、虚数部 0.0 のオブジェクトを構築する。 |
|
JgclComplex(double r)
与えられた実数部を持ち、虚数部 0.0 のオブジェクトを構築する。 |
|
JgclComplex(double r,
double i)
与えられた実数部と虚数部でオブジェクトを構築する。 |
メソッドの概要 | |
double |
abs()
this の絶対値を返す。 |
JgclComplex |
add(JgclComplex mate)
(this + mate) を返す。 |
double |
arg()
this の偏角を返す。 |
JgclComplex |
conj()
this の共役値を返す。 |
JgclComplex |
copy()
この複素数の複製を返す。 |
JgclComplex |
div(double mate)
(this / mate) を返す。 |
JgclComplex |
div(JgclComplex mate)
(this / mate) を返す。 |
JgclComplex |
exp()
this の exponential を返す。 |
JgclComplex |
getEpsilon()
この複素数の符号に対応した「複素数の丸め誤差」を返す。 |
double |
imag()
この複素数の虚数部の値を返す。 |
JgclComplex |
minus()
(- this) を返す。 |
JgclComplex |
mul(double mate)
(this * mate) を返す。 |
JgclComplex |
mul(JgclComplex mate)
(this * mate) を返す。 |
double |
real()
この複素数の実数部の値を返す。 |
JgclComplex |
sqrt()
this の平方根を返す。 |
JgclComplex |
sub(JgclComplex mate)
(this - mate) を返す。 |
java.lang.String |
toString()
この複素数の属性を表す String を返す。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
コンストラクタの詳細 |
public JgclComplex()
public JgclComplex(double r, double i)
r
- 実数部i
- 虚数部public JgclComplex(double r)
r
- 実数部メソッドの詳細 |
public double real()
public double imag()
public JgclComplex copy()
public JgclComplex minus()
public JgclComplex add(JgclComplex mate)
public JgclComplex sub(JgclComplex mate)
public JgclComplex mul(JgclComplex mate)
public JgclComplex mul(double mate)
public JgclComplex div(JgclComplex mate)
public JgclComplex div(double mate)
public double abs()
public double arg()
public JgclComplex conj()
public JgclComplex exp()
public JgclComplex sqrt()
public java.lang.String toString()
java.lang.Object
内の toString
public final JgclComplex getEpsilon()
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |