2003-10-20 Bob Wilson <bob.wilson@acm.org>

* libc/locale/locale.c: Use double quotes in code.
	* libc/locale/locale.tex: Likewise.
	* libc/libc.texinfo: Hyphenate "floating-point".
	* libc/machine/necv70/necv70.tex: Likewise.
	* libc/stdio/sprintf.c: Likewise.
	* libc/stdio/sscanf.c: Likewise.
	* libc/stdlib/atof.c: Likewise.
	* libc/stdlib/ldtoa.c: Fix comment typo.
	* libc/stdlib/div.c: Use @ifnottex instead of @ifinfo.
	* libc/stdlib/ldiv.c: Likewise.
	* libm/common/s_expm1.c: Likewise.
	* libm/common/s_ilogb.c: Hyphenate "floating-point".  Use "nonzero".
	* libm/common/s_infinity: Hyphenate "double- and single-precision".
	* libm/common/s_nan.c: Likewise.  Also correct the FUNCTION summary.
	* libm/common/s_nextafter.c: Fix typo.  Hyphenate "double-precision"
	and "floating-point".
	* libm/common/s_scalbn.c: Correct the FUNCTION summary.
	* libm/math/e_pow.c: Fix comment typo.
	* libm/math/math.tex: Hyphenate "single-precision" and "floating-point".
	* libm/math/s_asinh.c: Use @ifnottex instead of @ifinfo.
	* libm/math/s_atan.c: Likewise.
	* libm/math/s_frexp.c: Likewise.  Also use "nonzero".
	* libm/math/s_isnan.c: Hyphenate "single-precision" and
	"floating-point".  Use "nonzero".
	* libm/math/s_ldexp.c: Use @ifnottex instead of @ifinfo.
	* libm/math/w_acos.c: Likewise.
	* libm/math/w_acosh.c: Likewise.
	* libm/math/w_asin.c: Likewise.
	* libm/math/w_atan2.c: Likewise.
	* libm/math/w_atanh.c: Likewise.
	* libm/math/w_cosh.c: Likewise.
	* libm/math/w_exp.c: Likewise.
	* libm/math/w_exp2.c: Likewise.  Add missing @end and missing @tex
	version of 2^x in the description.
	* libm/math/w_fmod.c: Use @ifnottex instead of @ifinfo.
	* libm/math/w_gamma.c: Likewise.
	* libm/math/w_hypot.c: Likewise.
	* libm/math/w_j0.c: Likewise.
	* libm/math/w_sinh.c: Likewise.
	* libm/math/w_pow.c: Replace "exp1.0nt" with "exponent".
	* libm/mathfp/mathfp.tex: Hyphenate "single-precision" and
	"floating-point".
	* libm/mathfp/e_acosh.c: Use @ifnottex instead of @ifinfo.
	* libm/mathfp/e_atanh.c: Likewise.
	* libm/mathfp/e_hypot.c: Likewise.
	* libm/mathfp/er_lgamma.c: Likewise.
	* libm/mathfp/s_acos.c: Likewise.
	* libm/mathfp/s_asine.c: Likewise.
	* libm/mathfp/s_asinh.c: Likewise.
	* libm/mathfp/s_atan.c: Likewise.
	* libm/mathfp/s_atan2.c: Likewise.
	* libm/mathfp/s_atangent.c: Likewise.
	* libm/mathfp/s_cosh.c: Likewise.
	* libm/mathfp/s_exp.c: Likewise.
	* libm/mathfp/s_fmod.c: Likewise.
	* libm/mathfp/s_frexp.c: Likewise.  Also use "nonzero".
	* libm/mathfp/s_isnan.c: Hyphenate "single-precision" and
	"floating-point".  Use "nonzero".
	* libm/math/s_pow.c: Replace "exp1.0nt" with "exponent".
	* libm/mathfp/s_ldexp.c: Use @ifnottex instead of @ifinfo.
	* libm/mathfp/s_sineh.c: Likewise.
	* libm/mathfp/w_jn.c: Likewise.
This commit is contained in:
Jeff Johnston 2003-10-20 18:46:38 +00:00
parent d775e6b7ae
commit 76a7df5256
58 changed files with 214 additions and 145 deletions

View File

@ -1,3 +1,68 @@
2003-10-20 Bob Wilson <bob.wilson@acm.org>
* libc/locale/locale.c: Use double quotes in code.
* libc/locale/locale.tex: Likewise.
* libc/libc.texinfo: Hyphenate "floating-point".
* libc/machine/necv70/necv70.tex: Likewise.
* libc/stdio/sprintf.c: Likewise.
* libc/stdio/sscanf.c: Likewise.
* libc/stdlib/atof.c: Likewise.
* libc/stdlib/ldtoa.c: Fix comment typo.
* libc/stdlib/div.c: Use @ifnottex instead of @ifinfo.
* libc/stdlib/ldiv.c: Likewise.
* libm/common/s_expm1.c: Likewise.
* libm/common/s_ilogb.c: Hyphenate "floating-point". Use "nonzero".
* libm/common/s_infinity: Hyphenate "double- and single-precision".
* libm/common/s_nan.c: Likewise. Also correct the FUNCTION summary.
* libm/common/s_nextafter.c: Fix typo. Hyphenate "double-precision"
and "floating-point".
* libm/common/s_scalbn.c: Correct the FUNCTION summary.
* libm/math/e_pow.c: Fix comment typo.
* libm/math/math.tex: Hyphenate "single-precision" and "floating-point".
* libm/math/s_asinh.c: Use @ifnottex instead of @ifinfo.
* libm/math/s_atan.c: Likewise.
* libm/math/s_frexp.c: Likewise. Also use "nonzero".
* libm/math/s_isnan.c: Hyphenate "single-precision" and
"floating-point". Use "nonzero".
* libm/math/s_ldexp.c: Use @ifnottex instead of @ifinfo.
* libm/math/w_acos.c: Likewise.
* libm/math/w_acosh.c: Likewise.
* libm/math/w_asin.c: Likewise.
* libm/math/w_atan2.c: Likewise.
* libm/math/w_atanh.c: Likewise.
* libm/math/w_cosh.c: Likewise.
* libm/math/w_exp.c: Likewise.
* libm/math/w_exp2.c: Likewise. Add missing @end and missing @tex
version of 2^x in the description.
* libm/math/w_fmod.c: Use @ifnottex instead of @ifinfo.
* libm/math/w_gamma.c: Likewise.
* libm/math/w_hypot.c: Likewise.
* libm/math/w_j0.c: Likewise.
* libm/math/w_sinh.c: Likewise.
* libm/math/w_pow.c: Replace "exp1.0nt" with "exponent".
* libm/mathfp/mathfp.tex: Hyphenate "single-precision" and
"floating-point".
* libm/mathfp/e_acosh.c: Use @ifnottex instead of @ifinfo.
* libm/mathfp/e_atanh.c: Likewise.
* libm/mathfp/e_hypot.c: Likewise.
* libm/mathfp/er_lgamma.c: Likewise.
* libm/mathfp/s_acos.c: Likewise.
* libm/mathfp/s_asine.c: Likewise.
* libm/mathfp/s_asinh.c: Likewise.
* libm/mathfp/s_atan.c: Likewise.
* libm/mathfp/s_atan2.c: Likewise.
* libm/mathfp/s_atangent.c: Likewise.
* libm/mathfp/s_cosh.c: Likewise.
* libm/mathfp/s_exp.c: Likewise.
* libm/mathfp/s_fmod.c: Likewise.
* libm/mathfp/s_frexp.c: Likewise. Also use "nonzero".
* libm/mathfp/s_isnan.c: Hyphenate "single-precision" and
"floating-point". Use "nonzero".
* libm/math/s_pow.c: Replace "exp1.0nt" with "exponent".
* libm/mathfp/s_ldexp.c: Use @ifnottex instead of @ifinfo.
* libm/mathfp/s_sineh.c: Likewise.
* libm/mathfp/w_jn.c: Likewise.
2003-10-15 Alexandre Oliva <aoliva@redhat.com> 2003-10-15 Alexandre Oliva <aoliva@redhat.com>
* Makefile.am: Add $(MAKE) comments to multido and multiclean * Makefile.am: Add $(MAKE) comments to multido and multiclean

View File

@ -36,7 +36,7 @@ University of California, Berkeley and its contributors.
libc includes software developed by Martin Jackson, Graham Haley libc includes software developed by Martin Jackson, Graham Haley
and Steve Chamberlain of Tadpole Technology and released to Cygnus. and Steve Chamberlain of Tadpole Technology and released to Cygnus.
libc uses floating point converstion software developed at AT&T, which libc uses floating-point conversion software developed at AT&T, which
includes this copyright information: includes this copyright information:
The author of this software is David M. Gay. The author of this software is David M. Gay.
@ -106,7 +106,7 @@ University of California, Berkeley and its contributors.
@file{libc} includes software developed by Martin Jackson, Graham Haley @file{libc} includes software developed by Martin Jackson, Graham Haley
and Steve Chamberlain of Tadpole Technology and released to Cygnus. and Steve Chamberlain of Tadpole Technology and released to Cygnus.
@file{libc} uses floating point conversion software developed at AT&T, @file{libc} uses floating-point conversion software developed at AT&T,
which includes this copyright information: which includes this copyright information:
@cartouche @cartouche

View File

@ -42,17 +42,17 @@ execution environment for international collating and formatting
information; <<localeconv>> reports on the settings of the current information; <<localeconv>> reports on the settings of the current
locale. locale.
This is a minimal implementation, supporting only the required <<``C''>> This is a minimal implementation, supporting only the required <<"C">>
value for <[locale]>; strings representing other locales are not value for <[locale]>; strings representing other locales are not
honored unless MB_CAPABLE is defined in which case three new honored unless MB_CAPABLE is defined in which case three new
extensions are allowed for LC_CTYPE or LC_MESSAGES only: <<''C-JIS''>>, extensions are allowed for LC_CTYPE or LC_MESSAGES only: <<"C-JIS">>,
<<''C-EUCJP''>>, <<''C-SJIS''>>, or <<''C-ISO-8859-1''>>. (<<``''>> is <<"C-EUCJP">>, <<"C-SJIS">>, or <<"C-ISO-8859-1">>. (<<"">> is
also accepted; it represents the default locale also accepted; it represents the default locale
for an implementation, here equivalent to <<``C''>>.) for an implementation, here equivalent to <<"C">>.)
If you use <<NULL>> as the <[locale]> argument, <<setlocale>> returns If you use <<NULL>> as the <[locale]> argument, <<setlocale>> returns
a pointer to the string representing the current locale (always a pointer to the string representing the current locale (always
<<``C''>> in this implementation). The acceptable values for <<"C">> in this implementation). The acceptable values for
<[category]> are defined in `<<locale.h>>' as macros beginning with <[category]> are defined in `<<locale.h>>' as macros beginning with
<<"LC_">>, but this implementation does not check the values you pass <<"LC_">>, but this implementation does not check the values you pass
in the <[category]> argument. in the <[category]> argument.
@ -67,7 +67,7 @@ in effect.
RETURNS RETURNS
<<setlocale>> returns either a pointer to a string naming the locale <<setlocale>> returns either a pointer to a string naming the locale
currently in effect (always <<``C''>> for this implementation, or, if currently in effect (always <<"C">> for this implementation, or, if
the locale request cannot be honored, <<NULL>>. the locale request cannot be honored, <<NULL>>.
<<localeconv>> returns a pointer to a structure of type <<lconv>>, <<localeconv>> returns a pointer to a structure of type <<lconv>>,

View File

@ -6,10 +6,10 @@ collating sequences and formatting conventions) that may be different
depending on location or culture. The @code{"C"} locale is the only depending on location or culture. The @code{"C"} locale is the only
one defined in the ANSI C standard. one defined in the ANSI C standard.
This is a minimal implementation, supporting only the required @code{``C''} This is a minimal implementation, supporting only the required @code{"C"}
value for locale; strings representing other locales are not value for locale; strings representing other locales are not
honored. (@code{``''} is also accepted; it represents the default locale honored. (@code{""} is also accepted; it represents the default locale
for an implementation, here equivalent to @code{``C''}. for an implementation, here equivalent to @code{"C"}.
@file{locale.h} defines the structure @code{lconv} to collect the @file{locale.h} defines the structure @code{lconv} to collect the
@ -18,13 +18,13 @@ information on a locale, with the following fields:
@table @code @table @code
@item char *decimal_point @item char *decimal_point
The decimal point character used to format ``ordinary'' numbers (all The decimal point character used to format ``ordinary'' numbers (all
numbers except those referring to amounts of money). @code{``.''} in the numbers except those referring to amounts of money). @code{"."} in the
C locale. C locale.
@item char *thousands_sep @item char *thousands_sep
The character (if any) used to separate groups of digits, when The character (if any) used to separate groups of digits, when
formatting ordinary numbers. formatting ordinary numbers.
@code{``''} in the C locale. @code{""} in the C locale.
@item char *grouping @item char *grouping
Specifications for how many digits to group (if any grouping is done at Specifications for how many digits to group (if any grouping is done at
@ -33,36 +33,36 @@ character in the string represents the number of digits for the next
group, and a value of @code{0} (that is, the string's trailing group, and a value of @code{0} (that is, the string's trailing
@code{NULL}) means to continue grouping digits using the last value @code{NULL}) means to continue grouping digits using the last value
specified. Use @code{CHAR_MAX} to indicate that no further grouping is specified. Use @code{CHAR_MAX} to indicate that no further grouping is
desired. @code{``''} in the C locale. desired. @code{""} in the C locale.
@item char *int_curr_symbol @item char *int_curr_symbol
The international currency symbol (first three characters), if any, and The international currency symbol (first three characters), if any, and
the character used to separate it from numbers. the character used to separate it from numbers.
@code{``''} in the C locale. @code{""} in the C locale.
@item char *currency_symbol @item char *currency_symbol
The local currency symbol, if any. The local currency symbol, if any.
@code{``''} in the C locale. @code{""} in the C locale.
@item char *mon_decimal_point @item char *mon_decimal_point
The symbol used to delimit fractions in amounts of money. The symbol used to delimit fractions in amounts of money.
@code{``''} in the C locale. @code{""} in the C locale.
@item char *mon_thousands_sep @item char *mon_thousands_sep
Similar to @code{thousands_sep}, but used for amounts of money. Similar to @code{thousands_sep}, but used for amounts of money.
@code{``''} in the C locale. @code{""} in the C locale.
@item char *mon_grouping @item char *mon_grouping
Similar to @code{grouping}, but used for amounts of money. Similar to @code{grouping}, but used for amounts of money.
@code{``''} in the C locale. @code{""} in the C locale.
@item char *positive_sign @item char *positive_sign
A string to flag positive amounts of money when formatting. A string to flag positive amounts of money when formatting.
@code{``''} in the C locale. @code{""} in the C locale.
@item char *negative_sign @item char *negative_sign
A string to flag negative amounts of money when formatting. A string to flag negative amounts of money when formatting.
@code{``''} in the C locale. @code{""} in the C locale.
@item char int_frac_digits @item char int_frac_digits
The number of digits to display when formatting amounts of money to The number of digits to display when formatting amounts of money to

View File

@ -1,8 +1,8 @@
@node machine,,syscalls,Top @node machine,,syscalls,Top
@chapter NEC V70 Specific Functions @chapter NEC V70 Specific Functions
The NEC V70 has machine instructions for fast IEEE floating point, The NEC V70 has machine instructions for fast IEEE floating-point
including operations normally provided by the library. arithmetic, including operations normally provided by the library.
When you use the @file{/usr/include/fastmath.h} header file, the When you use the @file{/usr/include/fastmath.h} header file, the
names of several library math functions are redefined to call the names of several library math functions are redefined to call the
@ -43,7 +43,7 @@ Also, the library provides true @code{float} entry points. The
@code{fast_sinf} entry point really performs a @code{fsin.s} @code{fast_sinf} entry point really performs a @code{fsin.s}
operation. Because of this, the instructions are only useful when operation. Because of this, the instructions are only useful when
using code compiled with an ANSI C compiler. The prototypes using code compiled with an ANSI C compiler. The prototypes
and definitions for the floating point versions of the math library and definitions for the floating-point versions of the math library
routines are only defined if compiling a module with an ANSI C routines are only defined if compiling a module with an ANSI C
compiler. compiler.

View File

@ -250,24 +250,24 @@ DESCRIPTION
o f o f
prints a signed value of the form <<[-]9999.9999>>; takes prints a signed value of the form <<[-]9999.9999>>; takes
a floating point number a floating-point number
o e o e
prints a signed value of the form <<[-]9.9999e[+|-]999>>; takes a prints a signed value of the form <<[-]9.9999e[+|-]999>>; takes a
floating point number floating-point number
o E o E
prints the same way as <<e>>, but using <<E>> to introduce the prints the same way as <<e>>, but using <<E>> to introduce the
exponent; takes a floating point number exponent; takes a floating-point number
o g o g
prints a signed value in either <<f>> or <<e>> form, based on given prints a signed value in either <<f>> or <<e>> form, based on given
value and precision---trailing zeros and the decimal point are value and precision---trailing zeros and the decimal point are
printed only if necessary; takes a floating point number printed only if necessary; takes a floating-point number
o G o G
prints the same way as <<g>>, but using <<E>> for the exponent if an prints the same way as <<g>>, but using <<E>> for the exponent if an
exponent is needed; takes a floating point number exponent is needed; takes a floating-point number
o n o n
stores (in the same object) a count of the characters written; stores (in the same object) a count of the characters written;

View File

@ -234,11 +234,11 @@ DESCRIPTION
<<(int *arg)>>. <<(int *arg)>>.
o e, f, g o e, f, g
Read a floating point number into the corresponding <[arg]>: Read a floating-point number into the corresponding <[arg]>:
<<(float *arg)>>. <<(float *arg)>>.
o E, F, G o E, F, G
Read a floating point number into the corresponding <[arg]>: Read a floating-point number into the corresponding <[arg]>:
<<(double *arg)>>. <<(double *arg)>>.
o i o i

View File

@ -25,7 +25,7 @@ DESCRIPTION
<<atoff>> converts the initial portion of a string to a <<float>>. <<atoff>> converts the initial portion of a string to a <<float>>.
The functions parse the character string <[s]>, The functions parse the character string <[s]>,
locating a substring which can be converted to a floating point locating a substring which can be converted to a floating-point
value. The substring must match the format: value. The substring must match the format:
. [+|-]<[digits]>[.][<[digits]>][(e|E)[+|-]<[digits]>] . [+|-]<[digits]>[.][<[digits]>][(e|E)[+|-]<[digits]>]
The substring converted is the longest initial The substring converted is the longest initial

View File

@ -19,9 +19,9 @@ Divide
@tex @tex
$n/d$, $n/d$,
@end tex @end tex
@ifinfo @ifnottex
<[n]>/<[d]>, <[n]>/<[d]>,
@end ifinfo @end ifnottex
returning quotient and remainder as two integers in a structure <<div_t>>. returning quotient and remainder as two integers in a structure <<div_t>>.
RETURNS RETURNS

View File

@ -19,9 +19,9 @@ Divide
@tex @tex
$n/d$, $n/d$,
@end tex @end tex
@ifinfo @ifnottex
<[n]>/<[d]>, <[n]>/<[d]>,
@end ifinfo @end ifnottex
returning quotient and remainder as two long integers in a structure <<ldiv_t>>. returning quotient and remainder as two long integers in a structure <<ldiv_t>>.
RETURNS RETURNS

View File

@ -44,7 +44,7 @@ void _IO_ldtostr(long double *, char *, int, int, char);
/* Maximum exponent digits - base 10 */ /* Maximum exponent digits - base 10 */
#define MAX_EXP_DIGITS 5 #define MAX_EXP_DIGITS 5
/* Control structure for long doublue conversion including rounding precision values. /* Control structure for long double conversion including rounding precision values.
* rndprc can be set to 80 (if NE=6), 64, 56, 53, or 24 bits. * rndprc can be set to 80 (if NE=6), 64, 56, 53, or 24 bits.
*/ */
typedef struct typedef struct

View File

@ -35,9 +35,9 @@ TRAD_SYNOPSIS
DESCRIPTION DESCRIPTION
<<expm1>> and <<expm1f>> calculate the exponential of <[x]> <<expm1>> and <<expm1f>> calculate the exponential of <[x]>
and subtract 1, that is, and subtract 1, that is,
@ifinfo @ifnottex
e raised to the power <[x]> minus 1 (where e e raised to the power <[x]> minus 1 (where e
@end ifinfo @end ifnottex
@tex @tex
$e^x - 1$ (where $e$ $e^x - 1$ (where $e$
@end tex @end tex

View File

@ -13,7 +13,7 @@
/* /*
FUNCTION FUNCTION
<<ilogb>>, <<ilogbf>>---get exponent of floating point number <<ilogb>>, <<ilogbf>>---get exponent of floating-point number
INDEX INDEX
ilogb ilogb
INDEX INDEX
@ -35,7 +35,7 @@ TRAD_SYNOPSIS
DESCRIPTION DESCRIPTION
All non zero, normal numbers can be described as <[m]> * All nonzero, normal numbers can be described as <[m]> *
2**<[p]>. <<ilogb>> and <<ilogbf>> examine the argument 2**<[p]>. <<ilogb>> and <<ilogbf>> examine the argument
<[val]>, and return <[p]>. The functions <<frexp>> and <[val]>, and return <[p]>. The functions <<frexp>> and
<<frexpf>> are similar to <<ilogb>> and <<ilogbf>>, but also <<frexpf>> are similar to <<ilogb>> and <<ilogbf>>, but also
@ -44,7 +44,7 @@ DESCRIPTION
RETURNS RETURNS
<<ilogb>> and <<ilogbf>> return the power of two used to form the <<ilogb>> and <<ilogbf>> return the power of two used to form the
floating point argument. If <[val]> is <<0>>, they return <<- floating-point argument. If <[val]> is <<0>>, they return <<-
INT_MAX>> (<<INT_MAX>> is defined in limits.h). If <[val]> is INT_MAX>> (<<INT_MAX>> is defined in limits.h). If <[val]> is
infinite, or NaN, they return <<INT_MAX>>. infinite, or NaN, they return <<INT_MAX>>.

View File

@ -25,8 +25,8 @@ TRAD_SYNOPSIS
DESCRIPTION DESCRIPTION
<<infinity>> and <<infinityf>> return the special number IEEE <<infinity>> and <<infinityf>> return the special number IEEE
infinity in double and single precision arithmetic infinity in double- and single-precision arithmetic
respectivly. respectively.
QUICKREF QUICKREF
infinity - pure infinity - pure

View File

@ -5,7 +5,7 @@
/* /*
FUNCTION FUNCTION
<<nan>>, <<nanf>>---representation of infinity <<nan>>, <<nanf>>---representation of ``Not a Number''
INDEX INDEX
nan nan
@ -25,7 +25,7 @@ TRAD_SYNOPSIS
DESCRIPTION DESCRIPTION
<<nan>> and <<nanf>> return an IEEE NaN (Not a Number) in <<nan>> and <<nanf>> return an IEEE NaN (Not a Number) in
double and single precision arithmetic respectivly. The double- and single-precision arithmetic respectively. The
argument is currently disregarded. argument is currently disregarded.
QUICKREF QUICKREF

View File

@ -38,7 +38,7 @@ TRAD_SYNOPSIS
DESCRIPTION DESCRIPTION
<<nextafter>> returns the double) precision floating point number <<nextafter>> returns the double-precision floating-point number
closest to <[val]> in the direction toward <[dir]>. <<nextafterf>> closest to <[val]> in the direction toward <[dir]>. <<nextafterf>>
performs the same operation in single precision. For example, performs the same operation in single precision. For example,
<<nextafter(0.0,1.0)>> returns the smallest positive number which is <<nextafter(0.0,1.0)>> returns the smallest positive number which is

View File

@ -13,7 +13,7 @@
/* /*
FUNCTION FUNCTION
<<scalbn>>, <<scalbnf>>---scale by integer <<scalbn>>, <<scalbnf>>---scale by power of two
INDEX INDEX
scalbn scalbn
INDEX INDEX

View File

@ -18,7 +18,7 @@
* 1. Compute and return log2(x) in two pieces: * 1. Compute and return log2(x) in two pieces:
* log2(x) = w1 + w2, * log2(x) = w1 + w2,
* where w1 has 53-24 = 29 bit trailing zeros. * where w1 has 53-24 = 29 bit trailing zeros.
* 2. Perform y*log2(x) = n+y' by simulating muti-precision * 2. Perform y*log2(x) = n+y' by simulating multi-precision
* arithmetic, where |y'|<=0.5. * arithmetic, where |y'|<=0.5.
* 3. Return x**y = 2**n*exp(y'*log2) * 3. Return x**y = 2**n*exp(y'*log2)
* *

View File

@ -102,7 +102,7 @@ In X/Open mode, @code{errno} is set correctly, and @code{matherr} is
called, but warning message are not printed. called, but warning message are not printed.
In SVID mode, functions which overflow return 3.40282346638528860e+38, In SVID mode, functions which overflow return 3.40282346638528860e+38,
the maximum single precision floating point value, rather than infinity. the maximum single-precision floating-point value, rather than infinity.
Also, @code{errno} is set correctly, @code{matherr} is called, and, if Also, @code{errno} is set correctly, @code{matherr} is called, and, if
@code{matherr} returns 0, warning messages are printed for some errors. @code{matherr} returns 0, warning messages are printed for some errors.
For example, by default @samp{log(-1.0)} writes this message on standard For example, by default @samp{log(-1.0)} writes this message on standard

View File

@ -36,9 +36,9 @@ TRAD_SYNOPSIS
DESCRIPTION DESCRIPTION
<<asinh>> calculates the inverse hyperbolic sine of <[x]>. <<asinh>> calculates the inverse hyperbolic sine of <[x]>.
<<asinh>> is defined as <<asinh>> is defined as
@ifinfo @ifnottex
. sgn(<[x]>) * log(abs(<[x]>) + sqrt(1+<[x]>*<[x]>)) . sgn(<[x]>) * log(abs(<[x]>) + sqrt(1+<[x]>*<[x]>))
@end ifinfo @end ifnottex
@tex @tex
$$sign(x) \times ln\Bigl(|x| + \sqrt{1+x^2}\Bigr)$$ $$sign(x) \times ln\Bigl(|x| + \sqrt{1+x^2}\Bigr)$$
@end tex @end tex

View File

@ -41,9 +41,9 @@ DESCRIPTION
<<atanf>> is identical to <<atan>>, save that it operates on <<floats>>. <<atanf>> is identical to <<atan>>, save that it operates on <<floats>>.
RETURNS RETURNS
@ifinfo @ifnottex
<<atan>> returns a value in radians, in the range of -pi/2 to pi/2. <<atan>> returns a value in radians, in the range of -pi/2 to pi/2.
@end ifinfo @end ifnottex
@tex @tex
<<atan>> returns a value in radians, in the range of $-\pi/2$ to $\pi/2$. <<atan>> returns a value in radians, in the range of $-\pi/2$ to $\pi/2$.
@end tex @end tex

View File

@ -36,17 +36,17 @@ TRAD_SYNOPSIS
DESCRIPTION DESCRIPTION
All non zero, normal numbers can be described as <[m]> * 2**<[p]>. All nonzero, normal numbers can be described as <[m]> * 2**<[p]>.
<<frexp>> represents the double <[val]> as a mantissa <[m]> <<frexp>> represents the double <[val]> as a mantissa <[m]>
and a power of two <[p]>. The resulting mantissa will always and a power of two <[p]>. The resulting mantissa will always
be greater than or equal to <<0.5>>, and less than <<1.0>> (as be greater than or equal to <<0.5>>, and less than <<1.0>> (as
long as <[val]> is nonzero). The power of two will be stored long as <[val]> is nonzero). The power of two will be stored
in <<*>><[exp]>. in <<*>><[exp]>.
@ifinfo @ifnottex
<[m]> and <[p]> are calculated so that <[m]> and <[p]> are calculated so that
<[val]> is <[m]> times <<2>> to the power <[p]>. <[val]> is <[m]> times <<2>> to the power <[p]>.
@end ifinfo @end ifnottex
@tex @tex
<[m]> and <[p]> are calculated so that <[m]> and <[p]> are calculated so that
$ val = m \times 2^p $. $ val = m \times 2^p $.

View File

@ -55,7 +55,7 @@ TRAD_SYNOPSIS
DESCRIPTION DESCRIPTION
These functions provide information on the floating point These functions provide information on the floating-point
argument supplied. argument supplied.
There are five major number formats - There are five major number formats -
@ -63,13 +63,13 @@ DESCRIPTION
o zero o zero
a number which contains all zero bits. a number which contains all zero bits.
o subnormal o subnormal
Is used to represent number with a zero exponent, but a non zero fraction. Is used to represent number with a zero exponent, but a nonzero fraction.
o normal o normal
A number with an exponent, and a fraction A number with an exponent, and a fraction
o infinity o infinity
A number with an all 1's exponent and a zero fraction. A number with an all 1's exponent and a zero fraction.
o NAN o NAN
A number with an all 1's exponent and a non zero fraction. A number with an all 1's exponent and a nonzero fraction.
o- o-
@ -79,7 +79,7 @@ DESCRIPTION
The <<isnanf>>, <<isinff>> and <<finitef>> perform the same The <<isnanf>>, <<isinff>> and <<finitef>> perform the same
operations as their <<isnan>>, <<isinf>> and <<finite>> operations as their <<isnan>>, <<isinf>> and <<finite>>
counterparts, but on single precision floating point numbers. counterparts, but on single-precision floating-point numbers.
QUICKREF QUICKREF
isnan - pure isnan - pure

View File

@ -39,9 +39,9 @@ TRAD_SYNOPSIS
DESCRIPTION DESCRIPTION
<<ldexp>> calculates the value <<ldexp>> calculates the value
@ifinfo @ifnottex
<[val]> times 2 to the power <[exp]>. <[val]> times 2 to the power <[exp]>.
@end ifinfo @end ifnottex
@tex @tex
$val\times 2^{exp}$. $val\times 2^{exp}$.
@end tex @end tex

View File

@ -44,9 +44,9 @@ DESCRIPTION
its calculations on <<floats>>. its calculations on <<floats>>.
RETURNS RETURNS
@ifinfo @ifnottex
<<acos>> and <<acosf>> return values in radians, in the range of 0 to pi. <<acos>> and <<acosf>> return values in radians, in the range of 0 to pi.
@end ifinfo @end ifnottex
@tex @tex
<<acos>> and <<acosf>> return values in radians, in the range of <<0>> to $\pi$. <<acos>> and <<acosf>> return values in radians, in the range of <<0>> to $\pi$.
@end tex @end tex

View File

@ -37,9 +37,9 @@ TRAD_SYNOPSIS
DESCRIPTION DESCRIPTION
<<acosh>> calculates the inverse hyperbolic cosine of <[x]>. <<acosh>> calculates the inverse hyperbolic cosine of <[x]>.
<<acosh>> is defined as <<acosh>> is defined as
@ifinfo @ifnottex
. log(<[x]> + sqrt(<[x]>*<[x]>-1)) . log(<[x]> + sqrt(<[x]>*<[x]>-1))
@end ifinfo @end ifnottex
@tex @tex
$$ln\Bigl(x + \sqrt{x^2-1}\Bigr)$$ $$ln\Bigl(x + \sqrt{x^2-1}\Bigr)$$
@end tex @end tex

View File

@ -46,9 +46,9 @@ returning floats.
You can modify error handling for these routines using <<matherr>>. You can modify error handling for these routines using <<matherr>>.
RETURNS RETURNS
@ifinfo @ifnottex
<<asin>> returns values in radians, in the range of -pi/2 to pi/2. <<asin>> returns values in radians, in the range of -pi/2 to pi/2.
@end ifinfo @end ifnottex
@tex @tex
<<asin>> returns values in radians, in the range of $-\pi/2$ to $\pi/2$. <<asin>> returns values in radians, in the range of $-\pi/2$ to $\pi/2$.
@end tex @end tex

View File

@ -40,9 +40,9 @@ DESCRIPTION
<<atan2>> computes the inverse tangent (arc tangent) of <[y]>/<[x]>. <<atan2>> computes the inverse tangent (arc tangent) of <[y]>/<[x]>.
<<atan2>> produces the correct result even for angles near <<atan2>> produces the correct result even for angles near
@ifinfo @ifnottex
pi/2 or -pi/2 pi/2 or -pi/2
@end ifinfo @end ifnottex
@tex @tex
$\pi/2$ or $-\pi/2$ $\pi/2$ or $-\pi/2$
@end tex @end tex
@ -53,9 +53,9 @@ $\pi/2$ or $-\pi/2$
RETURNS RETURNS
<<atan2>> and <<atan2f>> return a value in radians, in the range of <<atan2>> and <<atan2f>> return a value in radians, in the range of
@ifinfo @ifnottex
-pi to pi. -pi to pi.
@end ifinfo @end ifnottex
@tex @tex
$-\pi$ to $\pi$. $-\pi$ to $\pi$.
@end tex @end tex

View File

@ -43,9 +43,9 @@ RETURNS
<<atanh>> and <<atanhf>> return the calculated value. <<atanh>> and <<atanhf>> return the calculated value.
If If
@ifinfo @ifnottex
|<[x]>| |<[x]>|
@end ifinfo @end ifnottex
@tex @tex
$|x|$ $|x|$
@end tex @end tex
@ -53,9 +53,9 @@ RETURNS
the result is a NaN. A <<DOMAIN error>> is reported. the result is a NaN. A <<DOMAIN error>> is reported.
If If
@ifinfo @ifnottex
|<[x]>| |<[x]>|
@end ifinfo @end ifnottex
@tex @tex
$|x|$ $|x|$
@end tex @end tex

View File

@ -33,9 +33,9 @@ DESCRIPTION
<<cosh>> computes the hyperbolic cosine of the argument <[x]>. <<cosh>> computes the hyperbolic cosine of the argument <[x]>.
<<cosh(<[x]>)>> is defined as <<cosh(<[x]>)>> is defined as
@ifinfo @ifnottex
. (exp(x) + exp(-x))/2 . (exp(x) + exp(-x))/2
@end ifinfo @end ifnottex
@tex @tex
$${(e^x + e^{-x})} \over 2$$ $${(e^x + e^{-x})} \over 2$$
@end tex @end tex

View File

@ -34,9 +34,9 @@ TRAD_SYNOPSIS
DESCRIPTION DESCRIPTION
<<exp>> and <<expf>> calculate the exponential of <[x]>, that is, <<exp>> and <<expf>> calculate the exponential of <[x]>, that is,
@ifinfo @ifnottex
e raised to the power <[x]> (where e e raised to the power <[x]> (where e
@end ifinfo @end ifnottex
@tex @tex
$e^x$ (where $e$ $e^x$ (where $e$
@end tex @end tex

View File

@ -34,8 +34,12 @@ TRAD_SYNOPSIS
DESCRIPTION DESCRIPTION
<<exp2>> and <<exp2f>> calculate 2 ^ <[x]>, that is, <<exp2>> and <<exp2f>> calculate 2 ^ <[x]>, that is,
@ifinfo @ifnottex
2 raised to the power <[x]>. 2 raised to the power <[x]>.
@end ifnottex
@tex
$2^x$
@end tex
You can use the (non-ANSI) function <<matherr>> to specify You can use the (non-ANSI) function <<matherr>> to specify
error handling for these functions. error handling for these functions.

View File

@ -39,9 +39,9 @@ remainder of <[x]>/<[y]> (<[x]> modulo <[y]>).
RETURNS RETURNS
The <<fmod>> function returns the value The <<fmod>> function returns the value
@ifinfo @ifnottex
<[x]>-<[i]>*<[y]>, <[x]>-<[i]>*<[y]>,
@end ifinfo @end ifnottex
@tex @tex
$x-i\times y$, $x-i\times y$,
@end tex @end tex

View File

@ -76,9 +76,9 @@ $\mit ln\bigl(\Gamma(x)\bigr)$,
the natural logarithm of the gamma function of <[x]>. The gamma function the natural logarithm of the gamma function of <[x]>. The gamma function
(<<exp(gamma(<[x]>))>>) is a generalization of factorial, and retains (<<exp(gamma(<[x]>))>>) is a generalization of factorial, and retains
the property that the property that
@ifinfo @ifnottex
<<exp(gamma(N))>> is equivalent to <<N*exp(gamma(N-1))>>. <<exp(gamma(N))>> is equivalent to <<N*exp(gamma(N-1))>>.
@end ifinfo @end ifnottex
@tex @tex
$\mit \Gamma(N)\equiv N\times\Gamma(N-1)$. $\mit \Gamma(N)\equiv N\times\Gamma(N-1)$.
@end tex @end tex
@ -87,10 +87,10 @@ quickly. <<gamma>> is defined as
@tex @tex
$\mit ln\bigl(\Gamma(x)\bigr)$ rather than simply $\mit \Gamma(x)$ $\mit ln\bigl(\Gamma(x)\bigr)$ rather than simply $\mit \Gamma(x)$
@end tex @end tex
@ifinfo @ifnottex
the natural log of the gamma function, rather than the gamma function the natural log of the gamma function, rather than the gamma function
itself, itself,
@end ifinfo @end ifnottex
to extend the useful range of results representable. to extend the useful range of results representable.
The sign of the result is returned in the global variable <<signgam>>, The sign of the result is returned in the global variable <<signgam>>,

View File

@ -36,9 +36,9 @@ DESCRIPTION
@tex @tex
$\sqrt{x^2+y^2}$ $\sqrt{x^2+y^2}$
@end tex @end tex
@ifinfo @ifnottex
<<sqrt(<[x]>*<[x]> + <[y]>*<[y]>)>> <<sqrt(<[x]>*<[x]> + <[y]>*<[y]>)>>
@end ifinfo @end ifnottex
between the origin (0,0) and a point represented by the between the origin (0,0) and a point represented by the
Cartesian coordinates (<[x]>,<[y]>). <<hypotf>> differs only Cartesian coordinates (<[x]>,<[y]>). <<hypotf>> differs only
in the type of its arguments and result. in the type of its arguments and result.

View File

@ -91,10 +91,10 @@ float <[x]>;
DESCRIPTION DESCRIPTION
The Bessel functions are a family of functions that solve the The Bessel functions are a family of functions that solve the
differential equation differential equation
@ifinfo @ifnottex
. 2 2 2 . 2 2 2
. x y'' + xy' + (x - p )y = 0 . x y'' + xy' + (x - p )y = 0
@end ifinfo @end ifnottex
@tex @tex
$$x^2{d^2y\over dx^2} + x{dy\over dx} + (x^2-p^2)y = 0$$ $$x^2{d^2y\over dx^2} + x{dy\over dx} + (x^2-p^2)y = 0$$
@end tex @end tex

View File

@ -35,7 +35,7 @@ TRAD_SYNOPSIS
float <[x]>, <[y]>; float <[x]>, <[y]>;
DESCRIPTION DESCRIPTION
<<pow>> and <<powf>> calculate <[x]> raised to the exp1.0nt <[y]>. <<pow>> and <<powf>> calculate <[x]> raised to the exponent <[y]>.
@tex @tex
(That is, $x^y$.) (That is, $x^y$.)
@end tex @end tex

View File

@ -37,9 +37,9 @@ TRAD_SYNOPSIS
DESCRIPTION DESCRIPTION
<<sinh>> computes the hyperbolic sine of the argument <[x]>. <<sinh>> computes the hyperbolic sine of the argument <[x]>.
Angles are specified in radians. <<sinh>>(<[x]>) is defined as Angles are specified in radians. <<sinh>>(<[x]>) is defined as
@ifinfo @ifnottex
. (exp(<[x]>) - exp(-<[x]>))/2 . (exp(<[x]>) - exp(-<[x]>))/2
@end ifinfo @end ifnottex
@tex @tex
$${e^x - e^{-x}}\over 2$$ $${e^x - e^{-x}}\over 2$$
@end tex @end tex

View File

@ -26,9 +26,9 @@ TRAD_SYNOPSIS
DESCRIPTION DESCRIPTION
<<acosh>> calculates the inverse hyperbolic cosine of <[x]>. <<acosh>> calculates the inverse hyperbolic cosine of <[x]>.
<<acosh>> is defined as <<acosh>> is defined as
@ifinfo @ifnottex
. log(<[x]> + sqrt(<[x]>*<[x]>-1)) . log(<[x]> + sqrt(<[x]>*<[x]>-1))
@end ifinfo @end ifnottex
@tex @tex
$$ln\Bigl(x + \sqrt{x^2-1}\Bigr)$$ $$ln\Bigl(x + \sqrt{x^2-1}\Bigr)$$
@end tex @end tex

View File

@ -44,9 +44,9 @@ RETURNS
<<atanh>> and <<atanhf>> return the calculated value. <<atanh>> and <<atanhf>> return the calculated value.
If If
@ifinfo @ifnottex
|<[x]>| |<[x]>|
@end ifinfo @end ifnottex
@tex @tex
$|x|$ $|x|$
@end tex @end tex
@ -54,9 +54,9 @@ RETURNS
the result is a NaN. A <<DOMAIN error>> is reported. the result is a NaN. A <<DOMAIN error>> is reported.
If If
@ifinfo @ifnottex
|<[x]>| |<[x]>|
@end ifinfo @end ifnottex
@tex @tex
$|x|$ $|x|$
@end tex @end tex

View File

@ -36,9 +36,9 @@ DESCRIPTION
@tex @tex
$\sqrt{x^2+y^2}$ $\sqrt{x^2+y^2}$
@end tex @end tex
@ifinfo @ifnottex
<<sqrt(<[x]>*<[x]> + <[y]>*<[y]>)>> <<sqrt(<[x]>*<[x]> + <[y]>*<[y]>)>>
@end ifinfo @end ifnottex
between the origin (0,0) and a point represented by the between the origin (0,0) and a point represented by the
Cartesian coordinates (<[x]>,<[y]>). <<hypotf>> differs only Cartesian coordinates (<[x]>,<[y]>). <<hypotf>> differs only
in the type of its arguments and result. in the type of its arguments and result.

View File

@ -76,9 +76,9 @@ $\mit ln\bigl(\Gamma(x)\bigr)$,
the natural logarithm of the gamma function of <[x]>. The gamma function the natural logarithm of the gamma function of <[x]>. The gamma function
(<<exp(gamma(<[x]>))>>) is a generalization of factorial, and retains (<<exp(gamma(<[x]>))>>) is a generalization of factorial, and retains
the property that the property that
@ifinfo @ifnottex
<<exp(gamma(N))>> is equivalent to <<N*exp(gamma(N-1))>>. <<exp(gamma(N))>> is equivalent to <<N*exp(gamma(N-1))>>.
@end ifinfo @end ifnottex
@tex @tex
$\mit \Gamma(N)\equiv N\times\Gamma(N-1)$. $\mit \Gamma(N)\equiv N\times\Gamma(N-1)$.
@end tex @end tex
@ -87,10 +87,10 @@ quickly. <<gamma>> is defined as
@tex @tex
$\mit ln\bigl(\Gamma(x)\bigr)$ rather than simply $\mit \Gamma(x)$ $\mit ln\bigl(\Gamma(x)\bigr)$ rather than simply $\mit \Gamma(x)$
@end tex @end tex
@ifinfo @ifnottex
the natural log of the gamma function, rather than the gamma function the natural log of the gamma function, rather than the gamma function
itself, itself,
@end ifinfo @end ifnottex
to extend the useful range of results representable. to extend the useful range of results representable.
The sign of the result is returned in the global variable <<signgam>>, The sign of the result is returned in the global variable <<signgam>>,

View File

@ -102,7 +102,7 @@ In X/Open mode, @code{errno} is set correctly, and @code{matherr} is
called, but warning message are not printed. called, but warning message are not printed.
In SVID mode, functions which overflow return 3.40282346638528860e+38, In SVID mode, functions which overflow return 3.40282346638528860e+38,
the maximum single precision floating point value, rather than infinity. the maximum single-precision floating-point value, rather than infinity.
Also, @code{errno} is set correctly, @code{matherr} is called, and, if Also, @code{errno} is set correctly, @code{matherr} is called, and, if
@code{matherr} returns 0, warning messages are printed for some errors. @code{matherr} returns 0, warning messages are printed for some errors.
For example, by default @samp{log(-1.0)} writes this message on standard For example, by default @samp{log(-1.0)} writes this message on standard

View File

@ -34,10 +34,10 @@ DESCRIPTION
its calculations on <<floats>>. its calculations on <<floats>>.
RETURNS RETURNS
@ifinfo @ifnottex
<<acos>> and <<acosf>> return values in radians, in the range of 0 to pi <<acos>> and <<acosf>> return values in radians, in the range of 0 to pi
. .
@end ifinfo @end ifnottex
@tex @tex
<<acos>> and <<acosf>> return values in radians, in the range of <<0>> t <<acos>> and <<acosf>> return values in radians, in the range of <<0>> t
o $\pi$. o $\pi$.

View File

@ -62,9 +62,9 @@ Arguments to <<asin>> and <<acos>> must be in the range @minus{}1 to 1.
than taking and returning floats. than taking and returning floats.
RETURNS RETURNS
@ifinfo @ifnottex
<<asin>> and <<acos>> return values in radians, in the range of -pi/2 to pi/2. <<asin>> and <<acos>> return values in radians, in the range of -pi/2 to pi/2.
@end ifinfo @end ifnottex
@tex @tex
<<asin>> and <<acos>> return values in radians, in the range of $-\pi/2$ to $\pi/2$. <<asin>> and <<acos>> return values in radians, in the range of $-\pi/2$ to $\pi/2$.
@end tex @end tex

View File

@ -36,9 +36,9 @@ TRAD_SYNOPSIS
DESCRIPTION DESCRIPTION
<<asinh>> calculates the inverse hyperbolic sine of <[x]>. <<asinh>> calculates the inverse hyperbolic sine of <[x]>.
<<asinh>> is defined as <<asinh>> is defined as
@ifinfo @ifnottex
. sgn(<[x]>) * log(abs(<[x]>) + sqrt(1+<[x]>*<[x]>)) . sgn(<[x]>) * log(abs(<[x]>) + sqrt(1+<[x]>*<[x]>))
@end ifinfo @end ifnottex
@tex @tex
$$sign(x) \times ln\Bigl(|x| + \sqrt{1+x^2}\Bigr)$$ $$sign(x) \times ln\Bigl(|x| + \sqrt{1+x^2}\Bigr)$$
@end tex @end tex

View File

@ -30,9 +30,9 @@ DESCRIPTION
<<atanf>> is identical to <<atan>>, save that it operates on <<floats>>. <<atanf>> is identical to <<atan>>, save that it operates on <<floats>>.
RETURNS RETURNS
@ifinfo @ifnottex
<<atan>> returns a value in radians, in the range of -pi/2 to pi/2. <<atan>> returns a value in radians, in the range of -pi/2 to pi/2.
@end ifinfo @end ifnottex
@tex @tex
<<atan>> returns a value in radians, in the range of $-\pi/2$ to $\pi/2$. <<atan>> returns a value in radians, in the range of $-\pi/2$ to $\pi/2$.
@end tex @end tex

View File

@ -29,9 +29,9 @@ DESCRIPTION
<<atan2>> computes the inverse tangent (arc tangent) of <[y]>/<[x]>. <<atan2>> computes the inverse tangent (arc tangent) of <[y]>/<[x]>.
<<atan2>> produces the correct result even for angles near <<atan2>> produces the correct result even for angles near
@ifinfo @ifnottex
pi/2 or -pi/2 pi/2 or -pi/2
@end ifinfo @end ifnottex
@tex @tex
$\pi/2$ or $-\pi/2$ $\pi/2$ or $-\pi/2$
@end tex @end tex
@ -42,9 +42,9 @@ $\pi/2$ or $-\pi/2$
RETURNS RETURNS
<<atan2>> and <<atan2f>> return a value in radians, in the range of <<atan2>> and <<atan2f>> return a value in radians, in the range of
@ifinfo @ifnottex
-pi to pi. -pi to pi.
@end ifinfo @end ifnottex
@tex @tex
$-\pi$ to $\pi$. $-\pi$ to $\pi$.
@end tex @end tex

View File

@ -55,10 +55,10 @@ DESCRIPTION
<<atanf>> is identical to <<atan>>, save that it operates on <<floats>>. <<atanf>> is identical to <<atan>>, save that it operates on <<floats>>.
RETURNS RETURNS
@ifinfo @ifnottex
<<atan>> returns a value in radians, in the range of -pi/2 to pi/2. <<atan>> returns a value in radians, in the range of -pi/2 to pi/2.
<<atan2>> returns a value in radians, in the range of -pi/2 to pi/2. <<atan2>> returns a value in radians, in the range of -pi/2 to pi/2.
@end ifinfo @end ifnottex
@tex @tex
<<atan>> returns a value in radians, in the range of $-\pi/2$ to $\pi/2$. <<atan>> returns a value in radians, in the range of $-\pi/2$ to $\pi/2$.
<<atan2>> returns a value in radians, in the range of $-\pi/2$ to $\pi/2$. <<atan2>> returns a value in radians, in the range of $-\pi/2$ to $\pi/2$.

View File

@ -23,9 +23,9 @@ DESCRIPTION
<<cosh>> computes the hyperbolic cosine of the argument <[x]>. <<cosh>> computes the hyperbolic cosine of the argument <[x]>.
<<cosh(<[x]>)>> is defined as <<cosh(<[x]>)>> is defined as
@ifinfo @ifnottex
. (exp(x) + exp(-x))/2 . (exp(x) + exp(-x))/2
@end ifinfo @end ifnottex
@tex @tex
$${(e^x + e^{-x})} \over 2$$ $${(e^x + e^{-x})} \over 2$$
@end tex @end tex

View File

@ -30,9 +30,9 @@ TRAD_SYNOPSIS
DESCRIPTION DESCRIPTION
<<exp>> and <<expf>> calculate the exponential of <[x]>, that is, <<exp>> and <<expf>> calculate the exponential of <[x]>, that is,
@ifinfo @ifnottex
e raised to the power <[x]> (where e e raised to the power <[x]> (where e
@end ifinfo @end ifnottex
@tex @tex
$e^x$ (where $e$ $e^x$ (where $e$
@end tex @end tex

View File

@ -39,9 +39,9 @@ remainder of <[x]>/<[y]> (<[x]> modulo <[y]>).
RETURNS RETURNS
The <<fmod>> function returns the value The <<fmod>> function returns the value
@ifinfo @ifnottex
<[x]>-<[i]>*<[y]>, <[x]>-<[i]>*<[y]>,
@end ifinfo @end ifnottex
@tex @tex
$x-i\times y$, $x-i\times y$,
@end tex @end tex

View File

@ -26,17 +26,17 @@ TRAD_SYNOPSIS
DESCRIPTION DESCRIPTION
All non zero, normal numbers can be described as <[m]> * 2**<[p]>. All nonzero, normal numbers can be described as <[m]> * 2**<[p]>.
<<frexp>> represents the double <[val]> as a mantissa <[m]> <<frexp>> represents the double <[val]> as a mantissa <[m]>
and a power of two <[p]>. The resulting mantissa will always and a power of two <[p]>. The resulting mantissa will always
be greater than or equal to <<0.5>>, and less than <<1.0>> (as be greater than or equal to <<0.5>>, and less than <<1.0>> (as
long as <[val]> is nonzero). The power of two will be stored long as <[val]> is nonzero). The power of two will be stored
in <<*>><[exp]>. in <<*>><[exp]>.
@ifinfo @ifnottex
<[m]> and <[p]> are calculated so that <[m]> and <[p]> are calculated so that
<[val]> is <[m]> times <<2>> to the power <[p]>. <[val]> is <[m]> times <<2>> to the power <[p]>.
@end ifinfo @end ifnottex
@tex @tex
<[m]> and <[p]> are calculated so that <[m]> and <[p]> are calculated so that
$ val = m \times 2^p $. $ val = m \times 2^p $.

View File

@ -46,7 +46,7 @@ TRAD_SYNOPSIS
DESCRIPTION DESCRIPTION
These functions provide information on the floating point These functions provide information on the floating-point
argument supplied. argument supplied.
There are five major number formats - There are five major number formats -
@ -54,14 +54,14 @@ DESCRIPTION
o zero o zero
a number which contains all zero bits. a number which contains all zero bits.
o subnormal o subnormal
Is used to represent number with a zero exponent, but a non zero fract Is used to represent number with a zero exponent, but a nonzero fract
ion. ion.
o normal o normal
A number with an exponent, and a fraction A number with an exponent, and a fraction
o infinity o infinity
A number with an all 1's exponent and a zero fraction. A number with an all 1's exponent and a zero fraction.
o NAN o NAN
A number with an all 1's exponent and a non zero fraction. A number with an all 1's exponent and a nonzero fraction.
o- o-
@ -71,7 +71,7 @@ ion.
The <<isnanf>>, <<isinff>> and <<finitef>> perform the same The <<isnanf>>, <<isinff>> and <<finitef>> perform the same
operations as their <<isnan>>, <<isinf>> and <<finite>> operations as their <<isnan>>, <<isinf>> and <<finite>>
counterparts, but on single precision floating point numbers. counterparts, but on single-precision floating-point numbers.
QUICKREF QUICKREF
isnan - pure isnan - pure
@ -92,7 +92,7 @@ QUICKREF
* isnan * isnan
* *
* Input: * Input:
* x - pointer to a floating point value * x - pointer to a floating-point value
* *
* Output: * Output:
* An integer that indicates if the number is NaN. * An integer that indicates if the number is NaN.

View File

@ -28,9 +28,9 @@ TRAD_SYNOPSIS
DESCRIPTION DESCRIPTION
<<ldexp>> calculates the value <<ldexp>> calculates the value
@ifinfo @ifnottex
<[val]> times 2 to the power <[exp]>. <[val]> times 2 to the power <[exp]>.
@end ifinfo @end ifnottex
@tex @tex
$val\times 2^{exp}$. $val\times 2^{exp}$.
@end tex @end tex

View File

@ -24,7 +24,7 @@ TRAD_SYNOPSIS
float <[x]>, <[y]>; float <[x]>, <[y]>;
DESCRIPTION DESCRIPTION
<<pow>> and <<powf>> calculate <[x]> raised to the exp1.0nt <[y]>. <<pow>> and <<powf>> calculate <[x]> raised to the exponent <[y]>.
@tex @tex
(That is, $x^y$.) (That is, $x^y$.)
@end tex @end tex

View File

@ -44,16 +44,16 @@ DESCRIPTION
<<sinh>> and <<cosh>> compute the hyperbolic sine or cosine <<sinh>> and <<cosh>> compute the hyperbolic sine or cosine
of the argument <[x]>. of the argument <[x]>.
Angles are specified in radians. <<sinh>>(<[x]>) is defined as Angles are specified in radians. <<sinh>>(<[x]>) is defined as
@ifinfo @ifnottex
. (exp(<[x]>) - exp(-<[x]>))/2 . (exp(<[x]>) - exp(-<[x]>))/2
@end ifinfo @end ifnottex
@tex @tex
$${e^x - e^{-x}}\over 2$$ $${e^x - e^{-x}}\over 2$$
@end tex @end tex
<<cosh>> is defined as <<cosh>> is defined as
@ifinfo @ifnottex
. (exp(<[x]>) - exp(-<[x]>))/2 . (exp(<[x]>) - exp(-<[x]>))/2
@end ifinfo @end ifnottex
@tex @tex
$${e^x + e^{-x}}\over 2$$ $${e^x + e^{-x}}\over 2$$
@end tex @end tex

View File

@ -91,10 +91,10 @@ float <[x]>;
DESCRIPTION DESCRIPTION
The Bessel functions are a family of functions that solve the The Bessel functions are a family of functions that solve the
differential equation differential equation
@ifinfo @ifnottex
. 2 2 2 . 2 2 2
. x y'' + xy' + (x - p )y = 0 . x y'' + xy' + (x - p )y = 0
@end ifinfo @end ifnottex
@tex @tex
$$x^2{d^2y\over dx^2} + x{dy\over dx} + (x^2-p^2)y = 0$$ $$x^2{d^2y\over dx^2} + x{dy\over dx} + (x^2-p^2)y = 0$$
@end tex @end tex