aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorjustanothercatgirl <sotov2070@gmail.com>2024-10-04 17:37:14 +0300
committerjustanothercatgirl <sotov2070@gmail.com>2024-10-04 18:07:56 +0300
commitaa0d37540f5bc4bb6327b43c7213b46d0e261cf0 (patch)
treefa9d43d364f3a6d72d7a84c911aabc43658a2998 /include
parenta9bd52226fbcac98bddec9cffcef1ded8b75b5df (diff)
Пока не закончил логику выбора программы, но готовы все алгоритмы
Diffstat (limited to 'include')
-rw-r--r--include/integral.h12
-rw-r--r--include/roots.h15
2 files changed, 27 insertions, 0 deletions
diff --git a/include/integral.h b/include/integral.h
new file mode 100644
index 0000000..e3583b8
--- /dev/null
+++ b/include/integral.h
@@ -0,0 +1,12 @@
+#ifndef JUSTANOTHERCATGIRL_TASK4_INTEGRAL
+#define JUSTANOTHERCATGIRL_TASK4_INTEGRAL
+
+typedef double(*f_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);
+
+#endif //JUSTANOTHERCATGIRL_TASK4_INTEGRAL
diff --git a/include/roots.h b/include/roots.h
new file mode 100644
index 0000000..5307991
--- /dev/null
+++ b/include/roots.h
@@ -0,0 +1,15 @@
+#ifndef JUSTANOTHERCATGIRL_TASK4_ROOTS
+#define JUSTANOTHERCATGIRL_TASK4_ROOTS
+
+typedef double(*f_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);
+
+
+#endif // JUSTANOTHERCATGIRL_TASK4_ROOTS