Ruby | Matrix cofactor_expansion() function
The cofactor_expansion() is an inbuilt method in Ruby returns the cofactor_expansion of the given matrix along a given row or column. In other words, it returns the Laplace expansion. Syntax: mat1.cofactor_expansion(row: num or col:num)Parameters: The function accepts one mandatory parameter row or