Mail Archives: djgpp/1998/12/17/16:53:06
No kiddin ! and I thought you were.
The math.h is 3.14159265358979323846 !
Applause !!!!
Mike...
Arthur wrote:
> > 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).
>
> James Arthur - jaa AT arfa DOT clara DOT net
> http://www.jado.org/users/arfa/
> ICQ#15054819
- Raw text -