1740件ヒット
[1701-1740件を表示]
(0.099秒)
ライブラリ
- ビルトイン (1122)
- bigdecimal (77)
-
bigdecimal
/ jacobian (11) - csv (11)
- mathn (12)
- matrix (121)
-
net
/ ftp (22) -
net
/ http (6) - openssl (55)
- optparse (132)
- psych (17)
- securerandom (7)
- socket (88)
クラス
- BigDecimal (77)
- Bignum (12)
- CSV (11)
- Complex (154)
-
Enumerator
:: ArithmeticSequence (36) - Fixnum (9)
- Float (44)
- Integer (262)
- Matrix (66)
-
Matrix
:: LUPDecomposition (22) -
Net
:: FTP (22) -
Net
:: HTTP (6) - Numeric (481)
- Object (22)
-
OpenSSL
:: ASN1 :: NumericString (22) -
OpenSSL
:: BN (11) - OptionParser (132)
- Rational (26)
- Socket (44)
- Time (47)
- Vector (33)
モジュール
- GC (22)
- Jacobian (11)
- Math (8)
-
OpenSSL
:: ASN1 (22) - Psych (17)
- SecureRandom (7)
-
Socket
:: Constants (44)
キーワード
- % (33)
- * (55)
- ** (15)
- + (11)
- +@ (11)
- -@ (11)
-
/ (76) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - <=> (11)
-
AI
_ NUMERICHOST (22) -
AI
_ NUMERICSERV (22) - Complex (11)
-
NEWS for Ruby 3
. 0 . 0 (4) -
NI
_ NUMERICHOST (22) -
NI
_ NUMERICSERV (22) - NumericString (22)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (11)
- Ruby用語集 (11)
- [] (27)
- abs (11)
- abs2 (11)
- alphanumeric (7)
- angle (22)
- arg (22)
- at (47)
- begin (6)
- ceil (22)
- clone (11)
- coerce (33)
- conj (11)
- conjugate (11)
- denominator (11)
- det (22)
- determinant (22)
- div (22)
- divmod (39)
- downto (22)
- dup (11)
- end (6)
- eql? (11)
- fdiv (28)
- finite? (8)
- first (12)
- floor (33)
- imag (22)
- imaginary (22)
- infinite? (8)
- integer? (11)
- jacobian (11)
- last (12)
- magnitude (11)
- modulo (33)
- negative? (9)
- new (22)
- nonzero? (11)
- numerator (11)
- on (132)
-
open
_ timeout (11) - phase (22)
- polar (22)
- positive? (9)
- pow (22)
- quo (44)
-
read
_ timeout (11) - real (11)
- real? (22)
- rect (22)
- rectangular (22)
- remainder (36)
- round (22)
- rsqrt (4)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 4 feature (11) -
safe
_ load (17) - sqrt (4)
- stat (22)
- step (84)
- table (11)
- times (22)
-
to
_ i (11) - truncate (33)
- upto (22)
-
write
_ timeout (6) - zero? (11)
検索結果
先頭4件
-
BigDecimal
# quo(other) -> BigDecimal (112.0) -
商を計算します。
...商を計算します。
@param other self を割る数を指定します。
詳細は Numeric#quo を参照して下さい。
計算結果の精度についてはlib:bigdecimal#precisionを参照してください。... -
Complex
# real? -> false (112.0) -
常に false を返します。
...常に false を返します。
//emlist[例][ruby]{
(2+3i).real? # => false
(2+0i).real? # => false
//}
@see Numeric#real?... -
Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (90.0)
-
Rubyで使われる記号の意味(正規表現の複雑な記号は除く) ex q num per and or plus minus ast slash hat sq period comma langl rangl eq tilde dollar at under lbrarbra lbra2rbra2 lbra3rbra3 dq colon ac backslash semicolon
...xxx # => 実行結果
慣用的に実行結果を示すために使われるコメントの書き方。
: #! ruby -Ks
shebang。d:spec/rubycmd#shebangを参照。
: # coding: utf-8
マジックコメント。d:spec/m17n#magic_comment を参照。
: "a is #{a}"
d:spec/literal#exp
//emlist{......す。
===[a:per] %
: 10 % 3
各クラスで定義された「%」演算子。整数クラスでは「剰余」を意味するメソッド。Numeric#%メソッドなどを参照。
: "%04b" % 10
Stringクラスの「%」演算子。String#% メソッド。文字列中ではフォーマッ......。
===[a:at] @
: @xxx
インスタンス変数。d:spec/variables#instanceを参照。
: @@xxx
クラス変数。d:spec/variables#classを参照。
: def +@ または def -@
単項演算子 +X や -X を定義するときの表記法。
//emlist{
class Symbol
def +@
self.upcas... -
Complex (42.0)
-
複素数を扱うクラスです。
...Complex、
Complex.rect、Complex.polar、Numeric#to_c、
String#to_c のいずれかを使用します。
//emlist[Complex オブジェクトの作り方][ruby]{
Complex(1) # => (1+0i)
Complex(2, 3) # => (2+3i)
Complex.polar(2, 3) # => (-1.9799849932008908+0.2822400161197344i)
Co......lex('0.3-0.5i') # => (0.3-0.5i)
Complex('2/3+3/4i') # => ((2/3)+(3/4)*i)
Complex('1@2') # => (-0.4161468365471424+0.9092974268256817i)
3.to_c # => (3+0i)
0.3.to_c # => (0.3+0i)
'0.3-0.5i'.to_c # => (0.3-0.5i)
'2/3+3/4i'.to_c # => ((2/3)+(3/4)*i)
'1@2'.to_c......# => (-0.4161468365471424+0.9092974268256817i)
//}
Complex オブジェクトは有理数の形式も実数の形式も扱う事ができます。
//emlist[例][ruby]{
Complex(1, 1) / 2 # => ((1/2)+(1/2)*i)
Complex(1, 1) / 2.0 # => (0.5+0.5i)
//}...