fork download
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. class chisl
  5. {
  6. public:
  7. double x,y,z,a;
  8. void set(double x, double y, double z)
  9. {
  10. a=(((5*std::atan(x))-(1/4)*std::acos(x))*((x+3)*(std::abs(x-y)+(std::pow( x, 2))))/(std::abs(x-y)*(z+(std::pow( x,2)))));
  11. }
  12. void print(void)
  13. {
  14. std::cout<<"a="<<a<<"\n";
  15. }
  16. };
  17. int main()
  18. {
  19. chisl cc;
  20. cc.set(0.1722,6.33,0.000324);
  21. cc.print();
  22. //system ("pause");
  23. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
a=90.6621