Next: Approximate Comparison of Floating Point Numbers, Previous: Testing for Odd and Even Numbers, Up: Mathematical Functions
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
orGSL_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
orGSL_MIN
will be automatically substituted.