Name: Anonymous 2006-09-04 0:32
Check this out:
0.525322 (cos)
0.850904 (sin)
It's almost like the C++ library is fucked up or something. I know I haven't forgotten basic geometry (windows calculator bears this out) and I don't think I'm going insane, so WHAT AM I DOING WRONG?
double direction, length, result1, result2;
out << "direction?\n";
cin >> direction;
result1 = cos(direction);
result2 = sin(direction);
cout << result1 << "\n";
cout << result2 << "\n";This code is fucked up, because when I enter 45, it should return the same value (.70786 or something similar). Instead, I get: 0.525322 (cos)
0.850904 (sin)
It's almost like the C++ library is fucked up or something. I know I haven't forgotten basic geometry (windows calculator bears this out) and I don't think I'm going insane, so WHAT AM I DOING WRONG?