Mail Archives: djgpp/2000/01/28/17:58:29
Actually it is in <math.h>, NOT in <dos.h>.
I've pasted below some of the functions found in math.h:
double acos(double _x);
double asin(double _x);
double atan(double _x);
double atan2(double _y, double _x);
double ceil(double _x);
double cos(double _x);
double cosh(double _x);
double sin(double _x);
double sinh(double _x);
double sqrt(double _x);
double tan(double _x);
double tanh(double _x);
You get the picture. Hope this helps...
-David C.
Bram de Greve wrote:
>
> is atn (arctan, bgtg, atan, tan^(-1) or whatever) there too?
>
> Sahab Yazdani wrote:
>
> > all of those functions are in the dos.h file, so to use them you would:
> >
> > #include <dos.h>
> >
> > void main() {
> > foo = sin( angle );
> > foo2 = cos( angle );
> > }
> >
> > Bram de Greve wrote:
> > >
> > > Hi,
> > >
> > > I'm new in djgpp and I have a big problem:
> > > WHAT HAPPENED TO SIN & COS IN C++?
> > > I'm mean, where can I find sin, cos and atn?
> > >
> > > It would be very pleasant if I could use those fellows without
> > > having to define it myself (yes, you can do that, with Taylor :)
> > >
> > > Thanks in advance,
> > > Bram de Greve
> >
> > --
> > ***********************************************************
> > * Sahab Yazdani * "We are all who we are, no more and no *
> > * Thornhill S.S * less" - al'Lan Mandragoran *
> > ***********************************************************
> > * http://pheonixware.8m.com/ *
> > ***********************************************************
- Raw text -