るりまサーチ

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

別のキーワード

  1. math tan
  2. _builtin tan
  3. cmath tan!
  4. cmath tan
  5. tan cmath

ライブラリ

モジュール

検索結果

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

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

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

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

//emlist[例][ruby]{
require "cmath"
CMath.tan!(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...

CMath.#atan!(x) -> Float (6101.0)

実数 x の逆正接関数の値をラジアンで返します。Math.#atan のエイリ アスです。

実数 x の逆正接関数の値をラジアンで返します。Math.#atan のエイリ
アスです。

@param x 実数。

@return 返される値の範囲は [-π/2, +π/2] です。

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

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

@see Math.#atan