https://github.com/echo724/matrix-generator
Generate a Sympy matrix fast!
https://github.com/echo724/matrix-generator
Last synced: 12 months ago
JSON representation
Generate a Sympy matrix fast!
- Host: GitHub
- URL: https://github.com/echo724/matrix-generator
- Owner: echo724
- License: mit
- Created: 2019-06-13T00:45:26.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-07-18T13:53:32.000Z (almost 6 years ago)
- Last Synced: 2025-06-21T16:42:19.996Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 26.4 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# matrix-generator
[](https://badge.fury.io/py/mgenerator)
This is a python program that helps you to make a sympy matrix easily. This module uses [sympy](https://www.sympy.org/en/index.html), python library for simbolic mathmatics.
By using this generator, you can create a new sympy matrix with only entering the dimension size and elements.
## Dependencies
The following dependencies are required
- [sympy](https://www.sympy.org/en/index.html)
## Download
``` bash
$ pip install mgenerator
```
## Example
```python
from mgenerator import *
foo = new() # makes new sympy Matrix object. You will enter elements
foo = new(1,2) # makes new sympy Matrix with 1 raw and 2 column
ef(foo) # makes foo as Echelon form
rf(foo) # makes foo as Reduced Echelon form
num = 3
ran(num) #finds image num elements vector range
#used in finding eigenvalues
char(foo, 3) #makes characteristic polynomial equation, and finds soluton with 3*3 matrix
orthon(foo) #makes orthogonal basis matrix
vec(2,1) #makes the vector (2,1)
```
## Instructions
1. `new( )`:
- When you make a mistake, just enter 'Enter'. **It will make new matrix**
- You can use any type of componenent(int,float,string), even a fraction like 1/2
2. `ran( )`:
- First you have to find echelon form of linear combination's agmented coefficient matrix
- Put coefficients of the range. Ex) If the range is ax-by-cz = 0 -> enter a,-b,-c
3. `char( )`:
- Put a Matrix and number of the matrix dimension ( if 2 by 2 matrix, enter 2 )