subject
Mathematics, 21.12.2021 20:30 natlovesfood

In the following, the phrase "random value" is to be taken to mean a uniform random floatingpoint number between 0 and 1, to be obtained by an appropriate call to the random number generator (not chosen arbitrarily by hand). Write a SINGLE statement (in each case) to implement each of the following tasks (apart from the initial import and setting up of the random number generator at the very beginning, if needed). Vectorized operation (and broadcasting) must be used; do not use loops or if statements. Please show the six statements along with the corresponding execution results in six consecutive cells (do not change the order of the parts). a. Create a 2-dimensional numpy array X (3 rows and 4 columns) of random values. b. To each column of X, add the square of a vector of three random values (the same vector is added to the individual columns of X; this vector is part of the single statement and does not have its own name). Call the result Z. c. Divide each row of Z by the max element in that row. Call the result P. d. Next, for each element of P, replace it with 0.3 if it is less than 0.5. e. Print True if the index of the column with the highest column-sum in P is the same as the index of the row with the smallest row-sum, False otherwise. f. Print in reverse the array of the column-wise minimum values of P.

ansver
Answers: 1

Another question on Mathematics

question
Mathematics, 22.06.2019 01:00
Match the one-to-one functions with their inverse functions.
Answers: 1
question
Mathematics, 22.06.2019 01:00
Suppose your sat score is 2040. a college with an average sat score for admintted students of which of these would most likely be your best option?
Answers: 1
question
Mathematics, 22.06.2019 03:30
The lengths of two sides of a triangle are 9 and 15. what can be said about the length of the third side? a. it must be greater than or equal to 6 and less than 24. b. it must be greater than or equal to 6 and at most 24. c. it must be greater than 6 and less than 24. d. it must be greater than 6 and at most 24.
Answers: 1
question
Mathematics, 22.06.2019 04:00
The given dot plot represents the average daily temperatures, in degrees fahrenheit, recorded in a town during the first 15 days of september. if the dot plot is converted to a box plot, the first quartile would be drawn at , ( 59,60,61,62) and the third quartile would be drawn at . (61,62,63,64)
Answers: 2
You know the right answer?
In the following, the phrase "random value" is to be taken to mean a uniform random floatingpoint nu...
Questions
question
Mathematics, 11.05.2020 08:57
question
Mathematics, 11.05.2020 08:57
question
Mathematics, 11.05.2020 08:57
question
Mathematics, 11.05.2020 09:57
question
Mathematics, 11.05.2020 09:57
Questions on the website: 13722362