https://github.com/vittoriopiotti/matrixcalculator-c
Calcolatrice Matriciale sviluppata in C per tutte le operazioni con le matrici ed anche algoritmo di Laplace e calcolo della matrice inversa
https://github.com/vittoriopiotti/matrixcalculator-c
algorithm c calculator matrix matrix-calculations
Last synced: about 1 month ago
JSON representation
Calcolatrice Matriciale sviluppata in C per tutte le operazioni con le matrici ed anche algoritmo di Laplace e calcolo della matrice inversa
- Host: GitHub
- URL: https://github.com/vittoriopiotti/matrixcalculator-c
- Owner: vittorioPiotti
- License: gpl-3.0
- Created: 2024-05-15T11:40:00.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-30T12:40:48.000Z (5 months ago)
- Last Synced: 2025-03-25T11:39:06.200Z (about 2 months ago)
- Topics: algorithm, c, calculator, matrix, matrix-calculations
- Language: C
- Homepage: https://replit.com/@piottivittorio/Matrix-Calculator-C
- Size: 281 KB
- Stars: 47
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Matrix Calculator C
> [!IMPORTANT]
> **AI Free**Calcolatrice Matriciale sviluppata in C per tutte le operazioni con le matrici ed anche algoritmo di Laplace e calcolo della matrice inversa
> [!NOTE]
> Progetto scolastico ๐ ยท โ ข> [!TIP]
> Algoritmi di calcolo matriciale corretti e funzionanti> [!WARNING]
> Corretto funzionamento dell'UI non garantito---
## Snippet Laplace Algorithm
```c
float calcolaLaplaceDeterminanteMatriceNxN(float matElemAlg[][MAXCL], int dim) {
float det = 0.0;
float matCompl[MAXRG][MAXCL];
int i;
int j = 0;
int k;
int colonne = 0;
if (dim == 2) return matElemAlg[0][0] * matElemAlg[1][1] - matElemAlg[0][1] * matElemAlg[1][0];
else {
for (k = 0; k < dim; k++) {
for (i = 1; i < dim; i++) {
for (j = 0; j < dim; j++) {
if (j < colonne) matCompl[i - 1][j] = matElemAlg[i][j];
else if (j > colonne) matCompl[i - 1][j - 1] = matElemAlg[i][j];
}
}
if (k % 2 == 1) matElemAlg[0][k] = -matElemAlg[0][k];
det += calcolaLaplaceDeterminanteMatriceNxN(matCompl, dim - 1) * matElemAlg[0][k];
colonne++;
}
}
return det;
}```
## Licenze
### Battle Ship C
**Copyright** 2024 Vittorio Piotti [(GitHub page)](https://github.com/vittorioPiotti) [(Personal page)](https://vittoriopiotti.altervista.org/)
**Version** [v1.0.0](https://github.com/vittorioPiotti/MatrixCalculator-C/releases/tag/v1.0.0)
**License** [GPL-3.0](https://github.com/vittorioPiotti/MatrixCalculator-C/blob/main/LICENSE.md)