MATH 314 Quiz 02
2025-01-30. No notes, no electronic devices. Provide code
for full credit, pseudo-code/math/words for partial credit, and a pretty
drawing no more than zero credit.
- Suppose we've initialized a random number generator from Numpy as
import numpy as np rng = np.random.default_rng()
- Generate and store 100 random numbers using
rng
into a variable namedx
. - Calculate the mean of
x
.
- Generate and store 100 random numbers using
- Suppose we have the following code.
a = np.zeros(shape = (3, 4, 5))
- How many elements are in
a
? - How many dimensions are in
a
? - What are the lenghts of each dimension of
a
?
- How many elements are in