public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* std::erf not in cmath?
@ 2012-12-13 17:05 Nico Schlömer
  2012-12-14  1:02 ` Jonathan Wakely
  0 siblings, 1 reply; 4+ messages in thread
From: Nico Schlömer @ 2012-12-13 17:05 UTC (permalink / raw)
  To: gcc-help

Hi,

according to https://en.wikipedia.org/wiki/Error_function, the erf()
function is part of the C++11 standard. It's already implemented in
math.h and accessible after

#include <math.h>

but for some reason, erf() and erfc() are not contained in cmath. Is this a bug?

--Nico

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: std::erf not in cmath?
  2012-12-13 17:05 std::erf not in cmath? Nico Schlömer
@ 2012-12-14  1:02 ` Jonathan Wakely
  2012-12-14  7:56   ` Nico Schlömer
  0 siblings, 1 reply; 4+ messages in thread
From: Jonathan Wakely @ 2012-12-14  1:02 UTC (permalink / raw)
  To: Nico Schlömer; +Cc: gcc-help

On 13 December 2012 17:04, Nico Schlömer wrote:
> Hi,
>
> according to https://en.wikipedia.org/wiki/Error_function, the erf()
> function is part of the C++11 standard. It's already implemented in
> math.h and accessible after
>
> #include <math.h>
>
> but for some reason, erf() and erfc() are not contained in cmath. Is this a bug?

Yes.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: std::erf not in cmath?
  2012-12-14  1:02 ` Jonathan Wakely
@ 2012-12-14  7:56   ` Nico Schlömer
  2012-12-14 10:41     ` Jonathan Wakely
  0 siblings, 1 reply; 4+ messages in thread
From: Nico Schlömer @ 2012-12-14  7:56 UTC (permalink / raw)
  To: Jonathan Wakely; +Cc: gcc-help

Thanks; bug filed at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55682.

On Fri, Dec 14, 2012 at 2:02 AM, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
> On 13 December 2012 17:04, Nico Schlömer wrote:
>> Hi,
>>
>> according to https://en.wikipedia.org/wiki/Error_function, the erf()
>> function is part of the C++11 standard. It's already implemented in
>> math.h and accessible after
>>
>> #include <math.h>
>>
>> but for some reason, erf() and erfc() are not contained in cmath. Is this a bug?
>
> Yes.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: std::erf not in cmath?
  2012-12-14  7:56   ` Nico Schlömer
@ 2012-12-14 10:41     ` Jonathan Wakely
  0 siblings, 0 replies; 4+ messages in thread
From: Jonathan Wakely @ 2012-12-14 10:41 UTC (permalink / raw)
  To: Nico Schlömer; +Cc: gcc-help

On 14 December 2012 07:55, Nico Schlömer wrote:
> Thanks; bug filed at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55682.

I assumed if you're trying to use C++11 functions you'd be using -std=c++11

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-12-14 10:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-13 17:05 std::erf not in cmath? Nico Schlömer
2012-12-14  1:02 ` Jonathan Wakely
2012-12-14  7:56   ` Nico Schlömer
2012-12-14 10:41     ` Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).