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)
![region (0,2]. Label the figure properly by including, title, axis labels, legend.](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f52c20c6521_64866f52c20777bd.jpg)
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
Get step-by-step solutions from verified subject matter experts
