Aims:
The aims of this coursework are: โข To introduce computer aided software for numerical computations and in particular familiarizing with the computer aided software, basic commands through the Command window and output through the Graph window.
Module learning outcomes assessed by this coursework: On successful completion of this assignment, students will be expected, at threshold level, to be able to: LO:7 Demonstrate knowledge and ability in simulating engineering and mathematical problems.
โข Task:
1. Using script file in MATLAB/OCTAVE, a) Sketch the graph of ๐ฆ = ๐ฅ3 b) Sketch the graph of ๐ฆ = 2๐๐๐ 3๐ฅ c) Sketch ๐ฆ = ๐๐๐ฅ ๐๐๐ ๐ฆ = ๐๐ฅ on the same graph. [8 Marks]
2. Using script file in MATLAB/OCTAVE to, a) Find the values a, b and c of the upward velocity of rocket approximated by polynomial as ๐ฃ(๐ก) = ๐๐ก2 + ๐๐ฅ + ๐, 5 โค ๐ก โค 12 Where velocity of the rocket is given at three different times on the following table. Time, t Velocity, v (s) (m/s) 5 106.8 8 177.2 12 279.2
b) Compute ๐ผ1, ๐ผ2,๐ผ3 after forming system of equations for the following circuit:
[8 Marks]
3. Using script file in MATLAB/OCTAVE to,
๐
a) Evaluate โซ ๐ฅ ๐๐ฅ
b) Evaluate ๐๐ฆ ๐๐ฅ
c) Evaluate ๐ ๐ฅ๐ฆ๐ง ๐๐ง๐๐ฆ๐๐ฅ
d) Find the volume under the surface ๐ง = ๐ฅ2๐ฆ โ ๐ฅ ๐ฆ2 over the rectangle bounded by the lines ๐ฅ = 4 0 ๐ก๐ ๐ฅ = 150๐ ๐๐๐ ๐ฆ = 0 ๐ก๐ ๐ฆ = 150๐
where p is the average of digit studentโs ID [Example: If 123456 is studentโs ID then ๐ =
= 3.5]
[8 Marks]
4. (i) Using script file MATLAB/OCTAVE, Compute the following: a) ๐ต๐ด b) Determinant of ๐ด๐ c) ๐๐๐๐๐๐ก๐๐๐ (๐ต) Where 3 2 0 0 5 2 1 1 โ3 2 4 7 0 1 0 0 5 8 4 1 ๐ด = 1 3 1 0 0 , ๐ต = 0 0 2 10 2 1 0 3 8 5 0 0 0 4 5 [0 1 0 1 2] [0 0 0 8 1] (ii) Write a program without using function to compute addition of two matrices (size of matrix will be 2x2). [8 Marks]
5. Using script file MATLAB/OCTAVE, find the area of the triangle determined by the points ๐1(2,2,0),๐2(โ1,0,2),๐3(0,4,3)
6. With the use of script file in MATLAB/OCTAVE, a) Find ๐ฆ2๐๐๐๐๐๐ โ 2๐ฆ ๐๐๐๐๐๐๐ + ๐๐๐๐๐๐ โ ๐๐๐๐ where ๐ = ๐๐ โ ๐๐๐ + ๐๐๐ โ ๐๐๐ + ๐
b) Use the initial condition y(Third digit of your SID*)= average of all your SID* to find the particular solution of ๐๐ฆ 2 + 2๐ฅ4 = 0 [8 Marks] โ2๐ฆ+ ๐ฅ ๐๐ฅ * SID: Student Identification Number. [Example: If 123456 is studentโs ID then third digit is 3 and ๐ด๐ฃ๐๐๐๐๐ = = 3.5] 7. Write a program to display your name , ID and average of your ID digits. [2 Marks] Background: Matrices, Vectors, Multivaiable, Multiple integral, differential eqution.
Equipment: Computer.
Procedure: This course work would be done in computer aided software.