diff options
author | justanothercatgirl <sotov2070@gmail.com> | 2024-10-04 18:15:00 +0300 |
---|---|---|
committer | justanothercatgirl <sotov2070@gmail.com> | 2024-10-04 20:14:24 +0300 |
commit | 7cf056d737ac5ad9d819220c855a53847185a327 (patch) | |
tree | 15a26d09d3f20fc7e318d3991962c688194f4d1a /include | |
parent | aa0d37540f5bc4bb6327b43c7213b46d0e261cf0 (diff) |
Finished homework
Diffstat (limited to 'include')
-rw-r--r-- | include/integral.h | 8 | ||||
-rw-r--r-- | include/roots.h | 10 |
2 files changed, 9 insertions, 9 deletions
diff --git a/include/integral.h b/include/integral.h index e3583b8..3eb6ff7 100644 --- a/include/integral.h +++ b/include/integral.h @@ -1,12 +1,12 @@ #ifndef JUSTANOTHERCATGIRL_TASK4_INTEGRAL #define JUSTANOTHERCATGIRL_TASK4_INTEGRAL -typedef double(*f_t)(double); +typedef double(*func_t)(double); extern double accrc; -double int_rect(f_t f, double a, double b); -double int_trap(f_t f, double a, double b); -double int_simp(f_t f, double a, double b); +double int_rect(func_t f, double a, double b); +double int_trap(func_t f, double a, double b); +double int_simp(func_t f, double a, double b); #endif //JUSTANOTHERCATGIRL_TASK4_INTEGRAL diff --git a/include/roots.h b/include/roots.h index 5307991..138382b 100644 --- a/include/roots.h +++ b/include/roots.h @@ -1,15 +1,15 @@ #ifndef JUSTANOTHERCATGIRL_TASK4_ROOTS #define JUSTANOTHERCATGIRL_TASK4_ROOTS -typedef double(*f_t)(double); +typedef double(*func_t)(double); extern char root_ok; char is_root_ok(void); -double sol_binsr(f_t f, double a, double b, double ex, double ey); -double sol_chord(f_t f, double a, double b, double ex, double ey); -double sol_newtn(f_t f, double x0, double ex, double ey); -double sol_itern(f_t f, double x0, double ex, double ey); +double sol_binsr(func_t f, double a, double b, double ex, double ey); +double sol_chord(func_t f, double a, double b, double ex, double ey); +double sol_newtn(func_t f, double x0, double ex, double ey); +double sol_itern(func_t f, double x0, double ex, double ey); #endif // JUSTANOTHERCATGIRL_TASK4_ROOTS |