Message-ID: <001f01be2a0f$f3170240$48f8c6c3@johans-dator> From: "Johan Henriksson" To: Subject: Re: sin() and cos() ??? Date: Thu, 17 Dec 1998 23:52:39 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Reply-To: djgpp AT delorie DOT com from Johan Henriksson Primary: johan DOT he AT telia DOT com Second: jhe75 AT hotmail DOT com Third: johan_he AT yahoo DOT com HTTP://come.to/jhewok -----Original Message----- From: Arthur To: djgpp AT delorie DOT com Date: Thursday, December 17, 1998 11:44 PM Subject: RE: sin() and cos() ??? >> off course you know that but... >> >> make it like this: >> >> float sin_d(float x){ >> return sin(x*3.1415926/180); >> } > >I think in math.h, there is a definition called PI. This is much more >accurate than what you've got here. > >So you can use sin(x*PI/180); instead (easier). > Easier but not needed. I think no one will notice the difference between 3.1415926 and 3.1415926........... And another thing; I where also fooled to belive that units ment radians, not degrees. Maybe someone should update the help before more people come and fall into this pit? > >James Arthur - jaa AT arfa DOT clara DOT net >http://www.jado.org/users/arfa/ >ICQ#15054819 > > >