種類
ライブラリ
- ビルトイン (762)
-
cgi
/ html (576) - cmath (120)
-
json
/ add / complex (24) - matrix (24)
-
rdoc
/ parser / ruby (12) -
ripper
/ lexer (60) -
rubygems
/ exceptions (24) - socket (24)
クラス
モジュール
-
CGI
:: HtmlExtension (564) - CMath (120)
- Kernel (24)
-
Socket
:: Constants (12)
キーワード
- * (12)
- ** (12)
- + (12)
- - (12)
- -@ (12)
-
/ (12) - < (12)
- <= (12)
- <=> (6)
- == (12)
- > (12)
- >= (12)
- Complex (36)
- DependencyRemovalException (12)
- EndOfYAMLException (12)
- HtmlExtension (12)
- I (12)
-
IFF
_ SIMPLEX (24) - Lexer (12)
- RubyLex (12)
- SignalException (12)
- a (24)
- abs (12)
- abs2 (12)
- acos (6)
- acosh (6)
- angle (12)
- arg (12)
- asin (6)
- asinh (6)
- atan (6)
- atan2 (6)
- atanh (6)
- base (12)
- between? (12)
- blockquote (24)
- caption (24)
- cbrt (6)
- checkbox (24)
-
checkbox
_ group (24) - clamp (12)
- coerce (12)
- conj (12)
- conjugate (12)
- cos (6)
- cosh (6)
- denominator (12)
- exp (6)
- fdiv (30)
-
file
_ field (24) - finite? (9)
- form (48)
-
here
_ document (12) -
heredoc
_ identifier (12) -
heredoc
_ restore (12) - hidden (24)
- html (24)
- i (12)
- imag (12)
- imaginary (12)
- img (24)
- infinite? (9)
- inspect (12)
-
irb
/ ruby-lex (12) -
irb
/ slex (6) -
json
/ add / complex (12) -
json
_ create (12) -
lex
_ get _ str (12) -
lex
_ getline (12) - log (12)
- log10 (6)
- log2 (6)
- magnitude (12)
-
marshal
_ dump (12) -
multipart
_ form (48) - new (36)
- numerator (12)
- parse (12)
-
parse
_ string (12) -
password
_ field (24) - phase (12)
- polar (24)
- quo (24)
-
radio
_ group (24) - rationalize (24)
-
rb
_ reserved _ word (12) - real (12)
- real? (12)
- rect (24)
- rectangular (24)
- reset (24)
-
ripper
/ lexer (12) -
scrolling
_ list (24) - signm (12)
- signo (12)
- sin (6)
- sinh (6)
- sqrt (6)
- submit (24)
- tan (6)
- tanh (6)
-
text
_ field (24) - textarea (24)
-
to
_ c (48) -
to
_ f (12) -
to
_ i (12) -
to
_ json (12) -
to
_ r (12) -
to
_ s (12) - tokenize (12)
- tr (12)
- trace (12)
- yylex (12)
- 字句構造 (12)
検索結果
先頭5件
-
irb
/ ruby-lex (6000.0) -
Ruby のソースコードを字句解析するためのサブライブラリです。
Ruby のソースコードを字句解析するためのサブライブラリです。
このライブラリで定義されているメソッドはユーザが直接使用するものではありません。 -
json
/ add / complex (6000.0) -
Complex に JSON 形式の文字列に変換するメソッドや JSON 形式の文字列から Ruby のオブジェクトに変換するメソッドを定義します。
...Complex に JSON 形式の文字列に変換するメソッドや JSON 形式の文字列から Ruby のオブジェクトに変換するメソッドを定義します。... -
ripper
/ lexer (6000.0) -
Ruby プログラムをトークンのリストとして処理するためのライブラリです。
Ruby プログラムをトークンのリストとして処理するためのライブラリです。 -
Complex
# coerce(other) -> [Complex , Complex] (3200.0) -
other を Complex に変換して [変換後の other, self] の配列を返します。
...other を Complex に変換して [変換後の other, self] の配列を返します。
@raise TypeError 変換できないオブジェクトを指定した場合に発生します。
//emlist[例][ruby]{
Complex(1).coerce(2) # => [(2+0i), (1+0i)]
//}... -
Ripper
:: Lexer # parse -> [[Integer , Integer] , Symbol , String , Ripper :: Lexer :: State] (3116.0) -
自身の持つ Ruby プログラムをトークンに分割し、そのリストを返します。た だし Ripper::Lexer#lex と違い、結果をソートしません。
...自身の持つ Ruby プログラムをトークンに分割し、そのリストを返します。た
だし Ripper::Lexer#lex と違い、結果をソートしません。
ライブラリ内部で使用します。... -
Complex
# *(other) -> Complex (3100.0) -
積を計算します。
...積を計算します。
@param other 自身に掛ける数
//emlist[例][ruby]{
Complex(1, 2) * 2 # => (2+4i)
Complex(1, 2) * Complex(2, 3) # => (-4+7i)
Complex(1, 2) * Rational(1, 2) # => ((1/2)+(1/1)*i)
//}... -
Complex
# **(other) -> Complex (3100.0) -
冪(べき)乗を計算します。
...冪(べき)乗を計算します。
@param other 自身を other 乗する数
//emlist[例][ruby]{
Complex('i') ** 2 # => (-1+0i)
//}... -
Complex
# +(other) -> Complex (3100.0) -
和を計算します。
...和を計算します。
@param other 自身に足す数
//emlist[例][ruby]{
Complex(1, 2) + Complex(2, 3) # => (3+5i)
//}... -
Complex
# -(other) -> Complex (3100.0) -
差を計算します。
...差を計算します。
@param other 自身から引く数
//emlist[例][ruby]{
Complex(1, 2) - Complex(2, 3) # => (-1-1i)
//}...