Question
Make sure your input solution can be copy/paste to matlab and is executable. Mark will only be given if the code can run successfully in
Make sure your input solution can be copy/paste to matlab and is executable. Mark will only be given if the code can run successfully in matlab. No partial mark. either full mark or 0 for each part.
request to add comments to each line to specify which part it is for.
1(2). Code to plot the graph above. Semi-circle with radius = 1, and vertical line at x = -0.5 2(6). Code to calculate the shaded area. Do not calculate using math, but try simulation by area ratio. That is, the semi-circle area is ??/2, code to simulate the area ratio between the shaded area and the semi-circle, then use the ratio to calculate the shaded area.
0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 -1 0.9 0.8 0.7 06 05 04 0.3 0.2 0.1 0 0.1 0.2 0.3 04 0.5 06 0.7 0.8 0.9 1
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started