| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include <cmath> | ||
| 4 | #include <functional> | ||
| 5 | #include <tuple> | ||
| 6 | |||
| 7 | #include "task/include/task.hpp" | ||
| 8 | |||
| 9 | namespace romanov_a_integration_rect_method { | ||
| 10 | |||
| 11 | using InType = std::tuple<std::function<double(double)>, double, double, int>; | ||
| 12 | using OutType = double; | ||
| 13 | using TestType = std::tuple<std::function<double(double)>, double, double, int, double>; | ||
| 14 | ; | ||
| 15 | using BaseTask = ppc::task::Task<InType, OutType>; | ||
| 16 | |||
| 17 | constexpr double kEps = 1e-4; | ||
| 18 | |||
| 19 | inline bool IsEqual(double a, double b) { | ||
| 20 | 60 | return std::abs(a - b) <= kEps; | |
| 21 | } | ||
| 22 | |||
| 23 | } // namespace romanov_a_integration_rect_method | ||
| 24 |