The Second and Third Tasks are done
This commit is contained in:
parent
136c9f6b00
commit
69ff8c30a1
31 changed files with 995 additions and 53 deletions
11
2025.03.07/2Ex/solve.c
Normal file
11
2025.03.07/2Ex/solve.c
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#include "solve.h"
|
||||
#include "math.h"
|
||||
|
||||
double t2_solve(double *a, int n)
|
||||
{
|
||||
double trace = 0;
|
||||
int i;
|
||||
for (i = 0; i < n; i++)
|
||||
trace += a[i * n + i];
|
||||
return trace;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue