1.
Write a script that does the following:
-
Asks the user to enter a number
nthat will be used for the size of a square matrix. -
Creates a random n×n matrix A with entries distributed between -1 and 1.
-
Computes the matrix \(B = A^2\text{.}\)
-
Shows a histogram of all entries of B, with 30 buckets.
