Skip to main content

Matrix algebra

             Matrices provide a means of storing large quantities of information in such a way that

each piece can be easily identified and manipulated. They permit the solution of large

systems of linear equations to be carried out in a logical and formal way so that computer

implementation follows naturally. Applications of matrices extend over many areas of

engineering including electrical network analysis and robotics.

1-BASIC DEFINITIONS

             Matrix is a rectangular pattern or array of numbers.

    For example: 

              are all matrices. Note that we usually use a capital letter to denote a matrix, and enclose

the array of numbers in brackets. To describe the size of a matrix we quote its number

of rows and columns in that order so, for example, an r × s matrix has r rows and s

columns. We say the matrix has order r × s.

              An r × s matrix has r rows and s columns.

Example: Describe the sizes of the matrices A, B andC at the start of this section, and give examples

of matrices of order 3 × 1, 3 × 2 and 4 × 2.

Solution:

                where ai j represents the number or element in the ith row and jth column. A matrix with

a single column can also be regarded as a column vector.The operations of addition, subtraction and 

multiplication are defined upon matricesand these are explained.

2- ADDITION, SUBTRACTION AND MULTIPLICATION
    2.1- Matrix addition and subtraction

        Two matrices can be added (or subtracted) if they have the same shape and size, that is the

same order. Their sum (or difference) is found by adding (or subtracting) corresponding

elements as the following example shows.

Example: 

Solution:

        Now a + e is exactly the same as e + a because addition of numbers is commutative.

        The same observation can be made of b + f , c + g and d + h. Hence C + D = D +C.

        The addition of these matrices is therefore commutative. This may seem an obvious statement but 

we shall shortly meet matrix multiplication which is not commutative, so in general commutativity 

should not be simply assumed.

                     Matrix addition is commutative, that is  A+B = B+A

              Matrix addition is associative, that is A+(B+C) = (A+B)+C

    2.2- Scalar multiplication

           Given any matrix A, we can multiply it by a number, that is a scalar, to form a new matrix of the same order as A. This multiplication is performed by multiplying every element of A by the number.

Example: 

Solution:

In general we have


    2.3- Matrix multiplication

            Matrix multiplication is defined in a special way which at first seems strange but is in fact very 

useful. If A is a p× q matrix and B is an r × s matrix we can form the productAB only if q = r; that is,  

only if the number of columns in A is the same as the numberof rows in B. The product is then a p × s 

matrix C, that is        C = AB         

                       where A = p×q

                                  B = q×s

                                  C = p×s

Example: 

Solution:

Comments

  1. digitalartrevolution adalah agen Judi Slot Online Uang Asli yang paling terpercaya juga sebagai penyedia jasa pembuatan akun judi Game Slot Online yang paling terpercaya di Indonesia.


    ReplyDelete
  2. Mari bergabung bersama kami di [https://togelcolok.com/ Bandar Togel Online] mainkan permainan dan menangkan uang tunai yang dibayarkan 100% langsung ke anda serta dapatkan hadiah - hadiah menarik lainnya hanya disini. Pendaftaran nya pun sangat mudah. Untuk informasi lebih lanjut segera kunjungi website nya sekarang juga.

    ReplyDelete

Post a Comment

Popular posts from this blog

Lab 2 , 3 , 4 Method math in java

Class Teedcalculator: /*  * To change this license header, choose License Headers in Project Properties.  * To change this template file, choose Tools | Templates  * and open the template in the editor.  */ package teedcalculator; import static teedcalculator.Oparetor.tand;// to access all static Tand of a class import static teedcalculator.Oparetor.tan;// to access all static Tan of a class import static teedcalculator.Oparetor.cost;// to access all static Cost of a class import static teedcalculator.Oparetor.cosd;// to access all static Cosd of a class import static teedcalculator.Oparetor.degree2;// to access all static Degree of a class import static teedcalculator.Oparetor.divide;// to access all static divide of a class import static teedcalculator.Oparetor.minus;// to access all static minus of a class import static teedcalculator.Oparetor.modulo;// to access all static modulo of a class import static teedcalculator.Oparetor.multiply;// to acce...

Barometric pressure sensor with Arduino

Hardware Required - Arduino or Genuino board - SCP1000 Pressure Sensor Breakout Board - hook-up wires  Procedure  Follow the circuit diagram and make the connections as shown in the image given below. Arduino Code /******* All the resources for this project:   https://lihuo.blogspot.com *******/ The code below starts out by setting the SCP1000 's configuration registers in the setup() . In the main loop, it sets the sensor to read in high resolution mode, meaning that it will return a 19-bit value, for the pressure reading, and 16 bits for the temperature. The actual reading in degrees Celsius is the 16-bit result divided by 20.   Then it reads the temperature's two bytes. Once it's got the temperature, it reads the pressure in two parts. First it reads the highest three bits, then the lower 16 bits. It combines these two into one single long integer by bit shifting the high bits then using a bitwise OR to combine them...

Software Arduino IDE

Arduino is an open source computer hardware and software company, project, and user community that designs and manufactures single-board microcontrollers and microcontroller kits for building digital devices and interactive objects that can sense and control objects in the physical world. A program for Arduino hardware may be written in any programming language with compilers that produce binary machine code for the target processor. Atmel provides a development environment for their 8-bit AVR and 32-bit ARM Cortex-M based microcontrollers: AVR Studio (older) and Atmel Studio (newer). IDE The Arduino integrated development environment (IDE) is a cross-platform application (for Windows, macOS, Linux) that is written in the programming language Java. It originated from the IDE for the languages Processing and Wiring . It includes a code editor with features such as text cutting and pasting, searching and replacing text, automatic indenting, brace matching, and syntax highl...