Ruby | Matrix determinant() function
The determinant () is an inbuilt method in Ruby returns the determinant of the given matrix. Syntax: mat1.det() Parameters: The function does not accepts any parameter. Return Value: It returns the determinant of the given matrix. Example 1: Ruby # Ruby program for determinant() method in Matrix # I