I understand that cos(); in c++ uses radians right.. and you can get radians with..
(angle * PI ) / 180;
So why does
float value = cos( (90 * PI / 180 ); // == 6.1 etc... and not 0?
If I use the scientific calculator in windows for cos(90)
I get zero. Yet as an experiment, when I push cosh(90)
, I get that same 6.1 etc... value that calling the function in C++ gave me.
Any ideas what is going on? Here is my code as it is now...
What I am asking basically is why is cos(90 degrees)
in C++ coming back with the same number as doing cosh(90)
on the windows calculator. Isn't cos(90 degrees)
supposed to be zero anyway?