运行 ❯
获取您自己的
网站
×
更改方向
更改主题,深色/浅色
转到 Spaces
#include <iostream> #include <cmath> using namespace std; int main() { const double PI = 3.141592653589793; cout << cos(3) << "\n"; cout << cos(-3) << "\n"; cout << cos(0) << "\n"; cout << cos(PI) << "\n"; cout << cos(PI / 2.0) << "\n"; return 0; }
-0.989992
-0.989992
1
-1
6.12323e-17