elasticsearch-ruby

https://github.com/elastic/elasticsearch-ruby

Ruby

Ruby integrations for Elasticsearch

Matrix#det

Returns the determinant of the matrix.

Beware that using Float values can yield erroneous results
because of their lack of precision.
Consider using exact types like Rational or BigDecimal instead.

  Matrix[[7,6], [3,9]].determinant
    => 45

Source | Google | Stack overflow

Edit

git clone [email protected]:elastic/elasticsearch-ruby.git

cd elasticsearch-ruby

open

Contribute

# Make a new branch

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


# Commit to git

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


# 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-det-for-pr

hub pull-request


# Celebrate!