110800 CMATH: A Library of Elementary Math Functions for DECUS C Version: March 1985 Submitted by: Hamish Ross, Birmingham University, West Midlands, U.K. Operating System: RT-11 V4 Source Language: DECUS C, MACRO-11 Memory Required: As for DECUS C Software Required: C Language System (DECUS No. 11S018) version dated November 1983. Hardware Required: Hardware Floating Point of FP-11 Type, not FIS. Keywords: Mathematical Abstract: This package provides a Library of the elementary maths functions for the DECUS C system. The functions have the same names, arguments and functionality as their counter parts in UNIX so that porting applications programs from UNIX and UNIX compatible systems is facilitated. The functions provided are sqrt, log, log10, exp, pow, sin, cos, tan, cotan, asin, acos, atan, atan2, sinh, cosh, tanh, fabs, floor, ceil, frexp, ldexp and modf together with new versions of atof and $$dtoa. Most of the algorithms are from Cody and Waite "Software Manual for the Elementary Functions", Prentice-Hall, which have been designed to have a high level of accuracy throughout the entire range of their arguments. The test programs from that book are included also, as are a number of patches which fix bugs in the compiler module CC103 and the runtime modules DOPRINT, DOSCAN, FCLOSE AND IOABUF. Restrictions: DECUS No. 11S018 needs to be patched to fix some bugs. A patch kit is included with this submission. Media (Service Charge Code): Two RX01 Diskettes (KB) Format: RT-11, 600' Magnetic Tape (MA) Format: RT-11