るりまサーチ (Ruby 3.2)

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

別のキーワード

  1. _builtin to_c
  2. etc sc_2_c_dev
  3. etc sc_2_c_bind
  4. tracer display_c_call
  5. tracer display_c_call=

ライブラリ

キーワード

検索結果

Math.#acos(x) -> Float (18307.0)

x の逆余弦関数(arccosine)の値をラジアンで返します。

...定した場合に発生します。

@raise Math::DomainError x に範囲外の実数を指定した場合に発生します。

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

//emlist[例][ruby]{
Math
.acos(0) == Math::PI/2 # => true
//}

@see Math.#cos...

Math.#acosh(x) -> Float (18307.0)

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

...>= 1 の範囲の実数

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

@raise Math::DomainError x に範囲外の実数を指定した場合に発生します。

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

@see Math.#cosh...

Math.#cbrt(x) -> Float (18307.0)

x の立方根(cubic root)を返します。

...す。

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

//emlist[例][ruby]{
-9.upto(9) {|x|
p [x, Math.cbrt(x), Math.cbrt(x)**3]
}
# => [-9, -2.0800838230519, -9.0]
# [-8, -2.0, -8.0]
# [-7, -1.91293118277239, -7.0]
# [-6, -1.81712059283214, -6.0]
#...
....0, -1.0]
# [0, 0.0, 0.0]
# [1, 1.0, 1.0]
# [2, 1.25992104989487, 2.0]
# [3, 1.44224957030741, 3.0]
# [4, 1.5874010519682, 4.0]
# [5, 1.7099759466767, 5.0]
# [6, 1.81712059283214, 6.0]
# [7, 1.91293118277239, 7.0]
# [8, 2.0, 8.0]
# [9, 2.0800838230519, 9.0]
//}

@see Math.#sqrt...

Math.#cos(x) -> Float (18307.0)

x の余弦関数(cosine)の値を返します。

...(ラジアンで与えます)

@return [-1, 1] の実数

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

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

//emlist[例][ruby]{
Math
.cos(Math::PI) # => -1.0
//}

@see Math.#acos...

Math.#cosh(x) -> Float (18307.0)

x の双曲線余弦関数(hyperbolic cosine)の値を返します。

...(hyperbolic cosine)の値を返します。

=== 定義

cosh(x) = (exp(x) + exp(-x)) / 2

@param x 実数

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

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

@see Math.#acosh...

絞り込み条件を変える

Math.#erfc(x) -> Float (18307.0)

x の相補誤差関数(complementary error function)の値を返します。

...lementary error function)の値を返します。

@param x 実数

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

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

//emlist[例][ruby]{
Math
.erfc(0) # => 1.0
//}

@see Math.#erf...