るりまサーチ

最速Rubyリファレンスマニュアル検索!
19件ヒット [1-19件を表示] (0.069秒)
トップページ > クエリ:i[x] > ライブラリ:mathn[x]

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. matrix i
  5. csv to_i

クラス

モジュール

キーワード

検索結果

Integer#/(other) -> Numeric (3102.0)

Fixnum#quo と同じ働きをします(有理数または整数を返します)。

...Fixnum#quo と同じ働きをします(有理数または整数を返します)。

例:

10 / 3 # => 3

require 'mathn'
10 / 3 # => (10/3)...

Rational#**(rhs) -> Numeric (3102.0)

@todo

...@todo

self のべき乗を返します。 Rational になるようであれば Rational で返します。...

Bignum#/(other) (3002.0)

@todo

...@todo

Bignum#quo と同じ働きをします(有理数または整数を返します)。...

Fixnum#/(other) (3002.0)

@todo

...@todo

Fixnum#quo と同じ働きをします(有理数または整数を返します)。...

Math.#rsqrt(a) -> Numeric (102.0)

@todo

...do

複素数を考慮しないので、負の数や Complex をあたえないでください。

a が Float の時は、Float を返します。
それ以外の時、平方根が有理数であれば、Rational または Integer を返します。
無理数であれば、Float を返します。...

絞り込み条件を変える

Math.#sqrt(a) -> Numeric (102.0)

@todo

@todo

a の正の平方根を返します。
a が Complex の時は、Complex を返します。
a が負の時は、a を正にして、その平方根を Complex の虚数部に入れて返します。
それ以外は、Math.rsqrt の結果を返します。