fork download
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main() {
  6. double x, a;
  7. cout << "x = ";
  8. cin >> x;
  9. cout << "a = ";
  10. cin >> a;
  11.  
  12. double R = sqrt(9.0/16 + pow(cos(x), 4) - 0.5 * pow(sin(a * x), 2));
  13. cout << "R24 = " << R << endl;
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
x = a = R24 = 1.25