Valentin Albillo's HP Collection

Back Home

HP Calculators

HP Calculator Programs

For the historical record and in order to preserve my earliest and/or unreleased efforts in the wonderful world of HP programmable calculators and pocket computers, here you'll find a selection of HP programs I wrote for various HP models ranging in capabilities from the HP-25 to the HP-71B.

The HP-25 programs are for the most part (not all) quite simple affairs, written just for practice and never intended for release, as back in 1975 I was learning programming techniques (the HP-25 was my very first programmable calc) and the HP-25 was slow and had very little RAM (49 steps, 8 registers) as well as a very limited programming paradigm (no labels, no subroutines, no flags), so don't expect anything too sophisticated (though there are a few surprises). That said, I think they're still quite enjoyable and fun to check and even convert to run on other devices.

On the other hand, most subsequent HP models (such as the HP-11C, HP-67, HP-34C, HP-41C, etc., let alone the HP-71B !) had much more RAM for both programs and data and also advanced programming capabilities, so the programs I wrote for them take full advantage of that and are significantly more complex and capable, no longer "practice" ones. Some of them were published in the past in physical media (paper magazines, solution books, CD/DVD/USB pendrives), which would-be readers (even the authors themselves) had to pay for, but now for the first time they'll be available to download for free, as will existing but still unpublished programs or even new programs I might write now and in the foreseeable future. Stay tuned !



HP Program VA251 - HP-25 Solving 2nd-order differential equations

3-page paper featuring a 37-step RPN program for the HP-25 to numerically solve 2nd-order differential equations of the form y”=f(x,y) subject to initial conditions, using the 5th-order predictor-corrector Numerov’s method. One worked example included.

HP Program VA252 - HP-25 Gamma Function and Factorials

2-page paper featuring a 49-step RPN program for the HP-25 to accurately evaluate the Gamma function in the interval [1, 2], as well as approximate factorials for real-valued x. Three worked examples included.

HP Program VA341 - HP-34C Loan Amortization Schedule

2-page paper featuring a 70-step RPN program for the HP-34C to generate either a complete amortization schedule showing each period of a fully amortized loan or a partial schedule between two given periods. One worked example is included.

HP Program VA342 - HP-34C Summation of Alternating Series

3-page paper featuring an 84-step RPN program for the HP-34C to quickly and accurately find the sum of infinite alternating series, even divergent ones (Euler sum). Three worked examples are included.

HP Program VA343 - HP-34C Double Integrals

3-page paper featuring a 67-step RPN program for the HP-34C to compute the numeric value of a definite double integral of a user-specified f(x,y) between given limits. Four worked examples are included.

HP Program VA344 - HP-34C Solving Quartic Equations

4-page paper featuring a 175-step RPN program for the HP-34C, HP-67 and HP-97 programmable calculators to compute simultaneously and non-iteratively all four real and/or complex roots of a general 4th-degree (or less) polynomial equation with real coefficients, using exact formulas. The HP-34C's SOLVE function is not used and all four real and/or complex roots are computed at once in 15-20 seconds at most.

It will also work in the HP-15C, the HP-41C series and posibly other RPN models with very minimal changes (detailed in the Notes). Four worked examples are included, solving three quartics and one cubic equation.

HP Program VA345 - HP-34C Nonlinear Equations Systems

4-page paper featuring a 102-step RPN program for the HP-34C programmable calculator to solve a system of two arbitrary nonlinear equations in two variables. Will also work as-is in the HP-67/97 and in the HP-15C and HP-41C series with minimal changes. Two worked examples are included.

HP Program VA346 - HP-34C Factoring-GCD-Decimal to Fraction

3-page paper featuring a 127-step program for the HP-34C programmable calculator to factorize an integer into its prime factors, compute the greatest common divisor (GCD) of two integers, and find integer fractions which best approximate a given real value. It will also work in the HP-41C series with trivial changes. Three worked examples are included.

HP Program VA348 - HP-34C Memory Game and Trainer

3-page paper featuring an 86-step RPN program for the HP-34C to challenge your memory by testing your ability to remember what you’ve just seen and offering afterwards an accurate comment on your performance.

HP Program VA411 - HP-41C Finding Roots of Equations

4-page paper featuring a 42-step RPN program for the HP-41C to find real roots of an arbitrary user-supplied equation f(x)=0 using Newton’s method and a user-given initial guess. Interactive and non-interactive versions provided. Five worked examples included.

HP Program VA412 - HP-41C Finding Extrema of Functions

3-page paper featuring a 28-step RPN program for the HP-41C to find extrema (maxima and/or minima) of an arbitrary user-supplied function y=f(x) by calling program RF (Root Finder) internally as part of the computation. Two worked examples are included.

HP Program VA413 - HP-41C 3-point Gaussian Integration

3-page paper featuring a 55-step RPN program for the HP-41C to evaluate the definite integral between given limits of an arbitrary user-supplied function f(x) using the fast 3-point Gauss-Legendre quadrature formula applied over a number of subintervals. Three worked examples included.

HP Program VA414 - HP-41C Dice Rolling with Graphics

3-page paper featuring a 90/62-step RPN program for the HP-41C programmable calculator series to simulate randomly throwing two dice, which are printed graphically followed by their sum.

It includes a subroutine which can be globally called from other programs or from the keyboard to accumulate in the printer buffer the graphics for any single die face. Both Standard and Synthetic Programming versions are included.

HP Program VA415 - HP-41C Systems of 1st-order Differential Equations

7-page paper featuring a 137-step program for the HP-41C programmable calculator to obtain quickly and accurately an approximate numerical solution for a system of N simultaneous first-order differential equations or, conversely, a single differential equation of the Nth-order, using a fourth-order Runge-Kutta method. It will also run in the HP-41CV, HP-41CX and the HP42S. Two worked examples included.

HP Program VA418 - HP-41C Memory Game and Trainer

3-page paper featuring a 142-step fun game RPN program for the HP-41C to challenge your memory by testing your ability to remember what you’ve just seen and offering afterwards an accurate comment on your performance.

HP Program VA419 - HP-41C ESP Tester

2-page paper featuring an 85-step fun RPN program for the HP-41C to test your “ESP” (Extra-Sensorial Powers) by conducting a series of 10 tests, after which it reports the % of success and an evaluation of your alleged extrasensorial abilities (if any). One sample run included.

HP Program VA710 - HP-71B Producing Digits of Pi one at a time

HP Program VA711 - HP-71B Exact Integer Determinants and Permanents

HP Program VA712 - HP-71B Multiprecision E and its roots

HP Program VA713 - HP-71B Packing Long Integers


COPYRIGHT NOTICE

These articles, programs, pictures, their descriptions and other materials created by me are (c) Valentin Albillo, and can be used freely for non-profit purposes as long as (1) the contents aren't modified in any way and (2) the copyright is acknowledged.

In plain words, you can download them and use them for non-profit purposes but do not include them in any media and/or site for which you're asking money, do not tamper with their contents and do not say or imply that you created them or that you don't know who created them, you must always give due credit to the copyright holder (that's me).