[ create a new paste ] login | about

Link: http://codepad.org/awl2eSE7    [ raw code | output | fork ]

C++, pasted on Aug 24:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iostream>
#include <cmath>
using namespace std;
 
const double pi = 3.14159265358979;
 
int main()
{
    cout <<sin(pi) <<endl
         <<sin(2*pi) <<endl
         <<sin(pi/2) <<endl
         <<sin(pi*3/2) <<endl;
    return 0;
}


Output:
1
2
3
4
3.23109e-15
-6.46217e-15
1
-1


Create a new paste based on this one


Comments: