Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I would like to ask part c thanks 2. [20] Estimating the quantity of something without actual numerical computation is an important skill in science
I would like to ask part c thanks
2. [20] Estimating the quantity of something without actual numerical computation is an important skill in science (particularly when your calculator is not available!). We illustrate this by considering the binomial expansion function g(y)=(1+y)n. (a) Compute what is the relative error compared to the correct value if you (i) only take the leading term; (ii) take up to first order term; and (iii) take up to second order term; when you use the function g to calculate the value of 0.95n for both cases of n=2.5 Is this a good way to estimate the value of 0.95n? [5] (b) Repeat part(a)(i) to (iii) for the case 0.9995n if n=2.5. Hopefully this problem will give you some idea of the applicability of the binomial expansion formula. [5] (c) Can you write a short computer code, in MATLAB or other languages, to compute the relative error versus the number of accurate places? For example, in this case, 0.95=1 0.05, or we can say 2 decimal places, 0.995=10.005, or 3 decimal places, etc. You can present your results in a plot: for x-axis, you can plot the decimal places of 2,3,4, for the y-axis, you can plot relative error in log-scale. [Note: Relative error can be defined as (estimation - real_value)/real_value] For this part, please also include the MATLAB script used, together with the [10]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