fork download
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. using namespace std;
  5.  
  6. const double EPS = .01;
  7.  
  8. double f(double x)
  9. {
  10. return 7 * sin(2*x);
  11. }
  12.  
  13. int main()
  14. {
  15. cout
  16. << f(2.35547) << endl
  17. << f(3.14111) << endl
  18. << -3.80204 << endl
  19. ;
  20. return 0;
  21. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
-6.99999
-0.00675715
-3.80204