るりまサーチ (Ruby 2.1.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.091秒)
トップページ > クエリ:l[x] > バージョン:2.1.0[x] > クエリ:**[x] > モジュール:CMath[x]

別のキーワード

  1. kernel $-l
  2. matrix l
  3. _builtin $-l
  4. lupdecomposition l
  5. l

ライブラリ

検索結果

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

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

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

@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...