

In May 2017, SwissMicros released pre-production samples of an RPN calculator closely resembling the HP-42S, the DM42. Returns control (and result in X) to either the user or to a calling program. Recall stack register Y and multiply with Xĭecrement stack register Y and if not zero. No memory registers are used.ġ is put into X, hence the value to be calculated upon (which was initially in X) is lifted (pushed) into stack register Y This is a sample program which computes the factorial of an input integer number (ignoring the calculator's built-in factorial function). The HP-42S supports indirect addressing with which it is possible to implement a Universal Turing machine and therefore the programming model of the HP-42S can be considered Turing-complete. The HP-42S uses a superset of the HP-41CX FOCAL language. The HP-42S is keystroke-programmable, meaning that it can remember and later execute sequences of keystrokes to solve particular problems of interest to the user. The ability to run programs written for the HP-41C series of calculators.Programmability (keystroke programming with branching, loops, tests and flags).Catalogs for reviewing and using items stored in memory.Base conversion, integer arithmetic and binary and logic manipulation of numbers in binary, octal, decimal and hexadecimal systems.Menus with submenus and mode settings (also custom programmable) that use the bottom line of the display to label the top row of keys.Graphic display with graphics functions and adjustable contrast.Named variables, registers and binary flags.Complex numbers (including polar coordinates representation).Matrix operations (including a matrix editor, dot product, cross product and solver for simultaneous linear equations).Numerical integration for calculating definite integrals.Equation solver (root finder) that can solve for any variable in an equation.Probability (including factorial, random numbers and Gamma function).Statistics (including curve fitting and forecasting).All basic scientific functions (including hyperbolic functions).Peripherals: HP 82240A infrared printer.Expandability: Officially no other than IR printing (32 KB memory upgrade and over-clocking hardware hacks are possible).As this calculator is regarded amongst the best ever made in terms of quality, key stroke feel, ease of programming, and daily usability for engineers, in the HP calculator community the 42S has become famous for its high prices in online auctions, up to several times its introduction price, which has created a scarcity for utility end users. Additionally, it features a two-line dot matrix display, which made stack manipulation easier to understand. The 42S, however, has a much smaller form factor than the 41, and features many more built-in functions, such as a matrix editor, complex number support, an equation solver, user-defined menus, and basic graphing capabilities (the 42S can draw graphs only by programs). Since it lacked expandability, and lacked any real I/O ability, both key features of the HP-41 series, it was marketed as an HP-15C replacement.

Perhaps the HP-42S was to be released as a replacement for the aging HP-41 series as it is designed to be compatible with all programs written for the HP-41.
