Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. (10 points) First of all, generate N1000 random variables x(» (ra) (x\" x\")

ID: 3074804 • Letter: 1

Question

1. (10 points) First of all, generate N1000 random variables x(» (ra) (x" x") representing 1000 random coordinates in the unit square S- [0, 1]2. In your report, state clearly how you did it in Python x numpy.randon. rand ( ) # a vector of N two-dimensional coordinates in the range o,112 2. (10 points) Next, construct the set using the h(z) given in (2). Write a function my-h-function that takes a vector of N coordinates x and outputs a vector output of N values of h(x) def my_h_function (x) output = . . . return output Similarly, for the function g(x) given in (2), write a function my_g_function that takes a vector of N coordinates x and outputs a vector output of N values of g(x) def my_g_function(x): output = . . . return output Highlight the region of g(x) where h(x) 2 0 by h my_h function(x) gmy-g_function(x) fig pít.figure ( ) ax fig.add-subplot ( 1 1 1, projection = '3d!) ax, scatter (x[: ,0], x[: ,1], g, c h>#0) Submit your plot

Explanation / Answer

Solution to question no. 1

rand(1000,2), this is the command that will generte 1000 random numbers in [0,1].

Please let me know if I understood your question.

Note: As per Chegg policy, we are liable to answer for only one question at once. Please repost remaining questions for answers.

Thank you for asking...!!!

Please like my answer