summaryrefslogtreecommitdiff
path: root/manual/math.texi
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1996-12-08 08:01:13 +0000
committerUlrich Drepper <drepper@redhat.com>1996-12-08 08:01:13 +0000
commitf65fd747b440ae2d8a7481ecc50e668c5e4d0cc9 (patch)
treef64c3eeda0e9acc58b96c28ca852a014c822047f /manual/math.texi
parent42054ddb496798d9b936490cf0050f6619f86bc1 (diff)
update from main archive 961207cvs/libc-961208
Sun Dec 8 06:56:49 1996 Ulrich Drepper <drepper@cygnus.com> * io/getwd.c: Use PATH_MAX not LOCAL_PATH_MAX. Fix typo in comment. * stdlib/canonicalize.c: Correct bugs in last change. Patch by HJ Lu. * libio/Makefile (routines): Remove ioprims. (aux): Remove cleanup. Add IO_DEBUG option for .o files. * libio/cleanups.c: Removed. * libio/ioprims.c: Removed. * libio/filedoalloc.c: More updates from libg++-2.8b5. * libio/fileops.c: Likewise. * libio/genops.c: Likewise. * libio/iolibio.h: Likewise. * libio/iopopen.c: Likewise. * libio/iovsprintf.c: Likewise. * libio/iovsscanf.c: Likewise. * libio/libio.h: Likewise. * libio/libioP.h: Likewise. * libio/memstream.c: Likewise. * libio/strfile.h: Likewise. * libio/vasprintf.c: Likewise. * libio/vsnprintf.c: Likewise. * libio/stdio.h: Define P_tmpdir only is __USE_SVID. * manual/arith.texi: Change references to ANSI C to ISO C. * manual/conf.texi: Likewise. * manual/creature.texi: Likewise. * manual/ctype.texi: Likewise. * manual/errno.texi: Likewise. * manual/filesys.texi: Likewise. * manual/intro.texi. Likewise. * manual/io.texi: Likewise. * manual/lang.texi: Likewise. * manual/libc.texinfo: Likewise. * manual/locale.texi: Likewise. * manual/maint.texi: Likewise. * manual/mbyte.texi: Likewise. * manual/memory.texi: Likewise. * manual/process.texi: Likewise. * manual/process.texi: Likewise. * manual/search.texi: Likewise. * manual/setjmp.texi: Likewise. * manual/signal.texi: Likewise. * manual/startup.texi: Likewise. * manual/stdio.texi: Likewise. * manual/string.texi: Likewise. * manual/time.texi: Likewise. * manual/locale.texi: Remove description of LC_RESPONSE and add LC_MESSAGES. * Makefile (subdirs): Change malloc in $(malloc). * config.make.in: Add variable malloc which is initialized from @malloc@. * configure.in: Add new option --enable-new-malloc to use new malloc. This is the default on Linux. * sysdeps/unix/sysv/linux/configure.in: Define malloc to new-malloc by default. * new-malloc/Makefile: New file. Improved malloc implementation. * new-malloc/malloc.c: Likewise. * new-malloc/malloc.h: Likewise. * new-malloc/mallocbug.c: Likewise. * new-malloc/obstack.c: Likewise. * new-malloc/obstack.h: Likewise. * new-malloc/thread-m.h: Likewise. * time/Makefile: Compile ap.c with NO_MCHECK flag for now. * time/ap.c: Don't call mcheck if NO_MCHECK is defined. * resolv/Makefile: Add rule to rebuiild libresolv.so when libc.so changed. * stdio/feof.c: Update copyright. * stdio/stdio.h: Add field for lock to FILE structure. Add cast to *MAGIC constants to prevent warnings. * stdio-common/bug7.c: Correct test. Stream must not be closed twice. * stdlib/Makefile (routines): Add secure-getenv. * stdlib/secure-getenv.c: New file. __secure_getenv function moved to here from sysdeps/generic/getenv.c. Otherwise an application cannot replace the getenv function in the libc. * sysdeps/generic/getenv.c: Remove __secure_getenv function. * sysdeps/stub/getenv.c: Remove __secure_getenv alias. * sysdeps/mach/libc-lock.h: Define__libc_mutex_lock to __mutex_lock. * sysdeps/posix/fdopen.c: Update copyright. Don't use EXFUN. * time/test-tz.c: Comment fifth test out. PROBLEM. * time/tzset.c: De-ANSI-declfy. (__tzset): Don't increment pointer tz when no DST information is given. Sat Dec 7 23:47:54 1996 Ulrich Drepper <drepper@cygnus.com> * sysdeps/mach/libc-lock.h [_LIBC]: Add definition of __libc_mutex_lock. Patch by Thomas Bushnell. * sysdeps/unix/sysv/linux/timebits.h: Load <asm/param.h> only if __USE_MISC. * sysdeps/unix/sysv/linux/Dist: Add llseek.c. Sat Dec 7 12:18:56 1996 Ulrich Drepper <drepper@cygnus.com> * time/strftime (%c format): Remove %Z from default string. Reported by Paul Eggert * io/getwd.c: Don't apply getcwd on user supplied buffer.
Diffstat (limited to 'manual/math.texi')
-rw-r--r--manual/math.texi54
1 files changed, 27 insertions, 27 deletions
diff --git a/manual/math.texi b/manual/math.texi
index 7de6d169ac..870edd54bf 100644
--- a/manual/math.texi
+++ b/manual/math.texi
@@ -71,12 +71,12 @@ domain or range errors. In particular, this means that you won't see
Handling}, for more information about signals.)
@comment math.h
-@comment ANSI
+@comment ISO
@deftypevr Macro double HUGE_VAL
An expression representing a particular very large number. On machines
-that use @w{IEEE 754} floating point format, the value is ``infinity''.
-On other machines, it's typically the largest positive number that can
-be represented.
+that use @w{IEEE 754}/@w{IEEE 854} floating point format, the value is
+``infinity''. On other machines, it's typically the largest positive
+number that can be represented.
The value of this macro is used as the return value from various
mathematical @code{double} returning functions in overflow situations.
@@ -132,21 +132,21 @@ You can also compute the value of pi with the expression @code{acos
@comment math.h
-@comment ANSI
+@comment ISO
@deftypefun double sin (double @var{x})
This function returns the sine of @var{x}, where @var{x} is given in
radians. The return value is in the range @code{-1} to @code{1}.
@end deftypefun
@comment math.h
-@comment ANSI
+@comment ISO
@deftypefun double cos (double @var{x})
This function returns the cosine of @var{x}, where @var{x} is given in
radians. The return value is in the range @code{-1} to @code{1}.
@end deftypefun
@comment math.h
-@comment ANSI
+@comment ISO
@deftypefun double tan (double @var{x})
This function returns the tangent of @var{x}, where @var{x} is given in
radians.
@@ -172,7 +172,7 @@ which are the inverses of the sine, cosine and tangent functions,
respectively.
@comment math.h
-@comment ANSI
+@comment ISO
@deftypefun double asin (double @var{x})
This function computes the arc sine of @var{x}---that is, the value whose
sine is @var{x}. The value is in units of radians. Mathematically,
@@ -185,7 +185,7 @@ over the domain @code{-1} to @code{1}.
@end deftypefun
@comment math.h
-@comment ANSI
+@comment ISO
@deftypefun double acos (double @var{x})
This function computes the arc cosine of @var{x}---that is, the value
whose cosine is @var{x}. The value is in units of radians.
@@ -199,7 +199,7 @@ over the domain @code{-1} to @code{1}.
@comment math.h
-@comment ANSI
+@comment ISO
@deftypefun double atan (double @var{x})
This function computes the arc tangent of @var{x}---that is, the value
whose tangent is @var{x}. The value is in units of radians.
@@ -209,7 +209,7 @@ returned is the one between @code{-pi/2} and @code{pi/2}
@end deftypefun
@comment math.h
-@comment ANSI
+@comment ISO
@deftypefun double atan2 (double @var{y}, double @var{x})
This is the two argument arc tangent function. It is similar to computing
the arc tangent of @var{y}/@var{x}, except that the signs of both arguments
@@ -237,7 +237,7 @@ case.
@cindex logarithm functions
@comment math.h
-@comment ANSI
+@comment ISO
@deftypefun double exp (double @var{x})
The @code{exp} function returns the value of e (the base of natural
logarithms) raised to power @var{x}.
@@ -247,7 +247,7 @@ magnitude of the result is too large to be representable.
@end deftypefun
@comment math.h
-@comment ANSI
+@comment ISO
@deftypefun double log (double @var{x})
This function returns the natural logarithm of @var{x}. @code{exp (log
(@var{x}))} equals @var{x}, exactly in mathematics and approximately in
@@ -266,7 +266,7 @@ The argument is zero. The log of zero is not defined.
@end deftypefun
@comment math.h
-@comment ANSI
+@comment ISO
@deftypefun double log10 (double @var{x})
This function returns the base-10 logarithm of @var{x}. Except for the
different base, it is similar to the @code{log} function. In fact,
@@ -274,7 +274,7 @@ different base, it is similar to the @code{log} function. In fact,
@end deftypefun
@comment math.h
-@comment ANSI
+@comment ISO
@deftypefun double pow (double @var{base}, double @var{power})
This is a general exponentiation function, returning @var{base} raised
to @var{power}.
@@ -294,7 +294,7 @@ An underflow or overflow condition was detected in the result.
@cindex square root function
@comment math.h
-@comment ANSI
+@comment ISO
@deftypefun double sqrt (double @var{x})
This function returns the nonnegative square root of @var{x}.
@@ -346,7 +346,7 @@ The functions in this section are related to the exponential functions;
see @ref{Exponents and Logarithms}.
@comment math.h
-@comment ANSI
+@comment ISO
@deftypefun double sinh (double @var{x})
The @code{sinh} function returns the hyperbolic sine of @var{x}, defined
mathematically as @w{@code{exp (@var{x}) - exp (-@var{x}) / 2}}. The
@@ -355,7 +355,7 @@ function fails, and sets @code{errno} to @code{ERANGE}, if the value of
@end deftypefun
@comment math.h
-@comment ANSI
+@comment ISO
@deftypefun double cosh (double @var{x})
The @code{cosh} function returns the hyperbolic cosine of @var{x},
defined mathematically as @w{@code{exp (@var{x}) + exp (-@var{x}) / 2}}.
@@ -364,7 +364,7 @@ of @var{x} is too large; that is, if overflow occurs.
@end deftypefun
@comment math.h
-@comment ANSI
+@comment ISO
@deftypefun double tanh (double @var{x})
This function returns the hyperbolic tangent of @var{x}, whose
mathematical definition is @w{@code{sinh (@var{x}) / cosh (@var{x})}}.
@@ -424,27 +424,27 @@ generator. There is no standard meaning for a particular seed value;
the same seed, used in different C libraries or on different CPU types,
will give you different random numbers.
-The GNU library supports the standard ANSI C random number functions
+The GNU library supports the standard @w{ISO C} random number functions
plus another set derived from BSD. We recommend you use the standard
ones, @code{rand} and @code{srand}.
@menu
-* ANSI Random:: @code{rand} and friends.
+* ISO Random:: @code{rand} and friends.
* BSD Random:: @code{random} and friends.
@end menu
-@node ANSI Random
-@subsection ANSI C Random Number Functions
+@node ISO Random
+@subsection ISO C Random Number Functions
This section describes the random number functions that are part of
-the ANSI C standard.
+the @w{ISO C} standard.
To use these facilities, you should include the header file
@file{stdlib.h} in your program.
@pindex stdlib.h
@comment stdlib.h
-@comment ANSI
+@comment ISO
@deftypevr Macro int RAND_MAX
The value of this macro is an integer constant expression that
represents the maximum possible value returned by the @code{rand}
@@ -454,14 +454,14 @@ may be as low as @code{32767}.
@end deftypevr
@comment stdlib.h
-@comment ANSI
+@comment ISO
@deftypefun int rand ()
The @code{rand} function returns the next pseudo-random number in the
series. The value is in the range from @code{0} to @code{RAND_MAX}.
@end deftypefun
@comment stdlib.h
-@comment ANSI
+@comment ISO
@deftypefun void srand (unsigned int @var{seed})
This function establishes @var{seed} as the seed for a new series of
pseudo-random numbers. If you call @code{rand} before a seed has been