You are on page 1of 2

Introduction to Taif University

Computer Programming Faculty of Engineering


803213-3 Electrical Engineering Dept.
Exercise Sheet #1 Fall 2017

1. Write the following mathematical expressions in MATLAB

(a) 4 2 +3 4^2 +3

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


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

(d) 53−4 5^3 – 4


16−4
(e) 12+1
(16-4)/(12+1)

1
(f) 1/4^3
43
2
3
(g) ()
5
(3/5)^2

(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) e3 exp(3)

(d) 5 ln e 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 e2 3*pi+4*exp(2)

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

You might also like