Re: Is still math.h the C++ math library ?
From: Bobo (pinzo_at_correo.nu)
Date: 04/01/04
- Next message: Roger Leigh: "Re: template specialisation and templated methods"
- Previous message: Leor Zolman: "Re: An Interesting Gotcha"
- In reply to: Jonathan Turkanis: "Re: Is still math.h the C++ math library ?"
- Next in thread: Rob Williscroft: "Re: Is still math.h the C++ math library ?"
- Reply: Rob Williscroft: "Re: Is still math.h the C++ math library ?"
- Reply: Jonathan Turkanis: "Re: Is still math.h the C++ math library ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 1 Apr 2004 05:06:07 -0800
"Jonathan Turkanis" <technews@kangaroologic.com> wrote in message news:<c4g2le$2hivok$1@ID-216073.news.uni-berlin.de>...
> "AciD_X" <voodopeople@rocketNOSPAMmail.com> wrote in message
> news:pan.2004.04.01.00.40.12.58754@rocketNOSPAMmail.com...
> > On Wed, 31 Mar 2004 10:39:52 -0700, Jonathan Turkanis wrote:
> >
> > >
> > > "osmium" <r124c4u102@comcast.net> wrote in message
> > > news:c4ev62$2hoojv$1@ID-179017.news.uni-berlin.de...
> > >> Jonathan Turkanis writes:
>
> > >
> > > The contents of <math.h> and <cmath> are not the same: <math.h> is
> > > specified to define functions in the global namespace, <cmath> in
> the
> > > namespace std.
>
> <snip>
>
> > Do they differ in any way other than the namespace they are in ?
>
> That's the only difference.
If my memory is right <cmath> includes also overloads for every
<math.h> function, using float instead of double.
<math.h> <cmath>
double sin(double x) double std::sin(double x);
float std::sin(float x);
...
Regards.
Bobo.
- Next message: Roger Leigh: "Re: template specialisation and templated methods"
- Previous message: Leor Zolman: "Re: An Interesting Gotcha"
- In reply to: Jonathan Turkanis: "Re: Is still math.h the C++ math library ?"
- Next in thread: Rob Williscroft: "Re: Is still math.h the C++ math library ?"
- Reply: Rob Williscroft: "Re: Is still math.h the C++ math library ?"
- Reply: Jonathan Turkanis: "Re: Is still math.h the C++ math library ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|