abs2

cmp.abs2 â real
Instance Public methods

Returns square of the absolute value.

Complex(-1).abs2         #=> 1
Complex(3.0, -4.0).abs2  #=> 25.0
doc_ruby_on_rails
2015-04-01 13:34:29
Comments
Leave a Comment

Please login to continue.