Next: Approximate Comparison of Floating Point Numbers, Previous: Testing for Odd and Even Numbers, Up: Mathematical Functions [Index]
Note that the following macros perform multiple evaluations of their arguments, so they should not be used with arguments that have side effects (such as a call to a random number generator).
This macro returns the maximum of a and b. It is defined
as ((a) > (b) ? (a):(b))
.
This macro returns the minimum of a and b. It is defined as
((a) < (b) ? (a):(b))
.
This function returns the maximum of the double precision numbers
a and b using an inline function. The use of a function
allows for type checking of the arguments as an extra safety feature. On
platforms where inline functions are not available the macro
GSL_MAX
will be automatically substituted.
This function returns the minimum of the double precision numbers
a and b using an inline function. The use of a function
allows for type checking of the arguments as an extra safety feature. On
platforms where inline functions are not available the macro
GSL_MIN
will be automatically substituted.
These functions return the maximum or minimum of the integers a
and b using an inline function. On platforms where inline
functions are not available the macros GSL_MAX
or GSL_MIN
will be automatically substituted.
These functions return the maximum or minimum of the long doubles a
and b using an inline function. On platforms where inline
functions are not available the macros GSL_MAX
or GSL_MIN
will be automatically substituted.
Next: Approximate Comparison of Floating Point Numbers, Previous: Testing for Odd and Even Numbers, Up: Mathematical Functions [Index]