Question: please help! this is for python 3.7 Exercise 2 The aim is to fill two vector arrays xv and yv with x and f(x) values,
Exercise 2 The aim is to fill two vector arrays xv and yv with x and f(x) values, respectively, where f(x) = bet16) is the density of the standard normal distribution, that is a normal density with mean u = 0 and standard deviation o = 1. Let the xv values be uniformly spaced in Xv = (-4, 4) with 100 grid points. Write a loop to fill in the values for and yv = f(xv). So at the end you should have a vector xv with the X-values and a vector yv with the function values f(x). Bonus points: Plot y against xv using the plot command
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
