What will be the output of following code? SciPy Code 1

8. What will be the output of following code?

from scipy import linalg
import numpy as np

A = np.array([[2,3],[5,6]])
x = linalg.det(A)

print (x)
  1. -2.000000000000001
  2. -3.000000000000001
  3. -4.000000000000001
  4. None of the mentioned above

Answer: B) -3.000000000000001

Explanation:

when we run the code, we will get -3.000000000000001 as an output.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.