Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <windows.h>
- #include <format>
- using namespace std;
- int main()
- {
- SetConsoleOutputCP(1251);
- double y{}, x{};
- double xn{ 0.25 }, xk{ 6 }, dx{ 0.55 }, a{ 0.86 }, b{ 2.8 };
- const auto table_format = "x = {:4.2f} \t y = {:4.2f} \n";
- for (x = xn; x <= xk; x += dx) {
- y = (pow(a + x, 1 / 3.0) + 2 * tan(x)) / (x - 4.87 * b);
- cout << format(table_format, x, y);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement