Nội dung text Mathematics I Lab Report.pdf
Mechi Multiple Campus (Tribhuvan University) Bhadrapur, Jhapa Lab report of Mathematics-I (CAMT104) Faculty of Humanities and social science Tribhuvan University Kritipur Nepal Submitted by: Name: Abiral Acharya Roll no: 04 Submitted to: Mechi Multiple Campus Department of Computer Science & Application Bhadrapur, Jhapa, Nepal
Page | i ACKNOWLEDGEMENT Even though doing research is not an easy task but easy feeling is experienced after completion of work. I really enjoyed using my knowledge and experience in the lab to accomplish the project work. I would like to express a special thanks of gratitude to our teacher “Shankhar Chaudary” who gave us an opportunity to make report on MATLAB which helped me in doing a lot of research. I am grateful for getting a chance to be a student of Bachelor or Computer Application (BCA). Similarly, I would like to thank all the respondents for providing valuable time and responses. Your useful advice and suggestions really boosted me till the completion of my report. Although, this report has been prepared with utmost care and deep routed interest. Even then I accept respondent and imperfection.
Page | ii Contents Table of Contents 1. INTRODUCTION ..............................................................................................................................1 What is MATLAB?................................................................................................................................1 Features of MATLAB: ..........................................................................................................................1 Uses of MATLAB..................................................................................................................................1 2. Commands in MATLAB........................................................................................................................1 3. Difference between Command Window and M-Files ........................................................................2 4. LAB REPORT ....................................................................................................................................3 4.1 Constructing a row matrix: ...........................................................................................................3 4.2 Constructing a column matrix:......................................................................................................3 4.3 Constructing an Identity Matrix....................................................................................................3 4.4 Constructing a Null Matrix ............................................................................................................4 4.5 Constructing a Square Matrix .......................................................................................................5 4.6 Constructing a rectangular matrix ................................................................................................5 4.7 Sum of matrices: ...........................................................................................................................6 4.8 Product of matrices:......................................................................................................................6 4.9 Determinant of a matrix ...............................................................................................................7 4.10 Transpose of a Matrix: ................................................................................................................7 The transpose operation switches the rows and columns in a matrix. It is represented by a single quote(')................................................................................................................................................7 4.11 Inverse of a Matrix:.....................................................................................................................8 4.12Adjoint of a Matrix:......................................................................................................................8 4.13Complex Number:........................................................................................................................8 Question:.............................................................................................................................................8 If z=12+5i and w=3+2i, then find: ...................................................................................................9 4.14 Verify AA-1=I and A-1 A = I........................................................................................................11 4.15 Plot the tan360*4. ....................................................................................................................12 4.16 Plot the function y=x3 where x€(-5,5). ......................................................................................13 4.17 Plot the function y=x2 -5x+6 where x belongs to (-5,10). ..........................................................13 4.18 Create MATLAB Code for circle x2 + y2 = 25............................................................................14 4.19 Create MATLAB Code for hyperbola x216 − y29 = 1 ............................................................14 4.20 Plot sin180° in MATLAB.............................................................................................................15 4.21Plot cos360° in MATLAB.............................................................................................................15 4.22 Plot the vectors [1 0] and [2 2] with the ‘compass’ function....................................................15
Page | iii 4.23. Show the system of Linear equations having 2 variables........................................................16 4.24 Find the scalar(dot) product of two vectors. ............................................................................17 4.25 Finding the Vector(cross) product. ...........................................................................................17 4.26 Plot a Linear Function. ..............................................................................................................17 ..........................................................................................................................................................17 4.27 Plot a quadratic function. .........................................................................................................18 4.28 Find Scalar and dot triple product of 3 vectors. .......................................................................18 4.29 Find the vector triple product of 3 vectors...............................................................................18 4.30 Find the first 5 odd numbers and calculate its sum..................................................................19 4.31 Find the 7th term of the series “2,5,8,.....”.................................................................................19 4.32 Find the sixth term and sum of the first six terms of the arithmetic sequence .......................20 4.33 Find the 7th term and sum of the first seven terms of the Geometric Sequence. ...................20 4.34 Solve x2-5x+6=0 ........................................................................................................................21 4.35 Solve x3 -7x2 -36=0 ......................................................................................................................21