Answers for "how atan work c++"

C++
0

how atan work c++

#include <iostream>
#include <cmath>

using namespace std;

int main()
{
  double x = 57.74, result;
  result = atan(x);
  
  cout << "atan(x) = " << result << " radians" << endl;
  
  // Output in degrees
  cout << "atan(x) = " << result*180/3.1415 << " degrees" << endl;
  
  return 0;
}
Posted by: Guest on April-28-2022
0

how atan work c++

[Mathematics] tan-1x = atan(x) [In C++ Programming];
Posted by: Guest on April-28-2022

Browse Popular Code Answers by Language