Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/justin-pyne/cofactor-expansion
A Python script that calculates the determinant of a square matrix using cofactor expansion.
https://github.com/justin-pyne/cofactor-expansion
determinant-calculation matrix python
Last synced: 6 days ago
JSON representation
A Python script that calculates the determinant of a square matrix using cofactor expansion.
- Host: GitHub
- URL: https://github.com/justin-pyne/cofactor-expansion
- Owner: justin-pyne
- Created: 2023-10-31T18:27:32.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-31T18:37:11.000Z (about 1 year ago)
- Last Synced: 2023-10-31T19:32:05.027Z (about 1 year ago)
- Topics: determinant-calculation, matrix, python
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cofactor Expansion
A Python script that calculates the determinant of a square matrix using the method of cofactor expansion. The program is designed to handle matrices of any size and will return the determinant of the given matrix.
## Features
- Handles square matrices of any size.
- Calculates determinant using cofactor expansion.
- Includes example matrices for testing.
- Functions `minor` and `determinant` can be imported for external usage.## How to Use
1. Clone the repository to your local machine.
2. Run the script with Python 3:```bash
python3 cofactor-expansion.py
```Alternatively, you can import the minor and determinant functions for usage in other scripts or projects:
```python
from cofactor_expansion import minor, determinant
```