STDMATH Global Constants


System provided constants:

*INFINITY* real ~1.7e308 ; pretty large number

*MACHINE-EPSILON* real ~2.22e-16 ; lowest possible epsilon

*MAX-INT* int 2147483647 ; normally *MAX-LONGINT*

*MAX-LONGINT* int 2147483647 ; signed long int (32 bit signed int)

*MAX-SHORTINT* int 32767 ; signed short int (16 bit signed int)

*MAX-REAL* real ~1.7e308 ; double float, 64 bit, 15 digit prec

*PI2* real 6.28319 ; (* PI 2)

*PI/2* real 1.5708 ; (/ PI 2) == 90°

*PI/4* real 0.785398 ; (/ PI 4) == 45°

User adjustable variables:

*NUM-TOL* real 1e-6 ; equalp tolerance

*EPSILON* real 1e-12 ; numeric precision treshold

Description

*MAX-INT* is provided for portability reasons. (panic mode)

*NUM-TOL* is used in STD-EQUALP and may be used by user functions too.

*EPSILON* is used in some library arithmetic algorithms and may be used by user functions too.

Module

(std-require 'STDMATH)

Defined in STDMATH