#include <iostream>
#include <cmath>
int main()
{
double x, b, a;
std::cout << "W=sqrt(x^2+b)-b^2*sin^3(x+a)/x\n";
std::cout << "y=cos^2x^3-x/sqrt(a^2+b^2)\n";
std::cout << "x: ";
std::cin >> x;
std::cout << "a: ";
std::cin >> a;
std::cout << "b: ";
std::cin >> b;
double W = sqrt(x * x + b) - b * b * pow(sin(x + a), 3) / x;
double y = pow(cos(x * x * x), 2) - x / sqrt(a * a + b * b);
std::cout << "W = " << W << "\n";
std::cout << "y = " << y << "\n";
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
#include <cmath>
int main()
{
double x, b, a;
std::cout << "W=sqrt(x^2+b)-b^2*sin^3(x+a)/x\n";
std::cout << "y=cos^2x^3-x/sqrt(a^2+b^2)\n";
std::cout << "x: ";
std::cin >> x;
std::cout << "a: ";
std::cin >> a;
std::cout << "b: ";
std::cin >> b;
double W = sqrt(x * x + b) - b * b * pow(sin(x + a), 3) / x;
double y = pow(cos(x * x * x), 2) - x / sqrt(a * a + b * b);
std::cout << "W = " << W << "\n";
std::cout << "y = " << y << "\n";
}