Data analysis labNumPy problems

Problem 47 of 50 · Linear algebra · Hard

Determinant of a 2 by 2

Compute the determinant and print it as an integer.

Preparing NumPy, Pandas, and MatplotlibShift+Enter runs the cell you are in.

For [[4, 7], [2, 6]], the determinant is 4*6 - 7*2. Print that value as an integer. np.linalg.det returns a float, so round it before converting.

1

Your solution

2

Scratch