method

real

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: Matrix
real() public

Returns the real part of the matrix.

Matrix[[Complex(1,2), Complex(0,1), 0], [1, 2, 3]]
  => 1+2i  i  0
        1  2  3
Matrix[[Complex(1,2), Complex(0,1), 0], [1, 2, 3]].real
  =>    1  0  0
        1  2  3
Show source
Register or log in to add new notes.