This Python script is designed to perform various matrix operations and find the parametric form of a matrix. It utilizes the SymPy library for matrix operations and provides functionality for the following:
- Reading a matrix from a file.
- Finding the Reduced Row Echelon Form (RREF) of the matrix.
- Extracting column vectors from the RREF matrix.
- Generating an identity matrix of appropriate size.
- Determining the parametric form of the matrix.
Before using this script, make sure you have Python installed on your system. Additionally, you need to install the SymPy library, which can be done using the following command:
pip install sympy
- Place your matrix data in a file named "matrix.txt" in the same directory as the script.
- Run the script using the following command:
python matrix_operations.py
The script will perform the matrix operations and display the results in the console.
The RREF of the input matrix is displayed in the console.
The column vectors extracted from the RREF matrix are displayed.
The parametric form of the matrix is displayed as a linear combination of variables.
You can customize the script by modifying the code to read matrices from different file locations or make any other desired changes.
- SymPy - The library used for symbolic mathematics in Python.
This project is licensed under the MIT License.
Feel free to contribute to this project or provide feedback by opening issues or pull requests.