## 9.2 Exercise: Calculations and logical comparisons (Homework)

1. Use your r-script and save the code you are using.
2. Calculate the following terms using R.
1. $$((3 + 4 - 5) - 9)^{2}$$
2. $$\frac{-99}{33} + 42$$
3. $$log(1)$$
4. $$(\sqrt{2})^{2}$$
3. Check the following terms:
1. $$5 = 7$$
2. $$5 \times 5 \geq 6 \times 4$$
3. $$\sqrt{3} \neq cos(17)$$
4. In the mean() function it is possible to use and additional argument called trim. Find out what this argument does by checking the help file of the mean() function and write it into your script.