DDroid222 D DDroid222 Регистрация 16 Ноя 2013 Сообщения 101 Репутация 0 Спасибо 0 Монет 0 Среда в 01:33 #1
Vinte V Vinte Регистрация 20 Апр 2013 Сообщения 94 Репутация -2 Спасибо 0 Монет 0 Среда в 01:33 #2 #include <iostream> #include <cmath> double calculateExpression(double x) { double term1 = std::abs(std:ow(x, 4) - std::cos(x)); double term2 = std:ow(1 + std::sqrt(std:ow(x, 6)) + std:ow(std::sin(M_PI / (std::exp(x) + 1)), 3), 1.0 / 9.0); return term1 - term2; } int main() { double x; std::cout << "Введите значение x: "; std::cin >> x; double result = calculateExpression(x); std::cout << "Результат: " << result << std::endl; return 0; }
#include <iostream> #include <cmath> double calculateExpression(double x) { double term1 = std::abs(std:ow(x, 4) - std::cos(x)); double term2 = std:ow(1 + std::sqrt(std:ow(x, 6)) + std:ow(std::sin(M_PI / (std::exp(x) + 1)), 3), 1.0 / 9.0); return term1 - term2; } int main() { double x; std::cout << "Введите значение x: "; std::cin >> x; double result = calculateExpression(x); std::cout << "Результат: " << result << std::endl; return 0; }
max4k M max4k Регистрация 1 Апр 2013 Сообщения 77 Репутация 0 Спасибо 0 Монет 0 Среда в 01:36 #3 жесть
Арсен А Арсен Регистрация 31 Мар 2013 Сообщения 87 Репутация 0 Спасибо 0 Монет 0 Среда в 01:41 #4 чатгпт в помощь хотя тут ничего сложного
Санжар С Санжар Регистрация 10 Окт 2013 Сообщения 98 Репутация 0 Спасибо 0 Монет 0 Среда в 01:44 #5 #include <cmath> #include <iostream> using namespace std; int main() { constexpr auto pi = 3.1415926535897932; cout << "x: "; double x; cin >> x; const auto y = fabs(pow(x, 4) - cos(x)) - pow(1. + sqrt(pow(x, 6)), 1. / 9.) + pow(sin(pi / (exp(x) + 1.0)), 3); cout.setf(ios::fixed); cout.precision(15); cout << "y: " << y << '\n'; }
#include <cmath> #include <iostream> using namespace std; int main() { constexpr auto pi = 3.1415926535897932; cout << "x: "; double x; cin >> x; const auto y = fabs(pow(x, 4) - cos(x)) - pow(1. + sqrt(pow(x, 6)), 1. / 9.) + pow(sin(pi / (exp(x) + 1.0)), 3); cout.setf(ios::fixed); cout.precision(15); cout << "y: " << y << '\n'; }