View Full Version : Sinus and cosinus functions for C++


Loco
06-12-03, 02:12 AM
Does anyone know if there excist any header files for C++ with a sinus and/or cosinus calculator. Because I can't seem to find out how to calculate sinus and cosinus with C++.
Thank you in advance.

Andreas

James R
06-12-03, 02:17 AM
How about math.h
?

testify
06-12-03, 03:30 AM
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_sin.2c_.sinh.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_cos.2c_.cosh.asp

AntonK
06-12-03, 12:03 PM
Try not to read the MSDN pages too much, they often differ from the ANSI standards in some important places.

-AntonK

testify
06-12-03, 01:15 PM
So where would be a good idea to get C++ functionality ifnormation?

AntonK
06-12-03, 01:31 PM
http://www.cppreference.com/

-AntonK

Loco
06-12-03, 02:02 PM
I appriciate your help.

Andreas

AntonK
06-12-03, 02:04 PM
No problem. By sticking to the cpp reference your code will be easier to port to other systems than if you use any proprietary standards.

Most of the software I write will compile WITHOUT CHANGING on both Windows and Linux (and with some tweaking, other systems).

-AntonK

testify
06-12-03, 07:19 PM
Cool, thanks Anton.