GithubHelp home page GithubHelp logo

row-reduction's Introduction

Row Reduction Project

Description

This is a simple row reduction formula project intended for MATH313 at the University of Arizona. It allows you to perform row reduction on a given matrix to convert it to row-echelon form. The code is implemented in Python and uses the NumPy library.

Prerequisites

  • Python 3
  • NumPy library

Usage

  1. Make sure you have Python 3 and the NumPy library installed.
  2. Clone or download this repository to your local machine.
  3. Open the code in an integrated development environment (IDE) that supports Python, such as Microsoft Visual Studio.
  4. Run the code, and it will prompt you to enter the number of rows and columns for your matrix. Then, you can input the matrix elements row-wise.
  5. The code will display the initial matrix and its row-echelon form in the terminal.

Functions

'row_reduction(matrix)'

This function performs row reduction on a given matrix to convert it to row-echelon form.

Args: matrix (numpy.ndarray): The input matrix as a NumPy array.

Returns: matrix (numpy.ndarray): The row-echelon form of the input matrix.

'input_matrix()'

Prompt the user for the number of rows and columns of a matrix, and then collect the matrix elements.

Returns: numpy.ndarray: The matrix entered by the user.

'test_case(matrix=np.array)'

This function is used to test the row reduction functionality with an optional input matrix. If no matrix is provided, a default test case will be used.

Args: matrix (numpy.ndarray, optional): The input matrix for testing.

NOTE

This code is still a work in progress and may provide incorrect answers.

row-reduction's People

Watchers

Que 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.