You are on page 1of 1

CHE 208

Computer Programming and Applications


Class Work-3
Time: 45 min
1. Create the following matrices:

1 0 −1 10 13 14
2 4 4 4
𝐴 = [ 2 1 −2] ; 𝐵 = [ ] ; 𝐶 = [ 24 27 29] ; 𝐷 = [ ]
6 8 5 5
1 −3 0 32 34 36

Show that
(i) (AC)-1 = C-1A-1
(ii) (B+D) T = BT + DT
(iii) (AT)-1 = (A-1) T
(iv) AA-1=CC-1=I3
(v) BB-1=DD-1=I2
Where, In refers to an identity matrix of n×n size. Write your code in a ‘script file’ and show
the variables in ‘workspace’.
2. Plot the following functions on the same graph.
(i) cos(x)
(ii) sin(2x)
(iii) sin(4x)-cos(3x)
On a separate graph, plot the following functions
(iv) tan(x)
(v) cot(x)
(vi) tan(3x)-cot(4x)
𝜋
The value of x ranges from 0 to 4𝜋 [take a step size of 180 ]. Properly label the plots.

You might also like