Question: 1. Plot the following function F(x) = sin(x2) (3) in the region (0,2]. Label the figure properly by including, title, axis labels, legend. (3 Points)

 1. Plot the following function F(x) = sin(x2) (3) in the
region (0,2]. Label the figure properly by including, title, axis labels, legend.

1. Plot the following function F(x) = sin(x2) (3) in the region (0,2]. Label the figure properly by including, title, axis labels, legend. (3 Points) 2. Find the integral of the function using (a) Matlab built-in function "integral". (2 points) (b) Monte-Carlo integration by estimating the mean of the function. The mean can be estimated by generating N = 10,000 random points in the region (0,+], evaluating the function at these random points, and estimating the mean. (3 points) 4 (c) Compare the results by estimating the relative error. Use format LONG in Matlab to get the estimates to the appropriate decimal place. (2 points) Could you use Matlab please. Thank you

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 Databases Questions!