Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
#include
#include
using namespace std; int main() { const double PI = 3.141592653589793; cout << tan(3) << "\n"; cout << tan(-3) << "\n"; cout << tan(0) << "\n"; cout << tan(PI) << "\n"; cout << tan(PI / 2.0) << "\n"; return 0; }
-0.142547
0.142547
0
-1.22465e-16
1.63312e+16