Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Floating-Point Guide: HP 9000 Computers

Appendix A The C Math Library

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

Table of Contents

C Math Library Tables

The HP-UX C math library, libm, supports all mathematical functions specified by the ANSI C standard, ANS X3.159-1989, as well as functions specified by the XPG4.2, SVID, and COSE Common API (Spec 1170) specifications.

In addition, the library supports the following value-added functions specific to HP-UX:

  • float versions of many mathematical functions

  • Degree-valued trigonometric functions

  • A group of functions and macros recommended by the IEEE standard (see Table 2-12 “HP-UX Support for IEEE Recommended Functions”), including fpclassify, copysign, and isfinite

  • An additional group of floating-point functions and macros that the ISO/ANSI C committee has included in the C9X draft standard

  • The fenv(5) suite, a collection of functions (included in the C9X draft standard) that allow an application to manipulate the ­floating-point status register (see Chapter 5 “Manipulating the Floating-Point Status Register” for more information)

If your program calls libm math functions, you must link in the appropriate library explicitly. See “Locations of the Math Libraries at Release 11.0” for a list of the different versions of libm and their directory locations.

For more information about math libraries, including C math library error handling, see Chapter 4 “HP-UX Math Libraries on HP 9000 Systems”. For details about these functions, see the online man pages.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1997 Hewlett-Packard Development Company, L.P.