Skip to main content

Numeric Calculus python module in the topic of Linear Algebra

Project description

Seals - Numeric Calculus

This python package is made for applied Numeric Calculus of Linear Algebra. It is made with the following objectives in mind:

  • Scan csv files to make a numpy matrix.

  • Write a matrix into a csv file

  • Insert user input into a matrix or a vector.

  • Use methods to proccess the matrices.

    • Identity Matrix
    • Gauss Elimination
    • Inverse Matrix
    • Cholesky Decomposition
    • LU Decomposition
    • Cramer

Syntax

The function scan has the following syntax scan(path), where path is the path to your directory.

The function solution has the following syntax write(array,path), where array is the matrix that you desire to output and path is the path to your directory.

The python class Insert has a method for matrix and another for vector, and it has the following syntax Insert.method(array), where Insert is the Python Class and method is either a matrix or a vector and array is either a matrix or a vector.

Processes

The python class process has all the methods described in the first session.

To call the method use a syntax like sl = Seals.process(), where sl is an instance and to use a method you have to append the method in front of the instance like: sl.identity(array).

  • The method identity returns a numpy identity matrix of the order of the matrix passed into to it, and it has the following syntax sl.identity(array), which array is a square matrix.

  • The method gauss returns a numpy vector containing the vector of variables from the augmented matrix. sl.gauss(matrix), which matrix is the augmented matrix.

  • The method inverse returns a numpy inverse matrix of the matrix passed into to it, and it has the following syntax sl.inverse(matrix), which matrix is a square matrix.

  • The method cholesky returns a numpy vector containing the vector of variables from the coefficient matrix and the constants vector, and it has the following syntax sl.cholesky(A,b), which A is the coefficient matrix and b is the constants vector.

  • The method decomposition returns a numpy vector containing the vector of variables from the coefficient matrix and the constants vector, and it has the following syntax sl.cholesky(A,b), which A is the coefficient matrix and b is the constants vector.

  • The method cramer returns a numpy vector containing the vector of variables from the coefficient matrix and the constants vector, and it has the following syntax sl.cholesky(A,b), which A is the coefficient matrix and b is the constants vector.

Installation

To install the package from source cd into the directory and run:

pip install .

or run

pip install yoshi-seals

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yoshi-seals-1.2.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

yoshi_seals-1.2-py3-none-any.whl (10.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page