1 Arithmetic
Open and edit the script q1.m provided to you to answer the parts of this question.
(a) [1 mark]
Create the following three variables having the specified values:
b1equal to-1b2equal to2b3equal to5
(b) [2 marks]
Create the variable named y whose value is equal to:
\[ y = \frac{1 + \frac{b1}{b2}}{1 + \cfrac{1}{1 + \cfrac{1}{b3}}} \]
You must enter the equation shown above and you must use the variables b1, b2, and b3 in your answer.
(c) [1 mark]
Create the following two variables having the specified values:
Requal to2.5requal to1.25thetaequal to60degrees
(d) [2 marks]
Create the variable named y whose value is equal to:
\[ y = (R + r) \sin(\theta) + r \sin\left(\frac{R + r}{r}\theta\right) \]
You must enter the equation shown above and you must use the variables R, r, and theta in your answer.