childprocess

https://github.com/enkessler/childprocess

Ruby

Cross-platform Ruby library for managing child processes.

Matrix#imaginary

Returns the imaginary 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]].imaginary
    =>   2i  i  0
          0  0  0

Source | Google | Stack overflow

Edit

git clone [email protected]:enkessler/childprocess.git

cd childprocess

open

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Matrix-imaginary-for-pr


# Commit to git

git add git commit -m "better docs for Matrix#imaginary"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Matrix-imaginary-for-pr

hub pull-request


# Celebrate!