RosettaCodeData/Task/Determinant-and-permanent/Go/determinant-and-permanent-3.go
2023-07-01 13:44:08 -04:00

17 lines
315 B
Go

package main
import (
"fmt"
"github.com/skelterjohn/go.matrix"
)
func main() {
fmt.Println(matrix.MakeDenseMatrixStacked([][]float64{
{1, 2},
{3, 4}}).Det())
fmt.Println(matrix.MakeDenseMatrixStacked([][]float64{
{2, 9, 4},
{7, 5, 3},
{6, 1, 8}}).Det())
}