This project is a C program that computes the eigenvalues of a given quadrant matrix. The program takes an input file containing the matrix and outputs the computed eigenvalues to an output file.
To run this program, you need to have the following installed:
-
C compiler (GCC or any C compiler that supports C99)
-
Bash shell (or any compatible shell)
-
Clone the repository to your local machine:
git clone https://github.com/lilpuzeen/Eigenvalues-computation.git
-
Navigate to the project directory:
cd Eigenvalues-computation
-
Compile the C program using the provided Makefile:
make
-
Prepare an input file containing the quadrant matrix. The matrix should be stored in a specific format: first row goes for dimension, then each row of the matrix should be on a separate line, and the elements within a row should be separated by spaces.
Example input file (input.txt):
3 1 2 3 4 5 6 7 8 9
-
Run the program using the following command:
./main.c input.txt output.txt
Replace input.txt with the path to your input file, and output.txt with the desired name for the output file.
-
After execution, the computed eigenvalues will be saved in the specified output file.
Contributions to this project are welcome! If you'd like to contribute, please follow these steps:
- Fork the repository on GitHub.
- Clone the forked repository to your local machine.
- Create a new branch for your contribution:
git checkout -b feature/your-feature
- Make your changes and commit them with descriptive commit messages.
- Push your changes to your forked repository.
- Create a pull request on the original repository, explaining your changes.
This project is licensed under the MIT License. See the LICENSE file for more information.