Correct Answer : Option (B) : loadmat()
from scipy import constants
Correct Answer : Option (C) : constants.pi
Correct Answer : Option (A) : dir(constants)
import numpy as np print np.linspace(1., 4., 6)
Correct Answer : Option (D) : array([ 1. , 1.6, 2.2, 2.8, 3.4, 4. ])
from scipy import linalg import numpy as np a = np.array([[3, 2, 0], [1, -1, 0], [0, 5, 1]]) b = np.array([2, 4, -1]) x = linalg.solve(a, b) print x
Correct Answer : Option (C) : array([ 2., -2., 9.])
Explaination : The above program will generate the following output : array([ 2., -2., 9.])
array([ 2., -2., 9.])
Correct Answer : Option (B) : constants.speed_of_sound
import numpy as np print np.arange(7)
Correct Answer : Option (D) : array([0, 1, 2, 3, 4, 5, 6])
from scipy.special import logsumexp import numpy as np a = np.arange(10) res = logsumexp(a) print res
Correct Answer : Option (A) : 9.45862974443
constants.kilo
Correct Answer : Option (D) : 1000.0
constants.gram
Correct Answer : Option (C) : 0.001