Write the Python-NumPy code that does the calculations in the questions below:
1) Calculate the inverse of matrix A.
2) Calculate the determinant of matrix A.
3) Calculate the transpose of matrix A.
4) Calculate the eigenvalues of matrix A.
5) Calculate the eigenvectors of matrix A.
6) Calculate the trace of matrix A.
7) Calculate the B'A B matrix.
A = [[-2, 0], [1, 1]]
B = [[1, 0], [0, 1]]
Write the Python-NumPy code that does the calculations in the questions below:
1) Calculate the inverse of matrix A.
2) Calculate the determinant of matrix A.
3) Calculate the transpose of matrix A.
4) Calculate the eigenvalues of matrix A.
5) Calculate the eigenvectors of matrix A.
6) Calculate the trace of matrix A.
7) Calculate the B'A B matrix.