Matlab Exercise 1

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

EXERCISE 1

Solve the following problems in the MATLAB Command Window.



1. Calculate

(a)
35.7.64 7
3
45 +5
2

(b)
5
4
. 7. 6
2
+
3
7
9
3
652


(c)
2 + 7
3
+
273
2/3
2
+
55
2
3

(d)
2
3
+ 7
3
+
273
2
2
+ 55
3 2


(e)
3
7
log(76)
7
3
+ 546
+ 910
3

(f)
43.
250
4
+ 23
2

(453
3
)


(g)

5
6

7
8

2
+
tan

6
ln8
7

(h)
5
6

7
8
+

8
6

7.
5
2


2. Define the variable x as x = 13.5, then evaluate

(a)
3
+ 5
2
26.7 52 (b)
14
3

3

(c)
2

3


3. Define the variable a, b, c and d as as a = 15.62, b = - 7.08, and d = 0.5(ab - c), then evaluate

(a)
+

+
2


(b)

+
+
20

+
30

+ + +

(c)
443
2
3
+

+


4. Two trigonometric identities are given by

(a) 2 = 2 (b)

2
=

1 +
2


For each part, verify that the identity is correct by calculating each side of the equation,
substituting =
5
24
.

5. Two trigonometric identities are given by

(a)
2 =
2
1
2


(b)

2
=

1
1 +


For each part, verify that the identity is correct by calculating each side of the equation,
substituting =
3
17
.

6. The distance d from a point (x
0
, y
0
) to a line Ax + By + C = 0 is given by:

=

0
+
0
+

2
+
2


Determine the distance of the point (2, -3) from the line 3x + 5y - 6 = 0.

7. Flowers are packed in boxes such that a dozen are placed in each box. Determine how many
boxes are needed to pack 751 flowers, using ceil function.

8. Calculate the radius r of a sphere that has volume of 350 cm
3
. Once r is determined, use it to
calculate the surface area of the sphere.

9. Define the following variables:
table_price = $ 256.95
chair_price = $ 89.75

Then change the display format to bank and:
(a) Evaluate the cost of two tables and eight chairs.
(b) Evaluate the cost of two tables and eight chairs if 10 % services tax is added.
(c) Convert the total cost to Nepali rupees ($1 = Rs 95) and round the total cost.

10. The magnitude M of an earthquake on the Richter scale is given by

=
2
3

0


where, E is the energy released by the earthquake, and E
0
(= 10
4.4
J) is a constant (energy of a
small reference earthquake). Determine how many times more energy is released from an
earthquake that registers 7.2 on the Richter scale than an earthquake that registers 5.3.

11. The two forces P and Q act on a bolt A. Determine their resultant.


=
2
+
2
2


12. A room is maintained at 22
0
C by an air conditioning unit. Determine the total rate of heat
transfer from the person standing in the room if the exposed surface area and the average
outer surface temperature of the person are 1.5 m
2
and 30
0
C, respectively, and the
convection heat transfer coefficient is 10 W/m
2
K. Take surface emissivity as 0.95.

You might also like