#include <iostream> #include <cmath> int main() { double x = 1.0; double y = 1.0; double angle1 = atan(y / x); double angle2 = atan2(y, x); std::cout << "atan(y / x) = " << angle1 << " radians" << std::endl; std::cout << "atan2(y, x) = " << angle2 << " radians" << std::endl; return 0; }