Task 1 and 2 are done!

This commit is contained in:
AZEN-SGG 2025-05-06 00:00:35 +03:00
parent cdc405551d
commit a39f0f19e3
20 changed files with 587 additions and 0 deletions

14
2025.05.09/02Ex/solve.c Normal file
View file

@ -0,0 +1,14 @@
#include "solve.h"
#include <math.h>
#include <float.h>
int t2_solve (
double (*f) (double),
double x, double h
) {
if (h < DBL_EPSILON)
return DBL_MAX;
return (f(x + h) - f(x - h)) / (2 * h);
}