Absolutly wrong done Task 5
This commit is contained in:
parent
231e507ef5
commit
8e6617686b
18 changed files with 807 additions and 0 deletions
14
2025.05.09/04Ex/solve.c
Normal file
14
2025.05.09/04Ex/solve.c
Normal file
|
@ -0,0 +1,14 @@
|
|||
#include "solve.h"
|
||||
|
||||
#include <math.h>
|
||||
#include <float.h>
|
||||
|
||||
int t3_solve (
|
||||
double (*f) (double),
|
||||
double x, double h
|
||||
) {
|
||||
if (h < DBL_EPSILON)
|
||||
return DBL_MAX;
|
||||
return (f(x + h) - 2 * f(x) + f(x - h)) / (h * h);
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue