Question: I Help doing these problems using code C++ = Analyze mathematically the following: i.e. identify the sequences involved: (a) Sample the x-axis from Xmin to

I Help doing these problems using code C++ =I Help doing these problems using code C++ =

I Help doing these problems using code C++

= Analyze mathematically the following: i.e. identify the sequences involved: (a) Sample the x-axis from Xmin to Xmax using a uniform step size of step (b) Compute samples of a function y = f(x) (c) Compute samples of the function F(x) | f(x)dx using a Reimann approximation Hint: Consider the sequence: A:AA A...A, of areas. The sequence F:F.F.F2...F, is then a sequence of partial sums and a recursive expression can be written for F. (d) Write the following functions: getxSamples (int *n, float xmin, float xmax, float step getGaussian (int n, 2* Il f = float x[]) float * integrate (int n, int x[l, float []) 2 (e) Write a main() to integrate the standard Gaussian: f - from x = 0 to x = 5 and plot Na fand F vs. x. Note the standard Gaussian has mean 0 and standard deviation 1. float float f e = Use Matlab to read in your data for x, f, and F and make the plot. Gaussian 1 = Lies" and Error Function: F= er(7) 1.2 1 0.8 f/F 0.0 0.4 (f) Write a main() that asks the user for the mean and standard deviation of a Gaussian- distributed random variable X, as well as an x-value and computes the probability that X is between -x and x. Hint: If X-N(0,1), then: P(-x5X5x) = 1 + e**dx = erf(x) ovat If X-N(u, o), then: P(-xSX

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!