Math Libraries - Sun Microsystems SunSoft Pascal 4.0 User Manual

Hewlett-packard user guide printer printer
Table of Contents

Advertisement

Math Libraries

This chapter describes how to use the libm and libsunmath functions in
Pascal programs. The math libraries are always accessible from a Pascal
program because the Pascal compiler driver pc calls ld, the linker and loader,
with the -lsunmath -lm options. If you compile Pascal program with the -v
option, it prints the command-line used to call each of the compilation passes.
For convenience, Pascal supports special Pascal header files, math_p.h and
sunmath_p.h, which contain prototypes of math functions, procedures, and
some useful constants. The math_p.h file refers to sunmath_p.h by an
#include directive.
This chapter contains the following sections:
Contents of the Math Libraries
libm Functions
IEEE Support Functions
SPARC Libraries
Arithmetic Exceptions
Math Library Exception-Handling Function: matherr()
libsunmath Support for IEEE Modes and Exceptions
11
page 234
page 235
page 236
page 238
page 239
page 240
page 242
233

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SunSoft Pascal 4.0 and is the answer not in the manual?

Questions and answers

Table of Contents