method

abs2

v2_1_10 - Show latest stable - Class: Complex
abs2()
public

Returns square of the absolute value.

Complex(-1).abs2         #=> 1
Complex(3.0, -4.0).abs2  #=> 25.0