957件ヒット
[901-957件を表示]
(0.194秒)
別のキーワード
ライブラリ
- ビルトイン (641)
- bigdecimal (24)
-
bigdecimal
/ math (72) - cmath (84)
- matrix (12)
モジュール
- BigMath (96)
- CMath (78)
- Enumerable (48)
- Kernel (24)
- Math (276)
オブジェクト
- main (12)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - CMath (6)
- E (24)
- Float (12)
- Marshal フォーマット (12)
-
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 4 . 0 (9) - PI (24)
- Ruby用語集 (12)
- acos (12)
- angle (36)
-
angle
_ with (12) - arg (36)
- asin (12)
- atan (24)
- atan2 (12)
- bigdecimal (12)
-
bigdecimal
/ math (12) - bsearch (24)
- cbrt (18)
- cbrt! (6)
- cos (24)
- cos! (6)
- digits (24)
- erf (12)
- erfc (12)
- exp (30)
- exp! (6)
- frexp (12)
- gamma (12)
- hypot (12)
- include (24)
- irb (4)
- ldexp (12)
- lgamma (12)
- log (48)
- log! (12)
- log10 (12)
- log2 (12)
- mathn (4)
-
max
_ by (48) -
module
_ function (36) - phase (36)
- polar (24)
- printf (24)
- round (21)
-
ruby 1
. 6 feature (12) -
ruby 1
. 9 feature (12) - sin (24)
- sin! (6)
- sqrt (38)
- sqrt! (6)
- tan (12)
- tan! (6)
- メソッド呼び出し(super・ブロック付き・yield) (12)
検索結果
先頭5件
-
Complex
. polar(r , theta = 0) -> Complex (12.0) -
絶対値が r、偏角が theta である Complex クラスのオブジェクトを生成します。
...。
@param theta 生成する複素数の偏角。単位はラジアンです。省略した場合は 0 です。
//emlist[例][ruby]{
Complex.polar(2.0) # => (2.0+0.0i)
Complex.polar(2.0, 0) # => (2.0+0.0i)
Complex.polar(2.0, Math::PI) # => (-2.0+2.4492127076447545e-16i)
//}... -
Float
# round(ndigits = 0) -> Integer | Float (12.0) -
自身ともっとも近い整数もしくは実数を返します。
...ェクトが整数に変換できない場
合発生します。
//emlist[例][ruby]{
1.0.round # => 1
1.2.round # => 1
(-1.2).round # => -1
(-1.5).round # => -2
t = Math::PI # => 3.141592653589793
t.round(3) # => 3.142
t.round(0) # => 3
t.round(1) # => 3.1
t... -
Float
# round(ndigits = 0 , half: :up) -> Integer | Float (12.0) -
自身ともっとも近い整数もしくは実数を返します。
...ェクトが整数に変換できない場
合発生します。
//emlist[例][ruby]{
1.0.round # => 1
1.2.round # => 1
(-1.2).round # => -1
(-1.5).round # => -2
t = Math::PI # => 3.141592653589793
t.round(3) # => 3.142
t.round(0) # => 3
t.round(1) # => 3.1
t... -
Vector
# angle _ with(v) -> Float (12.0) -
v と self がなす角度を返します。
...v と self がなす角度を返します。
//emlist[例][ruby]{
require 'matrix'
Vector[1, 0].angle_with(Vector[0, 1]) # => Math::PI/2
//}
@param v このベクトルと self とがなす角度を計算します
@raise ZeroVectorError self もしくは v のどちらかが零ベクトルであ... -
main
. include(*modules) -> self (12.0) -
引数 modules で指定したモジュールを後ろから順番に Object にインクルードします。
...odules Module のインスタンス( Enumerable など)を指定します。
@raise ArgumentError 継承関係が循環してしまうような include を行った場
合に発生します。
//emlist[例:][ruby]{
include Math
hypot(3, 4) # => 5.0
//}
@see Module#include...