るりまサーチ

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

別のキーワード

  1. math log
  2. math sqrt
  3. _builtin math
  4. bigdecimal/math atan
  5. bigdecimal/math e

ライブラリ

モジュール

検索結果

CMath.#tan!(x) -> Float (21147.0)

実数 x の正接関数の値を返します。Math.#tan のエイリアス です。

...Math.#tan のエイリアス
です。

@param x 実数(ラジアンで与えます)

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

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

//emlist[例][ruby]{
require "cmath"
CMath.t...
...an!(0 * Math::PI / 4) # => 0.0
CMath.tan!(1 * Math::PI / 4) # => 1.0
CMath.tan!(4 * Math::PI / 4) # => 0.0
//}

@see Math.#tan...