RosettaCodeData/Task/Determinant-and-permanent/SPAD/determinant-and-permanent.spad
2023-07-01 13:44:08 -04:00

16 lines
444 B
Text

(1) -> M:=matrix [[2, 9, 4], [7, 5, 3], [6, 1, 8]]
+2 9 4+
| |
(1) |7 5 3|
| |
+6 1 8+
Type: Matrix(Integer)
(2) -> determinant M
(2) - 360
Type: Integer
(3) -> permanent M
(3) 900
Type: PositiveInteger