This document describes a patch for the FOCAL programming language, designed to be used on systems equipped with an Extended Arithmetic Element (EAE). The patch provides the following updates:
FITR (floating-to-integer) routine is replaced with an improved version that handles negative arguments near powers of 2 correctly, provides more consistent results for values between -0.5 and 0, and features improved scaling logic.FRAN function is replaced by a more statistically robust multiplicative-congruential algorithm. This new routine generates a flat distribution between -1 and 1 and includes mechanisms to reset the sequence using the switch register.The document includes the technical specifications, performance improvements (comparing execution times for various operations), and a comprehensive assembly listing of the routines and cross-reference tables for implementation.
Site structure and layout ©2025 Majenko Technologies