OSDN Git Service

LDP: Update original to LDP v3.68
[linuxjm/LDP_man-pages.git] / original / man3 / matherr.3
index b4e94c7..feff8d6 100644 (file)
@@ -2,6 +2,7 @@
 .\" Copyright (c) 2008, Linux Foundation, written by Michael Kerrisk
 .\"     <mtk.manpages@gmail.com>
 .\"
+.\" %%%LICENSE_START(VERBATIM)
 .\" Permission is granted to make and distribute verbatim copies of this
 .\" manual provided the copyright notice and this permission notice are
 .\" preserved on all copies.
@@ -21,6 +22,7 @@
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
 .\"
 .TH MATHERR 3 2010-09-10 "Linux" "Linux Programmer's Manual"
 .SH NAME
@@ -215,9 +217,9 @@ Function    Type    Result  Msg?    errno
 acos(|x|>1)    DOMAIN  HUGE    y       EDOM
 asin(|x|>1)    DOMAIN  HUGE    y       EDOM
 atan2(0,0)     DOMAIN  HUGE    y       EDOM
-acosh(x<1)     DOMAIN  NAN     y       EDOM    \" retval is 0.0/0.0
-atanh(|x|>1)   DOMAIN  NAN     y       EDOM    \" retval is 0.0/0.0
-atanh(|x|==1)  SING    (x>0.0)?        y       EDOM    \" retval is x/0.0
+acosh(x<1)     DOMAIN  NAN     y       EDOM    \" retval is 0.0/0.0
+atanh(|x|>1)   DOMAIN  NAN     y       EDOM    \" retval is 0.0/0.0
+atanh(|x|==1)  SING    (x>0.0)?        y       EDOM    \" retval is x/0.0
 \      \       HUGE_VAL :
 \      \       \-HUGE_VAL
 cosh(fin) o/f  OVERFLOW        HUGE    n       ERANGE
@@ -268,7 +270,7 @@ scalb() o/f OVERFLOW        (x>0.0) ?       n       ERANGE
 scalb() u/f    UNDERFLOW       copysign(       n       ERANGE
 \      \       \ \ 0.0,x)
 fmod(x,0)      DOMAIN  x       y       EDOM
-remainder(x,0) DOMAIN  NAN     y       EDOM    \" retval is 0.0/0.0
+remainder(x,0) DOMAIN  NAN     y       EDOM    \" retval is 0.0/0.0
 .TE
 .SH EXAMPLE
 The example program demonstrates the use of
@@ -382,7 +384,7 @@ matherr(struct exception *exc)
            (exc\->type == PLOSS) ?     "PLOSS" : "???",
             exc\->name);
     fprintf(stderr, "        args:   %f, %f\\n",
-            exc\->arg1, exc->arg2);
+            exc\->arg1, exc\->arg2);
     fprintf(stderr, "        retval: %f\\n", exc\->retval);
 
     if (change_retval)
@@ -398,7 +400,7 @@ main(int argc, char *argv[])
 
     if (argc < 2) {
         fprintf(stderr, "Usage: %s <argval>"
-                " [<matherr\-ret> [<new\-func-retval>]]\\n", argv[0]);
+                " [<matherr\-ret> [<new\-func\-retval>]]\\n", argv[0]);
         exit(EXIT_FAILURE);
     }
 
@@ -424,3 +426,12 @@ main(int argc, char *argv[])
 .BR fenv (3),
 .BR math_error (7),
 .BR standards (7)
+.SH COLOPHON
+This page is part of release 3.68 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.