/** * Mathematical Constants * * Common mathematical values, number system bases, and calculation constants * used throughout the application for various computations. * * @module math/constants */ /** * Number system base constants */ export declare const NUMBER_SYSTEM: { /** * Base 2 - Binary number system */ readonly BINARY_BASE: 2; /** * Base 8 - Octal number system */ readonly OCTAL_BASE: 8; /** * Base 10 - Decimal number system */ readonly DECIMAL_BASE: 10; /** * Base 12 - Duodecimal number system */ readonly DUODECIMAL_BASE: 12; /** * Base 16 - Hexadecimal number system */ readonly HEX_BASE: 16; /** * Base 32 - Base32 encoding */ readonly BASE32: 32; /** * Base 36 - Alphanumeric number system (0-9, a-z) */ readonly BASE36: 36; /** * Base 58 - Bitcoin base58 encoding (excludes similar looking characters) */ readonly BASE58: 58; /** * Base 62 - Alphanumeric with uppercase (0-9, a-z, A-Z) */ readonly BASE62: 62; /** * Base 64 - Base64 encoding */ readonly BASE64: 64; /** * Default padding length for hexadecimal values (e.g., "0F" instead of "F") */ readonly HEX_PAD_LENGTH: 2; /** * Padding length for RGB hex colors (6 characters) */ readonly HEX_COLOR_LENGTH: 6; /** * Padding length for RGBA hex colors with alpha (8 characters) */ readonly HEX_COLOR_ALPHA_LENGTH: 8; /** * Standard byte size in bits */ readonly BITS_PER_BYTE: 8; /** * Standard nibble size in bits (half byte) */ readonly BITS_PER_NIBBLE: 4; /** * Number of bytes in a kilobyte (binary) */ readonly BYTES_PER_KB: 1024; /** * Number of bytes in a megabyte (binary) */ readonly BYTES_PER_MB: 1048576; /** * Number of bytes in a gigabyte (binary) */ readonly BYTES_PER_GB: 1073741824; /** * Default decimal places for currency */ readonly CURRENCY_DECIMAL_PLACES: 2; /** * Default decimal places for percentages */ readonly PERCENTAGE_DECIMAL_PLACES: 2; /** * Default decimal places for coordinates */ readonly COORDINATE_DECIMAL_PLACES: 6; /** * Maximum safe integer in JavaScript */ readonly MAX_SAFE_INTEGER: 9007199254740991; /** * Minimum safe integer in JavaScript */ readonly MIN_SAFE_INTEGER: -9007199254740991; /** * Maximum 32-bit signed integer */ readonly MAX_INT32: 2147483647; /** * Minimum 32-bit signed integer */ readonly MIN_INT32: -2147483648; /** * Maximum 16-bit unsigned integer */ readonly MAX_UINT16: 65535; /** * Maximum 8-bit unsigned integer */ readonly MAX_UINT8: 255; /** * Full circle in degrees */ readonly DEGREES_FULL_CIRCLE: 360; /** * Half circle in degrees */ readonly DEGREES_HALF_CIRCLE: 180; /** * Quarter circle in degrees (right angle) */ readonly DEGREES_RIGHT_ANGLE: 90; /** * Degrees in a radian */ readonly DEGREES_PER_RADIAN: 57.29577951308232; /** * Radians in a degree */ readonly RADIANS_PER_DEGREE: 0.017453292519943295; /** * Pi (π) */ readonly PI: 3.141592653589793; /** * Two times Pi (2π) - full circle in radians */ readonly TWO_PI: 6.283185307179586; /** * Half Pi (π/2) - quarter circle in radians */ readonly HALF_PI: 1.5707963267948966; /** * Euler's number (e) */ readonly E: 2.718281828459045; /** * Golden ratio (φ) */ readonly GOLDEN_RATIO: 1.618033988749895; /** * Square root of 2 */ readonly SQRT2: 1.4142135623730951; /** * Square root of 3 */ readonly SQRT3: 1.7320508075688772; /** * Natural logarithm of 2 */ readonly LN2: 0.6931471805599453; /** * Natural logarithm of 10 */ readonly LN10: 2.302585092994046; /** * Base 2 logarithm of E */ readonly LOG2E: 1.4426950408889634; /** * Base 10 logarithm of E */ readonly LOG10E: 0.4342944819032518; }; /** * Mathematical and percentage constants */ export declare const MATH_CONSTANTS: { /** * Maximum percentage value */ readonly PERCENTAGE_MAX: 100; /** * Half value (50%) */ readonly HALF: 0.5; /** * One tenth (10%) */ readonly TENTH: 0.1; /** * One twentieth (5%) */ readonly TWENTIETH: 0.05; /** * 95th percentile */ readonly PERCENT_95: 0.95; /** * 99th percentile */ readonly PERCENT_99: 0.99; /** * Threshold for quadratic algorithm detection */ readonly QUADRATIC_THRESHOLD: 1.5; /** * Threshold for exponential algorithm detection */ readonly EXPONENTIAL_THRESHOLD: 3; /** * Multiplier for variance calculations */ readonly VARIANCE_MULTIPLIER: 4; /** * Offset for variance calculations */ readonly VARIANCE_OFFSET: 2; }; /** * Common numeric multipliers for calculations */ export declare const MULTIPLIERS: { /** * One and a half times (1.5x) */ readonly ONE_AND_HALF: 1.5; /** * Double (2x) */ readonly DOUBLE: 2; /** * Triple (3x) */ readonly TRIPLE: 3; /** * Quadruple (4x) */ readonly QUADRUPLE: 4; /** * Quintuple (5x) */ readonly QUINTUPLE: 5; /** * Ten times (10x) */ readonly TEN: 10; }; /** * Common numeric constants for general use */ export declare const NUMERIC_CONSTANTS: { /** * Milliseconds in one second */ readonly MILLISECONDS_PER_SECOND: 1000; /** * Seconds in one minute */ readonly SECONDS_PER_MINUTE: 60; /** * Minutes in one hour */ readonly MINUTES_PER_HOUR: 60; /** * Hours in one day */ readonly HOURS_PER_DAY: 24; /** * Negative one (-1) */ readonly NEGATIVE_ONE: -1; /** * Zero (0) */ readonly ZERO: 0; /** * One (1) */ readonly ONE: 1; /** * Two (2) */ readonly TWO: 2; /** * Three (3) */ readonly THREE: 3; /** * Five (5) */ readonly FIVE: 5; /** * Ten (10) */ readonly TEN: 10; /** * One hour in seconds (3600) */ readonly ONE_HOUR_SECONDS: 3600; /** * Minimum pool size (1) */ readonly MIN_POOL_SIZE: 1; /** * Maximum pool size (100) */ readonly MAX_POOL_SIZE: 100; /** * Minimum timeout in milliseconds (1000) */ readonly MIN_TIMEOUT_MS: 1000; }; /** * Type for number system values */ export type NumberSystemBase = (typeof NUMBER_SYSTEM)[keyof typeof NUMBER_SYSTEM]; /** * Type for math constant values */ export type MathConstant = (typeof MATH_CONSTANTS)[keyof typeof MATH_CONSTANTS]; /** * Type for multiplier values */ export type Multiplier = (typeof MULTIPLIERS)[keyof typeof MULTIPLIERS]; /** * Type for numeric constant values */ export type NumericConstant = (typeof NUMERIC_CONSTANTS)[keyof typeof NUMERIC_CONSTANTS]; //# sourceMappingURL=constants.d.ts.map