* function cerf in manpage but not in <complex.h>
@ 2010-09-11 22:06 ozgur.gurcan-vcqoFEiXU/AczSlqHMVBIP3zm4ADWneb
2010-09-11 23:01 ` Sam Varshavchik
[not found] ` <b7b0d7b84ae39fc2c80b7efd5d04965a.squirrel-n3SY6/QrmYW9yqgUSJdT8BzNKWocxUEg/fObgANad5s@public.gmane.org>
0 siblings, 2 replies; 4+ messages in thread
From: ozgur.gurcan-vcqoFEiXU/AczSlqHMVBIP3zm4ADWneb @ 2010-09-11 22:06 UTC (permalink / raw)
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA
Hi,
in my system (2.6.34-gentoo-r2), "man cerf" gives me the description of a
certain complex error function. This function however is nowhere to be
found. I tried this on 5 other linux boxes with the same result.
May be the function was taken out at some point but the documentation stayed.
Here is a minimum test file which can be saved as "test.c" and complied as
gcc test.c -lm
------
#include <math.h>
#include <complex.h>
#include <stdio.h>
int main (void){
double complex b,c;
b=I*0.2;
c=cerf(b);
printf("%f + i%f\n",creal(c),cimag(c));
}
------
regards,
Ozgur,
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: function cerf in manpage but not in <complex.h>
2010-09-11 22:06 function cerf in manpage but not in <complex.h> ozgur.gurcan-vcqoFEiXU/AczSlqHMVBIP3zm4ADWneb
@ 2010-09-11 23:01 ` Sam Varshavchik
[not found] ` <b7b0d7b84ae39fc2c80b7efd5d04965a.squirrel-n3SY6/QrmYW9yqgUSJdT8BzNKWocxUEg/fObgANad5s@public.gmane.org>
1 sibling, 0 replies; 4+ messages in thread
From: Sam Varshavchik @ 2010-09-11 23:01 UTC (permalink / raw)
To: ozgur.gurcan-vcqoFEiXU/AczSlqHMVBIP3zm4ADWneb
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 277 bytes --]
ozgur.gurcan-vcqoFEiXU/AczSlqHMVBIP3zm4ADWneb@public.gmane.org writes:
> Hi,
>
> in my system (2.6.34-gentoo-r2), "man cerf" gives me the description of a
> certain complex error function.
Your man page should also have a note that:
"Not yet in glibc, as at version 2.8."
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: function cerf in manpage but not in <complex.h>
[not found] ` <b7b0d7b84ae39fc2c80b7efd5d04965a.squirrel-n3SY6/QrmYW9yqgUSJdT8BzNKWocxUEg/fObgANad5s@public.gmane.org>
@ 2010-09-12 6:53 ` Michael Kerrisk
[not found] ` <AANLkTi=gfsUWbHD1_vyN9sHu1U4RdtYjiVxYpQUs6za4-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Michael Kerrisk @ 2010-09-12 6:53 UTC (permalink / raw)
To: ozgur.gurcan-vcqoFEiXU/AczSlqHMVBIP3zm4ADWneb
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA
Hello Ozgur,
On Sun, Sep 12, 2010 at 12:06 AM, <ozgur.gurcan-vcqoFEiXU/AczSlqHMVBIP3zm4ADWneb@public.gmane.org> wrote:
> Hi,
>
> in my system (2.6.34-gentoo-r2), "man cerf" gives me the description of a
> certain complex error function. This function however is nowhere to be
> found. I tried this on 5 other linux boxes with the same result.
>
> May be the function was taken out at some point but the documentation stayed.
Further down in the page is the line
==
.SH AVAILABILITY
Not yet in glibc, as at version 2.12.
==
I suppose you missed that, which is easy to do. I tweaked the page
(for man-pages-3.27) as below, to try to make it a little clearer.
Cheers,
Michael
--- a/man3/cerf.3
+++ b/man3/cerf.3
@@ -21,7 +21,7 @@ cerf, cerff, cerfl, cerfc, cerfcf, cerfcl \- complex
error function
.sp
Link with \fI\-lm\fP.
.SH DESCRIPTION
-The function
+The (unimplemented) function
.BR cerf ()
is the complex version of the error function.
erf(z) = 2/sqrt(pi) * integral from 0 to z of exp(\-t*t) dt.
@@ -32,7 +32,7 @@ is defined as cerfc(z) = 1\-cerf(z).
.SH "CONFORMING TO"
The function names are reserved for future use in C99.
.SH AVAILABILITY
-Not yet in glibc, as at version 2.8.
+Not yet in glibc, as at version 2.12.
.\" But reserved in NAMESPACE.
.SH "SEE ALSO"
.BR erf (3),
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: function cerf in manpage but not in <complex.h>
[not found] ` <AANLkTi=gfsUWbHD1_vyN9sHu1U4RdtYjiVxYpQUs6za4-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2010-09-12 10:28 ` ozgur.gurcan-vcqoFEiXU/AczSlqHMVBIP3zm4ADWneb
0 siblings, 0 replies; 4+ messages in thread
From: ozgur.gurcan-vcqoFEiXU/AczSlqHMVBIP3zm4ADWneb @ 2010-09-12 10:28 UTC (permalink / raw)
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w
Cc: ozgur.gurcan-vcqoFEiXU/AczSlqHMVBIP3zm4ADWneb,
linux-man-u79uwXL29TY76Z2rM5mHXA
Hello Micheal,
> Hello Ozgur,
>
> On Sun, Sep 12, 2010 at 12:06 AM, <ozgur.gurcan-vcqoFEiXU/AczSlqHMVBIP3zm4ADWneb@public.gmane.org>
> wrote:
>> Hi,
>>
>> in my system (2.6.34-gentoo-r2), "man cerf" gives me the description of
>> a
>> certain complex error function. This function however is nowhere to be
>> found. I tried this on 5 other linux boxes with the same result.
>>
>> May be the function was taken out at some point but the documentation
>> stayed.
>
> Further down in the page is the line
>
> ==
> .SH AVAILABILITY
> Not yet in glibc, as at version 2.12.
> ==
>
> I suppose you missed that, which is easy to do. I tweaked the page
> (for man-pages-3.27) as below, to try to make it a little clearer.
>
> Cheers,
>
> Michael
>
> --- a/man3/cerf.3
> +++ b/man3/cerf.3
> @@ -21,7 +21,7 @@ cerf, cerff, cerfl, cerfc, cerfcf, cerfcl \- complex
> error function
> .sp
> Link with \fI\-lm\fP.
> .SH DESCRIPTION
> -The function
> +The (unimplemented) function
> .BR cerf ()
> is the complex version of the error function.
> erf(z) = 2/sqrt(pi) * integral from 0 to z of exp(\-t*t) dt.
> @@ -32,7 +32,7 @@ is defined as cerfc(z) = 1\-cerf(z).
> .SH "CONFORMING TO"
> The function names are reserved for future use in C99.
> .SH AVAILABILITY
> -Not yet in glibc, as at version 2.8.
> +Not yet in glibc, as at version 2.12.
> .\" But reserved in NAMESPACE.
> .SH "SEE ALSO"
> .BR erf (3),
>
I see. I had seen the note, but I thought it was in "libm" and not in
glibc or something like that (since it also says link with -lm). I think
your version is much clearer.
thanks,
Ozgur
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-09-12 10:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-11 22:06 function cerf in manpage but not in <complex.h> ozgur.gurcan-vcqoFEiXU/AczSlqHMVBIP3zm4ADWneb
2010-09-11 23:01 ` Sam Varshavchik
[not found] ` <b7b0d7b84ae39fc2c80b7efd5d04965a.squirrel-n3SY6/QrmYW9yqgUSJdT8BzNKWocxUEg/fObgANad5s@public.gmane.org>
2010-09-12 6:53 ` Michael Kerrisk
[not found] ` <AANLkTi=gfsUWbHD1_vyN9sHu1U4RdtYjiVxYpQUs6za4-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-09-12 10:28 ` ozgur.gurcan-vcqoFEiXU/AczSlqHMVBIP3zm4ADWneb
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 NNTP newsgroup(s).