Valentin Albillo's HP Collection

Back Home

Sharp Pocket Computers

Sharp Programs

Here, for the historical record and in order to preserve my earliest unreleased efforts in the wonderful world of programmable calculators and so-called "pocket computers", you'll find a selection of SHARP programs I wrote for various SHARP pocket computers, mainly for the flagship PC-1211, which was given to me by the CEO of Microsoft, a small Spanish company (!) which later shortened its name to just SOFT in order to avoid conflict with the much larger US company you all know and love (or not).

I must say I was extremely pleased with this beautiful and elegant machine and proceeded to very quickly create about 100 programs for it (all of them fit in a single C-60 cassette tape), just to get acquainted with its capabilities and learn what it could do. You can read all about it in my article Know Thy Foe: A New Contender, which compares it vs. the HP-41C and extensively describes its capabilities.

Many of the programs (but not all) are quite simple, barebones affairs for the most part, written just for practice, never intended for release. Back in 1980 I was still learning programming techniques and these portable machines were slow and had little RAM and resources, so bear with me and don't expect any sophisticated or fool-proof programming. That said, I think they're still quite enjoyable and fun to check and even convert to run on other devices.

Last but not least, all PC-1211 programs will also run on both PC-1212 and PC-1210 (memory permitting), and programs for other more advanced SHARP models (PC-1350/PC-1360 ...) will be featured here as well. Stay tuned !



SHARP Program VA005 - PC-1211 - Finding Roots of Equations

2-page paper featuring a 3-line BASIC program to find roots of an arbitrary user-supplied equation f(x)=0 using Newton’s method and a user-provided initial guess. Two worked examples included.

SHARP Program VA026 - PC-1211 - 3-point Gaussian Integration

2-page paper featuring a 5-line BASIC program to evaluate the definite integral between given limits of an arbitrary user-supplied function f(x) using the 3-point Gauss-Legendre quadrature formula applied over a number of subintervals. Two worked examples included.

SHARP Program VA038 - PC-1211 - Multiprecision Factorial

2-page paper featuring a 5-line BASIC program to compute the exact multiprecision value of N! for a given N. Two worked examples included.

SHARP Program VA044 - PC-1211 - NxN Matrix Inversion

2-page paper featuring a 5-line BASIC program to compute the inverse of a given NxN matrix, up to 13x13. Two worked examples included.

SHARP Program VA046 - PC-1211 Multiprecision E

2-page paper featuring a 6-line BASIC program to compute up to 572 digits of Euler's constant e (=2.71828+). Two worked sample runs included.

SHARP Program VA071 - PC-1211 Truth Tables Generator

3 page paper featuring an 8-line BASIC program to help generate truth tables for logical expressions having 3 or 4 logical variables, recognizing tautologies and contradictions. Three worked examples included.

SHARP Program VA135 - PC-1350 Producing Digits of Pi one at a time

2-page paper featuring a 7-line BASIC program for the SHARP PC-1350/1360 pocket computers and compatibles as a proof-of-concept example of implementing a spigot algorithm to produce digits of Pi one at a time. It will also run in most any BASIC version with minimal changes.


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).