delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/08/31/17:04:27

From: Kbwms AT aol DOT com
Message-ID: <2f.3e4624a3.2c83bcd8@aol.com>
Date: Sun, 31 Aug 2003 17:04:24 EDT
Subject: Re: <math.h> and <libm/math.h>
To: djgpp-workers AT delorie DOT com
MIME-Version: 1.0
X-Mailer: 8.0 for Windows sub 6015
Reply-To: djgpp-workers AT delorie DOT com

--part1_2f.3e4624a3.2c83bcd8_boundary
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit

In a message dated 8/31/2003 2:24:16 PM Eastern Standard Time, 
eliz AT elta DOT co DOT il writes:

> 
> >double erf(double);
> >double erfc(double);
> >double gamma(double);
> >[...]
> >float lgammaf_r(float, int *);


Functions erf() and erfc() are C9x but the name "gamma" in libm is a 
misnomer.  It is actually a synonym for lgamma.  User beware.

> 
> If any of these are defined by ANSI C9x or by Posix, their prototype
> should be moved to the __STRICT_ANSI__ or POSIX sections of the
> header.
> 
> >extern   long   double acoshl    (long double);
> >extern   long   double acosl    (long double);
> 
Okay.


> Same here: these are defined by C9x.
> 
> Thanks again for working on this.
> 

You're welcome.


KB Williams

--part1_2f.3e4624a3.2c83bcd8_boundary
Content-Type: text/html; charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<HTML><FONT FACE=3Darial,helvetica><FONT  SIZE=3D3 FAMILY=3D"SERIF" FACE=3D"=
Georgia" LANG=3D"0">In a message dated 8/31/2003 2:24:16 PM Eastern Standard=
 Time, eliz AT elta DOT co DOT il writes:<BR>
<BR>
<BLOCKQUOTE TYPE=3DCITE style=3D"BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT=
: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px"></FONT><FONT  COLOR=3D"#000000"=
 style=3D"BACKGROUND-COLOR: #ffffff" SIZE=3D2 FAMILY=3D"SANSSERIF" FACE=3D"A=
rial" LANG=3D"0"><BR>
&gt;double erf(double);<BR>
&gt;double erfc(double);<BR>
&gt;double gamma(double);<BR>
&gt;[...]<BR>
&gt;float lgammaf_r(float, int *);</BLOCKQUOTE></FONT><FONT  COLOR=3D"#00000=
0" style=3D"BACKGROUND-COLOR: #ffffff" SIZE=3D2 FAMILY=3D"SANSSERIF" FACE=
=3D"Arial" LANG=3D"0"><BR>
<BR>
</FONT><FONT  COLOR=3D"#000000" style=3D"BACKGROUND-COLOR: #ffffff" SIZE=3D3=
 FAMILY=3D"SERIF" FACE=3D"Georgia" LANG=3D"0"><BR>
Functions erf() and erfc() are C9x but the name "gamma" in libm is a misnome=
r.&nbsp; It is actually a synonym for lgamma.&nbsp; User beware.</FONT><FONT=
  COLOR=3D"#000000" style=3D"BACKGROUND-COLOR: #ffffff" SIZE=3D2 FAMILY=3D"S=
ANSSERIF" FACE=3D"Arial" LANG=3D"0"><BR>
</FONT><FONT  COLOR=3D"#000000" style=3D"BACKGROUND-COLOR: #ffffff" SIZE=3D2=
 FAMILY=3D"SANSSERIF" FACE=3D"Arial" LANG=3D"0"><BR>
<BLOCKQUOTE TYPE=3DCITE style=3D"BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT=
: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px"><BR>
If any of these are defined by ANSI C9x or by Posix, their prototype<BR>
should be moved to the __STRICT_ANSI__ or POSIX sections of the<BR>
header.<BR>
<BR>
&gt;extern&nbsp;&nbsp; long&nbsp;&nbsp; double acoshl&nbsp;&nbsp;&nbsp; (lon=
g double);<BR>
&gt;extern&nbsp;&nbsp; long&nbsp;&nbsp; double acosl&nbsp;&nbsp;&nbsp; (long=
 double);<BR>
</BLOCKQUOTE></FONT><FONT  COLOR=3D"#000000" style=3D"BACKGROUND-COLOR: #fff=
fff" SIZE=3D2 FAMILY=3D"SANSSERIF" FACE=3D"Arial" LANG=3D"0"><BR>
</FONT><FONT  COLOR=3D"#000000" style=3D"BACKGROUND-COLOR: #ffffff" SIZE=3D3=
 FAMILY=3D"SERIF" FACE=3D"Georgia" LANG=3D"0">Okay.<BR>
</FONT><FONT  COLOR=3D"#000000" style=3D"BACKGROUND-COLOR: #ffffff" SIZE=3D2=
 FAMILY=3D"SANSSERIF" FACE=3D"Arial" LANG=3D"0"><BR>
</FONT><FONT  COLOR=3D"#000000" style=3D"BACKGROUND-COLOR: #ffffff" SIZE=3D2=
 FAMILY=3D"SANSSERIF" FACE=3D"Arial" LANG=3D"0"><BR>
<BLOCKQUOTE TYPE=3DCITE style=3D"BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT=
: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px">Same here: these are defined by=
 C9x.<BR>
<BR>
Thanks again for working on this.<BR>
</BLOCKQUOTE><BR>
</FONT><FONT  COLOR=3D"#000000" style=3D"BACKGROUND-COLOR: #ffffff" SIZE=3D3=
 FAMILY=3D"SERIF" FACE=3D"Georgia" LANG=3D"0"><BR>
You're welcome.<BR>
<BR>
<BR>
KB Williams</FONT></HTML>

--part1_2f.3e4624a3.2c83bcd8_boundary--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019