You are on page 1of 1

Taif University Introduction to

Faculty of Engineering Computer Programming


Electrical Engineering Dept. 8031101-3
Fall 2019 Exercise Sheet #1 Answer

1. Write the following mathematical expressions in MATLAB

(a) 42 + 3 4^2 +3

(b) 42+5 4^(2+5)


120
(c) 120/(2+4)
2+4

(d) 53 − 4 5^3 – 4
16−4
(e) (16-4)/(12+1)
12+1

1
(f) 1/4^3
43

3 2
(g) ( ) (3/5)^2
5

(h) 5𝜋 + 4 5*pi+4

2. Write the following mathematical expressions in MATLAB

(a) √16 sqrt(16)


𝜋
(b) 3 cos 3*cos(pi/3)
3

(c) 𝑒3 exp(3)

(d) 5 ln 𝑒 2 5*log(exp(2))

3. Write the following mathematical expressions in MATLAB


𝜋
(a) 32 + 4 cos 3^2+4*cos(pi/3)
3

(b) √1 − 3𝜋 sqrt(1-3*pi)

(c) 3𝜋 + 4 𝑒 2 3*pi+4*exp(2)

1−0.210
(d) (1-0.2^10)/(1-0.2)
1−0.2

You might also like