#include <iostream>
#include <cmath> // Для использования функции log
#include <iomanip> // Для форматирования вывода
int main() {
// Заданные параметры
double x0 = 1.0, xk = 2.2, dx = 0.2;
double b = 3.2;
// Заголовок таблицы
std::cout << std::fixed << std::setprecision(4); // Форматирование вывода
std::cout << " x | y(x)" << std::endl;
std::cout << "-------------------------" << std::endl;
// Цикл табулирования функции
for (double x = x0; x <= xk; x += dx) {
double y = 9 * (pow(x, 3) + pow(b, 2)) * log(x); // Вычисление y(x)
std::cout << " " << x << " | " << y << std::endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+IC8vINCU0LvRjyDQuNGB0L/QvtC70YzQt9C+0LLQsNC90LjRjyDRhNGD0L3QutGG0LjQuCBsb2cKI2luY2x1ZGUgPGlvbWFuaXA+IC8vINCU0LvRjyDRhNC+0YDQvNCw0YLQuNGA0L7QstCw0L3QuNGPINCy0YvQstC+0LTQsAoKaW50IG1haW4oKSB7CiAgICAvLyDQl9Cw0LTQsNC90L3Ri9C1INC/0LDRgNCw0LzQtdGC0YDRiwogICAgZG91YmxlIHgwID0gMS4wLCB4ayA9IDIuMiwgZHggPSAwLjI7CiAgICBkb3VibGUgYiA9IDMuMjsKCiAgICAvLyDQl9Cw0LPQvtC70L7QstC+0Log0YLQsNCx0LvQuNGG0YsKICAgIHN0ZDo6Y291dCA8PCBzdGQ6OmZpeGVkIDw8IHN0ZDo6c2V0cHJlY2lzaW9uKDQpOyAvLyDQpNC+0YDQvNCw0YLQuNGA0L7QstCw0L3QuNC1INCy0YvQstC+0LTQsAogICAgc3RkOjpjb3V0IDw8ICIgICB4ICAgICAgIHwgICAgICB5KHgpIiA8PCBzdGQ6OmVuZGw7CiAgICBzdGQ6OmNvdXQgPDwgIi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0iIDw8IHN0ZDo6ZW5kbDsKCiAgICAvLyDQptC40LrQuyDRgtCw0LHRg9C70LjRgNC+0LLQsNC90LjRjyDRh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