fork(4) download
  1. #include<iostream>
  2. #include<cmath>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int tmp;
  8. cin >> tmp;
  9. cout << "sin("<<tmp<<")="<<sin(tmp)<<"\n"
  10. "cos("<<tmp<<")="<<cos(tmp)<<"\n"
  11. "diff: " << (sin(tmp)-cos(tmp))<<"\n";
  12.  
  13. return 0;
  14. }
Success #stdin #stdout 0.02s 2684KB
stdin
Standard input is empty
stdout
sin(134515033)=0.470042
cos(134515033)=-0.882644
diff: 1.35269