Question: Python Define a function that generates a random vector field on the grid. This function may take as input, for instance, the size of the
Python
Define a function that generates a random vector field on the grid. This function may take as input, for instance, the size of the grid or where it is located in space. How you generate random vectors will be left up to you, but you are encouraged to make use of numpy.random functions to generate your random vectors. This function should return the vector field (as an nd.array, for instance). This function does not perform any graphing
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
