3件ヒット
[1-3件を表示]
(0.155秒)
ライブラリ
- ビルトイン (2)
-
json
/ add / complex (1)
検索結果
-
Complex
# conj -> Complex (27625.0) -
自身の共役複素数を返します。
...自身の共役複素数を返します。
//emlist[例][ruby]{
Complex(1, 2).conj # => (1-2i)
//}... -
Complex
# conjugate -> Complex (27625.0) -
自身の共役複素数を返します。
...自身の共役複素数を返します。
//emlist[例][ruby]{
Complex(1, 2).conj # => (1-2i)
//}... -
Complex
# to _ json(*args) -> String (27325.0) -
自身を JSON 形式の文字列に変換して返します。
...ら JSON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 使用しません。
//emlist[例][ruby]{
require 'json/add/complex'
Complex(2, 3).to_json # => "{\"json_class\":\"Complex\",\"r\":2,\"i\":3}"
//}
@see JSON::Generator::GeneratorMethods::Hash#to_json...