QUESTIONS
1. Write a function called a_solve which takes an input parameter a and returns the solution
(as a ID NumPy array) of the system of equations
sa
[ro] 0 1921 1 3 7] [22]
11-0
[1
]
2. Write a function called minor_det which takes input parameters A, i and j and returns the
determinant of the matrix Ai.jobtained from the square matrix A by removing the ith row and jth column of A. The indices i and j start at 0. For example, if the matrix A is
A =
[4 5 77 0 1 9 1 3 7]
then the matrix A0,1 is
A0,1 = 17)
so
9]
3. Write a function called outer_eig which takes input parameters u and v (1D NumPy arrays
of the same length) and returns the eigenvalues (as an ID NumPy array) of the outer product utv (where is a column vector and v is a row vector).
4. Write a function called elementary which takes input parameters A, X, i, j and row (default
value row=True) and performs the following tasks:
Get Free Quote!
384 Experts Online