Hello all.
I was doing some kind of development and in the test file I have something
like this:
///// Test File /////
double x = sin(45);
The output for that statement is:
///// Output Test File /////
0.707107
Unfortunately the output in my system differs from the one in the test
file.
I run the following example in my system:
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
cout << sin(45) << endl; // prints 0.850904
return 0;
}
The example above prints 0.850904 in my system. In addition to that, my
calculator says sin(45) is 0.707107, while calculator at google says that
it is 0.850904.
I am just curious if I am doing something wrong.
Thanks a lot.