33件ヒット
[1-33件を表示]
(0.029秒)
別のキーワード
検索結果
-
Numeric
# conjugate -> Numeric (15117.0) -
常に self を返します。
...常に self を返します。
自身が Complex かそのサブクラスのインスタンスの場合は、自身の共役複素数(実数の場合は常に自身)を返します。
Numeric のサブクラスは、このメソッドを適切に再定義しなければなりません。
//emli... -
Numeric (60.0)
-
数値を表す抽象クラスです。Integer や Float などの数値クラス は Numeric のサブクラスとして実装されています。
...o o o o
conj | o - - - - - o
conjugate | o - - - - - o
Numeric Integer Fixnum Bi......**d
if self > 0
self.quo(x).ceil * x
else
self.quo(x).floor * x
end
end
def rounddown(d=0)
x = 10**d
if self < 0
self.quo(x).ceil * x
else
self.quo(x).floor * x
end
end
def roundoff(d=0)
x = 10**d
if self < 0
(self.quo(x) -......0.5).ceil * x
else
(self.quo(x) + 0.5).floor * x
end
end
end
//}......coerce | o o o o o
conj | o - - - o
conjugate | o - - - o
Numeric Integer Float Rational Complex
-... -
Numeric
# conj -> Numeric (17.0) -
常に self を返します。
...常に self を返します。
自身が Complex かそのサブクラスのインスタンスの場合は、自身の共役複素数(実数の場合は常に自身)を返します。
Numeric のサブクラスは、このメソッドを適切に再定義しなければなりません。
//emli...