math(5)math(5)NAMEmath - math functions, constants, and types
SYNOPSISDESCRIPTION
This file contains declarations of all the functions in the Math
Library (described in Section (3M)).
It defines the types:
A floating type, at least as wide as
For PA-RISC, is
For Integrity server, if equals 0, is if equals 1,
is if equals -2, is
A floating type, at least as wide as
For PA-RISC, is
For Integrity server, if equals 0 or 1, is if
equals -2, is
For Integrity server, the value of is 0, 1, or -2, according to the use
of the compiler option (default), or respectively.
See section below for additinal types supported on Integrity servers.
It defines the following constants (which, for Integrity server, may be
used to initialize statics and aggregates):
A quiet NaN (Not-a-Number) value (type
A positive infinity value (type
The maximum value (type
representable in the type (IEEE positive infinity).
The maximum value (type
representable in the type (IEEE positive infinity).
For Integrity server only, the maximum value (type
representable in the type (IEEE positive infinity).
For Integrity server only, the maximum value (type
representable in the type (IEEE positive infinity).
To use compile with the option.
For Integrity server only, equivalent to
To use compile with the option.
It defines the following integer constants which give special-case val‐
ues returned by the functions:
Returned by if its argument is zero.
Returned by if its argument is a NaN.
It defines the following mathematical constants for user convenience.
The constants without an l suffix are of type The constants with an l
suffix are of type and are available for Integrity server only.
The base of natural logarithms
(e).
The base-2 logarithm of
e.
The base-10 logarithm of
e.
The natural logarithm of 2.
The natural logarithm of 10.
The ratio of the circumference of a circle to its diameter.
(There are also several fractions of its recipro‐
cal, and its square root: and and for and
The positive square root of 2.
The positive square root of 1/2.
For the definitions of various machine-dependent constants, see the
description of the header file.
INTEGRITY SERVERS ONLY
Additional Types
For HP Integrity servers, included in a compilation under the option,
this file also defines the types:
The Integrity server 80-bit double-extended type.
An IEEE 754-compliant, 128-bit floating-point type. On HP-UX,
is a synonym for
To use one of the types or you must compile with the option.
Error Handling
For Integrity servers, it defines the following integer constants which
identify the error handling method supported by functions:
Indicates support for the ISO/IEC C99
specification.
Indicates support for the ISO/IEC C99
exception flag specification.
Defined to be if the compiler option is used, or defined to be
otherwise.
Decimal Floating Point
For Integrity servers HP-UX 11i v3 September 2008 Update (and later),
included in a compilation where has been defined, this file defines
types and macros for decimal floating point.
It defines the types:
A decimal floating type, at least as wide as
If equals 0, is if equals 1, is if equals 2, is
A decimal floating type, at least as wide as
If equals 0 or 1, is if equals 2, is
The value of is 0, 1, or 2, according to the use of the compiler option
or respectively.
It defines the following constants, which may be used to initialize
statics and aggregates:
A quiet NaN (Not-a-Number) value (type
A positive infinity value (type
The maximum value (type
representable in the type (IEEE positive infinity).
The maximum value (type
representable in the type (IEEE positive infinity).
The maximum value (type
representable in the type (IEEE positive infinity).
Definition of indicates that the function generally executes
about as fast as, or faster than, a multiply and
add of operands. and are analogs of
To use any of the types or macros for decimal floating point, define
either with a compile option, or with
in the source file before inclusion of
FILESSEE ALSOintro(3), complex(5), fenv(5), values(5).
STANDARDS CONFORMANCEmath(5)