# trying to take determinant of matrix using Maple

• Mar 29th 2011, 08:57 PM
Jskid
trying to take determinant of matrix using Maple
In Maple I'm trying to take the determinant of a matrix and nothing happens
Code:

```> A := matrix([[lambda+1, -2, -3], [-2, lambda+1, -2], [-2, -2, lambda+1]]); > detA := det(A);                             det(A) > B := matrix([[2, 1], [-4, 10]]); print(`output redirected...`); # input placeholder > det(B);                             det(B) > ans := det(B);                             det(B)```
• Mar 29th 2011, 09:08 PM
TheEmptySet
Quote:

Originally Posted by Jskid
In Maple I'm trying to take the determinant of a matrix and nothing happens
Code:

```> A := matrix([[lambda+1, -2, -3], [-2, lambda+1, -2], [-2, -2, lambda+1]]); > detA := det(A);                             det(A) > B := matrix([[2, 1], [-4, 10]]); print(`output redirected...`); # input placeholder > det(B);                             det(B) > ans := det(B);                             det(B)```

First you need to load the linear algebra package

with(LinearAlgebra):

The Function Is Determinant(A) not det(A).