るりまサーチ

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

別のキーワード

  1. open3 popen2e
  2. socket af_e164
  3. matrix det_e
  4. matrix rank_e
  5. open3 capture2e

クラス

モジュール

キーワード

検索結果

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

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

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

例:

10 / 3 # => 3

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

Bignum#/(other) (102.0)

@todo

@todo

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

Fixnum#/(other) (102.0)

@todo

@todo

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

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

@todo

...@todo

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

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

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

@todo

...@todo

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

絞り込み条件を変える

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

@todo

...@todo

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