Trigonometry (OMTRIG legacy)

The trigonometry library, omtrig, is a collection of trigonometric functions based on the C math library. It serves as a "wrapper" around a particular math library. You can use the functions in this library to write OmniMark applications that can perform double-precision floating point arithmetic.

The trigonometry function library consists of the following files:

  • omfloat.so (for UNIX) or omfloat.dll (for Windows), the floating point library.
  • omtrig.xin, which defines the float opaque type and all of the functions and constants in the library. This file must be included in any OmniMark program that uses the functions in the floating point library (include omtrig.xin) because the file contains the external function declarations, the float type definition, and related macros.

To use these functions, you must include the following code near the top of your program:

  ; floating point function and constant declarations
  include "omtrig.xin"