Task 3 is done!

This commit is contained in:
AZEN-SGG 2025-04-16 15:23:41 +03:00
parent b9e4209b86
commit 4c083aa533
15 changed files with 269 additions and 16 deletions

View file

@ -1,6 +1,8 @@
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <float.h>
#include <math.h>
#include "array_io.h"
#include "io_status.h"
@ -63,6 +65,16 @@ int main(int argc, char *argv[])
r = t2_solve(x_0, n, X, Y);
t = (clock() - t) / CLOCKS_PER_SEC;
if (fabs(r - DBL_MAX) < DBL_EPSILON)
{
fprintf(stderr, "%s\n", ERR_FUNC);
free(X);
free(Y);
return 4;
}
printf("%s : Task = %d Result = %e Elapsed = %.2f\n", argv[0], task, r, t);
free(X);