This project implements a computational algebra algorithm in C. It populates a
The matrix is organized into 4 distinct rows, where each column
-
Row 0 (Linear): The number itself (
$x$ ) -
Row 1 (Quadratic): The square of the number (
$x^2$ ) -
Row 2 (Factorial): The factorial of the number (
$x!$ ) -
Row 3 (Exponential): The number to the power of itself (
$x^x$ )
-
Data Types: Uses
long longintegers to handle large values (e.g.,$10^{10}$ exceeds standard integer limits). - Complexity: Populates the matrix in a single pass with nested loops for factorial and power calculations.
The program generates a table structure similar to:
| n | 1 | 2 | 3 | ... | 10 |
|---|---|---|---|---|---|
| 1 | 4 | 9 | ... | 100 | |
| 1 | 2 | 6 | ... | 3,628,800 | |
| 1 | 4 | 27 | ... | 10,000,000,000 |
This repository demonstrates nested loops, mathematical algorithms, and data type management in C.