SlideShare a Scribd company logo
1 of 27
Yaşar University  Linear Algebra Calculator Yusuf Yasin KumbulÖzlem Ece Çobanoğlu
2 5 Conclusion 3 f 4 S   OUTLINE 1 Introduction Matrix Operations Algorithms of the Program Software Usability
MATRIX ADDITION The sum A+B of two m-by-n matrices A and B is calculated like: (A + B)i,j = Ai,j + Bi,j, where  1 ≤ i ≤ m and 1 ≤ j ≤ n.
MATRIX SUBTRACTION The subtraction ofA-B of two m-by-n matrices A and B is calculated like:  (A-B)i,j = Ai,j-Bi,j, where  1 ≤ i ≤ m and 1 ≤ j ≤ n.
MATRIX MULTIPLICATION Multiplication of A and B can calculated onlyif the number of columns of A equals the number of rows of B. Multiply therows of A by the columns of B.
SCALAR MULTIPLICATION The scalar multiplication cA of a matrix A and a number c is given by multiplying every entry of A by c: (cA)i,j = c · Ai,j.
TRACE OF A MATRIX The trace of an n-by-n square matrix A is defined to be the sum of the elements on the main diagonal of A.     tr(T)= -2 + 1 -1 = -2
TRANSPOSE OF A MATRIX The transpose of an m-by-n matrix A is the n-by-m matrix AT (also denoted Atr or tA) formed by turning rows into columns and vice versa: (AT)i,j = Aj,i.
HISTORY OF JAVA JAVA was developed by James Gosling and his team at Sun Computers in the early 1990s.  Acronym for the names of the team members: James Gosling, Arthur Van Hoff, and Andy Bechtolsheim Inspired by a coffee bean
     JAVA FEATURES Platform Independent Simple Object Oriented Portable Dynamic Secure Multithreaded
Algorithms of Addition If(ARowSize==BRowSize && AColumnSize==BColumnSize){ for(int i =0; i<ARowSize; i++){             for(int j =0; j<AColumnSize; j++){                 Array[i][j]=A[i][j]+B[i][j];             }       } }
Algorithm of Subtraction If(ARowSize==BRowSize && AColumnSize==BColumnSize){ for(int i =0; i<ARowSize; i++){             for(int j =0; j<AColumnSize; j++){                 Array[i][j]=A[i][j]-B[i][j];             }         }   }
Algorithm of Multiplication If(AColumnSize==BRowSize) for (int i=0; i < ARowSize; i++){             for (int j=0; j < BColumnSize; j++){                 for (int p=0; p < AColumnSize; p++){                     Array[i][j] += A[i][p]*B[p][j];                 }             }         }
Algorithm of Scaler Multiplication for(int i =0; i<ARowSize; i++){             for(int j =0; j<AColumnSize; j++){                 Array[i][j]=k*(A[i][j]);             }         } (k is a constant)
Algorithm of Trace if(AColumnSize==ARowSize){  for(int i =0; i<AColumnSize; i++){                 sum+=A[i][i];             } }
Algorithm of Transpose for(int i =0; i<ARowSize; i++){         for(int j=0; j<AColumnSize; j++)                 Array[j][i]=A[i][j];             }
Software Usability Make a different approach for the program Every user can easily use Serious debugging and test process Eliminate all possible problems that user could face
Items on the Menu Bar About:Givesinformation about the program Languages: Provides selection between Turkish and English languages Separator Setting: Selects the desired separator  for the numbers in the matrix Log: All process during the calculations done by the user Help: Gives all the details to use the program appropriately
Items on the Tool Bar Multiplication: Gives three choices to user, (Multiplication, Scaler Multiplication, Power) Addition: Adds any size of matrices Subtraction: Subtracts any size of matrices Trace: Gives the trace of any square matrix Transpose: Takes tranpose of any matrix Inverse: Takes inverse of any matrix Determinant: Takes determinant of any matrix
Logo of Yasar Universty Logo of Yasar University connects the user the main page of Yasar University website.
Enter the input of the matrices to Matrix A and Matrix B. Clear: Erases the number in the Text Area Random:         1) Assigns the number of the matrices at  given row and column size,         2) Creates identity matrix at given size        3) Creates zero matrix at given row and column size
B to A: copies all data in the Matrix B to Matrix A A to B: copies all data in the Matrix A to Matrix B Output to A: copies all data in the Output Matrix to Matrix A Output to B: copies all data in the Output Matrix to Matrix B
Keep  Output: Saves at most the 5 output in the memory Write to File: Writes all the outputs calculated by user to a text file Exit: Finishes the programme
       DEBUGGING Some unexpected errors occurs because of usage. A good software guide the user to find the right way to enter valid input In the design of the programme, the label at the bottom of the frame gives the rules of specific operations.
    DEBUGGING The programme gives an error massage when the user enters invalid matrix sizes for operations such as “The number of columns in A is not equal to number of rows in B!” If the user enter missing elements to a row or column. For instance, for a size of 3 x 3, the user enters 2 numbers for a row, it warns the user to see the mistake!
CONCLUSION Consider carefully and deeply about all the unexpected mistakes that can be occur while running the program and always find an alternative way to deal with the problems!
Thank You! http://www.yasar.edu.tr Özlem Ece Çobanoğlu Yusuf Yasin Kumbul

More Related Content

What's hot

Armstrong calculator
Armstrong calculatorArmstrong calculator
Armstrong calculatorJayantBhatt6
 
Fast coputation of Phi(x) inverse
Fast coputation of Phi(x) inverseFast coputation of Phi(x) inverse
Fast coputation of Phi(x) inverseJohn Cook
 
Md university cmis 102 week 3 hands
Md university cmis 102 week 3 handsMd university cmis 102 week 3 hands
Md university cmis 102 week 3 handseyavagal
 
Half adder and full adder
Half adder and full adderHalf adder and full adder
Half adder and full adderSanjuktaBanik
 
Bsc math previous exam quetions
Bsc math previous exam quetionsBsc math previous exam quetions
Bsc math previous exam quetionsmshoaib15
 
Exercise6 ch2
Exercise6 ch2Exercise6 ch2
Exercise6 ch2IIUM
 
Software engineering
Software engineeringSoftware engineering
Software engineeringMd Din Islam
 
Carry save addition
Carry save additionCarry save addition
Carry save additionMICKYJINDAL
 
Numerical methods and programming
Numerical methods and programmingNumerical methods and programming
Numerical methods and programmingVaibhav Patil
 
Write a c program to count total number of space
Write a c program to count total number of spaceWrite a c program to count total number of space
Write a c program to count total number of spaceREZAUL KARIM REFATH
 
Digital logic circuit
Digital logic circuit Digital logic circuit
Digital logic circuit Prabhu R
 
20BCE1734_Mridul_CSE2005_Lab-3.docx
20BCE1734_Mridul_CSE2005_Lab-3.docx20BCE1734_Mridul_CSE2005_Lab-3.docx
20BCE1734_Mridul_CSE2005_Lab-3.docxMridul Jadon
 

What's hot (17)

Armstrong calculator
Armstrong calculatorArmstrong calculator
Armstrong calculator
 
Fast coputation of Phi(x) inverse
Fast coputation of Phi(x) inverseFast coputation of Phi(x) inverse
Fast coputation of Phi(x) inverse
 
Md university cmis 102 week 3 hands
Md university cmis 102 week 3 handsMd university cmis 102 week 3 hands
Md university cmis 102 week 3 hands
 
Half adder and full adder
Half adder and full adderHalf adder and full adder
Half adder and full adder
 
Bsc math previous exam quetions
Bsc math previous exam quetionsBsc math previous exam quetions
Bsc math previous exam quetions
 
Adder Presentation
Adder PresentationAdder Presentation
Adder Presentation
 
ECE469 Project1
ECE469 Project1ECE469 Project1
ECE469 Project1
 
Exercise6 ch2
Exercise6 ch2Exercise6 ch2
Exercise6 ch2
 
Labreportofai
LabreportofaiLabreportofai
Labreportofai
 
Software engineering
Software engineeringSoftware engineering
Software engineering
 
Carry save addition
Carry save additionCarry save addition
Carry save addition
 
Numerical methods and programming
Numerical methods and programmingNumerical methods and programming
Numerical methods and programming
 
Write a c program to count total number of space
Write a c program to count total number of spaceWrite a c program to count total number of space
Write a c program to count total number of space
 
Digital logic circuit
Digital logic circuit Digital logic circuit
Digital logic circuit
 
Mmt 001
Mmt 001Mmt 001
Mmt 001
 
ICP - Lecture 6
ICP - Lecture 6ICP - Lecture 6
ICP - Lecture 6
 
20BCE1734_Mridul_CSE2005_Lab-3.docx
20BCE1734_Mridul_CSE2005_Lab-3.docx20BCE1734_Mridul_CSE2005_Lab-3.docx
20BCE1734_Mridul_CSE2005_Lab-3.docx
 

Similar to Yasar University Linear Algebra Calculator

Data Structure & Algorithms - Matrix Multiplication
Data Structure & Algorithms - Matrix MultiplicationData Structure & Algorithms - Matrix Multiplication
Data Structure & Algorithms - Matrix Multiplicationbabuk110
 
Python programming workshop session 3
Python programming workshop session 3Python programming workshop session 3
Python programming workshop session 3Abdul Haseeb
 
Introduction to programming c and data structures
Introduction to programming c and data structuresIntroduction to programming c and data structures
Introduction to programming c and data structuresPradipta Mishra
 
Introduction to programming c and data-structures
Introduction to programming c and data-structures Introduction to programming c and data-structures
Introduction to programming c and data-structures Pradipta Mishra
 
Ada lab manual
Ada lab manualAda lab manual
Ada lab manualaman713418
 
Dam31303 dti2143 lab sheet 7
Dam31303 dti2143 lab sheet 7Dam31303 dti2143 lab sheet 7
Dam31303 dti2143 lab sheet 7alish sha
 
ExamName___________________________________MULTIPLE CH.docx
ExamName___________________________________MULTIPLE CH.docxExamName___________________________________MULTIPLE CH.docx
ExamName___________________________________MULTIPLE CH.docxgitagrimston
 
09 a1ec01 c programming and data structures
09 a1ec01 c programming and data structures09 a1ec01 c programming and data structures
09 a1ec01 c programming and data structuresjntuworld
 
Basic_analysis.ppt
Basic_analysis.pptBasic_analysis.ppt
Basic_analysis.pptSoumyaJ3
 
Lab manual data structure (cs305 rgpv) (usefulsearch.org) (useful search)
Lab manual data structure (cs305 rgpv) (usefulsearch.org)  (useful search)Lab manual data structure (cs305 rgpv) (usefulsearch.org)  (useful search)
Lab manual data structure (cs305 rgpv) (usefulsearch.org) (useful search)Make Mannan
 
Code quailty metrics demystified
Code quailty metrics demystifiedCode quailty metrics demystified
Code quailty metrics demystifiedJeroen Resoort
 
Java parallel programming made simple
Java parallel programming made simpleJava parallel programming made simple
Java parallel programming made simpleAteji Px
 

Similar to Yasar University Linear Algebra Calculator (20)

Data Structure & Algorithms - Matrix Multiplication
Data Structure & Algorithms - Matrix MultiplicationData Structure & Algorithms - Matrix Multiplication
Data Structure & Algorithms - Matrix Multiplication
 
Python programming workshop session 3
Python programming workshop session 3Python programming workshop session 3
Python programming workshop session 3
 
Introduction to programming c and data structures
Introduction to programming c and data structuresIntroduction to programming c and data structures
Introduction to programming c and data structures
 
Introduction to programming c and data-structures
Introduction to programming c and data-structures Introduction to programming c and data-structures
Introduction to programming c and data-structures
 
Ada lab manual
Ada lab manualAda lab manual
Ada lab manual
 
Dam31303 dti2143 lab sheet 7
Dam31303 dti2143 lab sheet 7Dam31303 dti2143 lab sheet 7
Dam31303 dti2143 lab sheet 7
 
chapter1.ppt
chapter1.pptchapter1.ppt
chapter1.ppt
 
chapter1.ppt
chapter1.pptchapter1.ppt
chapter1.ppt
 
ExamName___________________________________MULTIPLE CH.docx
ExamName___________________________________MULTIPLE CH.docxExamName___________________________________MULTIPLE CH.docx
ExamName___________________________________MULTIPLE CH.docx
 
C program
C programC program
C program
 
09 a1ec01 c programming and data structures
09 a1ec01 c programming and data structures09 a1ec01 c programming and data structures
09 a1ec01 c programming and data structures
 
LMmanual.pdf
LMmanual.pdfLMmanual.pdf
LMmanual.pdf
 
R Programming Intro
R Programming IntroR Programming Intro
R Programming Intro
 
chapter 1
chapter 1chapter 1
chapter 1
 
Matlab Basic Tutorial
Matlab Basic TutorialMatlab Basic Tutorial
Matlab Basic Tutorial
 
APSEC2020 Keynote
APSEC2020 KeynoteAPSEC2020 Keynote
APSEC2020 Keynote
 
Basic_analysis.ppt
Basic_analysis.pptBasic_analysis.ppt
Basic_analysis.ppt
 
Lab manual data structure (cs305 rgpv) (usefulsearch.org) (useful search)
Lab manual data structure (cs305 rgpv) (usefulsearch.org)  (useful search)Lab manual data structure (cs305 rgpv) (usefulsearch.org)  (useful search)
Lab manual data structure (cs305 rgpv) (usefulsearch.org) (useful search)
 
Code quailty metrics demystified
Code quailty metrics demystifiedCode quailty metrics demystified
Code quailty metrics demystified
 
Java parallel programming made simple
Java parallel programming made simpleJava parallel programming made simple
Java parallel programming made simple
 

Recently uploaded

AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 

Recently uploaded (20)

AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 

Yasar University Linear Algebra Calculator

  • 1. Yaşar University Linear Algebra Calculator Yusuf Yasin KumbulÖzlem Ece Çobanoğlu
  • 2. 2 5 Conclusion 3 f 4 S OUTLINE 1 Introduction Matrix Operations Algorithms of the Program Software Usability
  • 3. MATRIX ADDITION The sum A+B of two m-by-n matrices A and B is calculated like: (A + B)i,j = Ai,j + Bi,j, where 1 ≤ i ≤ m and 1 ≤ j ≤ n.
  • 4. MATRIX SUBTRACTION The subtraction ofA-B of two m-by-n matrices A and B is calculated like: (A-B)i,j = Ai,j-Bi,j, where 1 ≤ i ≤ m and 1 ≤ j ≤ n.
  • 5. MATRIX MULTIPLICATION Multiplication of A and B can calculated onlyif the number of columns of A equals the number of rows of B. Multiply therows of A by the columns of B.
  • 6. SCALAR MULTIPLICATION The scalar multiplication cA of a matrix A and a number c is given by multiplying every entry of A by c: (cA)i,j = c · Ai,j.
  • 7. TRACE OF A MATRIX The trace of an n-by-n square matrix A is defined to be the sum of the elements on the main diagonal of A. tr(T)= -2 + 1 -1 = -2
  • 8. TRANSPOSE OF A MATRIX The transpose of an m-by-n matrix A is the n-by-m matrix AT (also denoted Atr or tA) formed by turning rows into columns and vice versa: (AT)i,j = Aj,i.
  • 9. HISTORY OF JAVA JAVA was developed by James Gosling and his team at Sun Computers in the early 1990s. Acronym for the names of the team members: James Gosling, Arthur Van Hoff, and Andy Bechtolsheim Inspired by a coffee bean
  • 10. JAVA FEATURES Platform Independent Simple Object Oriented Portable Dynamic Secure Multithreaded
  • 11. Algorithms of Addition If(ARowSize==BRowSize && AColumnSize==BColumnSize){ for(int i =0; i<ARowSize; i++){ for(int j =0; j<AColumnSize; j++){ Array[i][j]=A[i][j]+B[i][j]; } } }
  • 12. Algorithm of Subtraction If(ARowSize==BRowSize && AColumnSize==BColumnSize){ for(int i =0; i<ARowSize; i++){ for(int j =0; j<AColumnSize; j++){ Array[i][j]=A[i][j]-B[i][j]; } } }
  • 13. Algorithm of Multiplication If(AColumnSize==BRowSize) for (int i=0; i < ARowSize; i++){ for (int j=0; j < BColumnSize; j++){ for (int p=0; p < AColumnSize; p++){ Array[i][j] += A[i][p]*B[p][j]; } } }
  • 14. Algorithm of Scaler Multiplication for(int i =0; i<ARowSize; i++){ for(int j =0; j<AColumnSize; j++){ Array[i][j]=k*(A[i][j]); } } (k is a constant)
  • 15. Algorithm of Trace if(AColumnSize==ARowSize){ for(int i =0; i<AColumnSize; i++){ sum+=A[i][i]; } }
  • 16. Algorithm of Transpose for(int i =0; i<ARowSize; i++){ for(int j=0; j<AColumnSize; j++) Array[j][i]=A[i][j]; }
  • 17. Software Usability Make a different approach for the program Every user can easily use Serious debugging and test process Eliminate all possible problems that user could face
  • 18. Items on the Menu Bar About:Givesinformation about the program Languages: Provides selection between Turkish and English languages Separator Setting: Selects the desired separator for the numbers in the matrix Log: All process during the calculations done by the user Help: Gives all the details to use the program appropriately
  • 19. Items on the Tool Bar Multiplication: Gives three choices to user, (Multiplication, Scaler Multiplication, Power) Addition: Adds any size of matrices Subtraction: Subtracts any size of matrices Trace: Gives the trace of any square matrix Transpose: Takes tranpose of any matrix Inverse: Takes inverse of any matrix Determinant: Takes determinant of any matrix
  • 20. Logo of Yasar Universty Logo of Yasar University connects the user the main page of Yasar University website.
  • 21. Enter the input of the matrices to Matrix A and Matrix B. Clear: Erases the number in the Text Area Random: 1) Assigns the number of the matrices at given row and column size, 2) Creates identity matrix at given size 3) Creates zero matrix at given row and column size
  • 22. B to A: copies all data in the Matrix B to Matrix A A to B: copies all data in the Matrix A to Matrix B Output to A: copies all data in the Output Matrix to Matrix A Output to B: copies all data in the Output Matrix to Matrix B
  • 23. Keep Output: Saves at most the 5 output in the memory Write to File: Writes all the outputs calculated by user to a text file Exit: Finishes the programme
  • 24. DEBUGGING Some unexpected errors occurs because of usage. A good software guide the user to find the right way to enter valid input In the design of the programme, the label at the bottom of the frame gives the rules of specific operations.
  • 25. DEBUGGING The programme gives an error massage when the user enters invalid matrix sizes for operations such as “The number of columns in A is not equal to number of rows in B!” If the user enter missing elements to a row or column. For instance, for a size of 3 x 3, the user enters 2 numbers for a row, it warns the user to see the mistake!
  • 26. CONCLUSION Consider carefully and deeply about all the unexpected mistakes that can be occur while running the program and always find an alternative way to deal with the problems!
  • 27. Thank You! http://www.yasar.edu.tr Özlem Ece Çobanoğlu Yusuf Yasin Kumbul