るりまサーチ (Ruby 2.5.0)

最速Rubyリファレンスマニュアル検索!
3件ヒット [1-3件を表示] (0.057秒)
トップページ > バージョン:2.5.0[x] > クエリ:matrix[x] > クエリ:d[x] > クエリ:norm[x] > クエリ:magnitude[x]

別のキーワード

  1. bigdecimal/util to_d
  2. float to_d
  3. matrix d
  4. string to_d
  5. rational to_d

ライブラリ

クラス

検索結果

Vector#magnitude -> Float (96661.0)

ベクトルの大きさ(ノルム)を返します。

ベクトルの大きさ(ノルム)を返します。

//emlist[例][ruby]{
require 'matrix'
Vector[3, 4].norm # => 5.0
Vector[Complex(0, 1), 0].norm # => 1.0
//}

@see Vector#normalize

Vector#norm -> Float (87361.0)

ベクトルの大きさ(ノルム)を返します。

ベクトルの大きさ(ノルム)を返します。

//emlist[例][ruby]{
require 'matrix'
Vector[3, 4].norm # => 5.0
Vector[Complex(0, 1), 0].norm # => 1.0
//}

@see Vector#normalize

Vector#r -> Float (42061.0)

ベクトルの大きさ(ノルム)を返します。

ベクトルの大きさ(ノルム)を返します。

//emlist[例][ruby]{
require 'matrix'
Vector[3, 4].norm # => 5.0
Vector[Complex(0, 1), 0].norm # => 1.0
//}

@see Vector#normalize