fork download
  1. #define _USE_MATH_DEFINES //математические константы
  2. #include <iostream>
  3. #include <math.h>
  4.  
  5. using namespace std;
  6.  
  7. int main() {
  8. setlocale(LC_ALL, "rus");
  9. double x, y, z, f, s, t;
  10. x = 3.251;
  11. y = 0.325;
  12. z = 0.466e-4;
  13.  
  14. /* Поэтапоное решение */
  15. f = pow(2, pow(y, x)) + pow(pow(3, x), y); //1
  16. s = y * (atan(z) - M_PI / 6); //2
  17. t = abs(x) + 1 / (pow(y, 2) + 1); //3
  18.  
  19. cout << "Результат c = " << f - s / t;
  20.  
  21. return 0;
  22. }
Success #stdin #stdout 0s 4364KB
stdin
Standard input is empty
stdout
Результат c = 4.25143