るりまサーチ

最速Rubyリファレンスマニュアル検索!
122件ヒット [101-122件を表示] (0.009秒)

別のキーワード

  1. math log
  2. _builtin math
  3. bigdecimal/math sqrt
  4. bigdecimal/math sin

ライブラリ

クラス

モジュール

キーワード

検索結果

<< < 1 2 >>

Math.#asinh(x) -> Float (9012.0)

x の逆双曲線正弦関数(area hyperbolic sine)の値を返します。

...ea hyperbolic sine)の値を返します。

=== 定義

asinh(x) = log(x + sqrt(x * x + 1))

@param x 実数

@raise TypeError x に数値以外を指定した場合に発生します。

@raise RangeError x に実数以外の数値を指定した場合に発生します。

@see Math.#sinh...

bigdecimal/math (6012.0)

BigDecimalを使った数学的な機能を提供します。

...す。

* sqrt(x, prec)
* sin (x, prec)
* cos (x, prec)
* atan(x, prec)
* PI (prec)
* E (prec)

引数:

: x

計算対象の BigDecimal オブジェクト。

: prec

計算結果の精度。

//emlist[例][ruby]{
require "bigdecimal"
require "bigdecimal/math"

include BigMath

a = Big...

CMath.#exp!(x) -> Float (3074.0)

実数 x の指数関数(Math::E の x 乗)の値を返します。 Math.#exp のエイリアスです。

...実数 x の指数関数(Math::E の x 乗)の値を返します。
Math
.#exp のエイリアスです。

@param x Math::E を x 乗する数を実数で指定します。

@raise TypeError x に数値以外を指定した場合に発生します。

@raise RangeError x に実数以外の数値を...
...指定した場合に発生します。

//emlist[例][ruby]{
require "cmath"
CMath.exp!(0) # => 1
CMath.exp!(0.5) # => Math.sqrt(Math::E)
CMath.exp!(1) # => Math::E
CMath.exp!(2) # => Math::E ** 2
//}

@see Math.#exp...
<< < 1 2 >>