Coder Social home page Coder Social logo

arnab132 / matrix-multiplication-with-user-input-python Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 14 KB

Implementation of Matrix Multiplication using Python taking User Input

Home Page: https://github.com/arnab132/Matrix-Multiplication-With-User-Input-Python

Python 100.00%
matrix-multiplication matrices matrix-functions matrix matrixmultiply matrix-python user-input

matrix-multiplication-with-user-input-python's Introduction

Matrix Multiplication With User Input Using Python

Given two user input matrix. Our task is to Display the addition of two matrix. In these problem we use nested List comprehensive.

Algorithm

Step1: Input two matrix from the User.

Step 2: Nested for loops to iterate through each row and each column.

Step 3: Take one resultant matrix which is initially contains all 0.

Step 4: Then we multiply each row elements of first matrix with each elements of Second matrix, then add all multiplied value. That is the value of resultant matrix.

Sample Output

Enter N for N x N matrix: 3

Enter the element ::>

2 1 4 2 1 2 3 4 3

[[2, 1, 4], [2, 1, 2], [3, 4, 3]]

Display Array In Matrix Form:

2 1 4 2 1 2 3 4 3

Enter N for N x N matrix : 3

Enter the element ::>

1 2 3 4 5 6 7 8 9

[[1, 2, 3], [4, 5, 6], [7, 8, 9]]

Display Array In Matrix Form

1 2 3 4 5 6 7 8 9

The Resultant Matrix Is ::>

[34, 41, 48] [20, 25, 30] [40, 50, 60]

matrix-multiplication-with-user-input-python's People

Contributors

arnab132 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.