fork(2) download
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. using namespace std;
  5.  
  6. double f(double x){
  7. return sin(x) + sqrt(log(3 * x) / log(4)) + ceil(3 * exp(x));
  8. }
  9.  
  10. int main() {
  11. double x;
  12. while(cin >> x) {
  13. cout << fixed;
  14. cout.precision(6);
  15. cout << f(x) << endl;
  16. }
  17. return 0;
  18. }
Success #stdin #stdout 0s 4352KB
stdin
1
2.3
2.56
7.123456
stdout
10.731685
31.926086
40.762019
3725.231017