ArticleslgStudy

computer science

HP-42S

HP-42S is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand HP-42S rather than just read about it. In short: The HP-42S RPN Scientific is a programmable RPN Scientific hand held calculator introduced by Hewlett-Packard in 1988. It is a popular calculator designed for science and engineering students.

HP-42S — main illustration
HP-42S — illustration

Key takeaways

  • HP-42S belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect HP-42S to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of HP-42S from memory before moving on to harder problems.

Reference excerpt

The HP-42S RPN Scientific is a programmable RPN Scientific hand held calculator introduced by Hewlett-Packard in 1988. It is a popular calculator designed for science and engineering students.

Overview 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. 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. 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). Additionally, it features a two-line dot matrix display, which made stack manipulation easier to understand. Production of the 42S ended in 1995.

Specifications

Series: Pioneer Code Name: Davinci Introduction: 1988-10-31 64 KB of ROM 8 KB of RAM Functions: Over 350 Expandability: Officially no other than IR printing (32 KB memory upgrade and over-clocking hardware hacks are possible) Peripherals: HP 82240A infrared printer

Features All basic scientific functions (including hyperbolic functions) Statistics (including curve fitting and forecasting) Probability (including factorial, random numbers and Gamma function) Equation solver (root finder) that can solve for any variable in an equation Numerical integration for calculating definite integrals Matrix operations (including a matrix editor, dot product, cross product and solver for simultaneous linear equations) Complex numbers (including polar coordinates representation) Vector functions Named variables, registers and binary flags Graphic display with graphics functions and adjustable contrast Menus with submenus and mode settings (also custom programmable) that use the bottom line of the display to label the top row of keys Sound (piezoelectric beeper) Base conversion, integer arithmetic and binary and logic manipulation of numbers in binary, octal, decimal and hexadecimal systems Catalogs for reviewing and using items stored in memory Programmability (keystroke programming with branching, loops, tests and flags) The ability to run programs written for the HP-41C series of calculators

Programming

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 HP-42S uses a superset of the HP-41CX FOCAL language. All programs are stored in one continuous program space, and may be created and edited by switching to programming mode, using the PRGM key. Subroutines are enclosed in LBL/Label (name of subroutine) and RTN/Return (halts execution unless it is in a subroutine in which case it returns to the caller). Keystrokes (of functions) are enclosed between LBL and RTN or .END. In a running program, a GTO label causes program execution to branch to the specified label and continue running at that line. Executing a GTO instruction from the keyboard moves the program pointer to the corresponding label. No program lines are executed. XEQ is used in much the same way with one important difference: after an XEQ instruction has transferred execution to the specified label, the next RTN (return) or END instruction causes the program to branch back to the instruction that immediately follows the XEQ instruction. Programs/Subroutines can also be executed with the help XEQ label (Execute) key. The important difference between the XEQ and GTO is that XEQ executes the label and returns to previous subroutine and continues execution from the line following XEQ, whereas GTO branches to the label specified and doesn't return. GTO.. packs the current subroutines and moves to new program space.GTO.nnnn can be used to reach a particular line of program.

Programming examples A simple program to calculate area of circle

Program instructions like STOP, PROMPT, INPUT halt the program execution, which can be continued by pressing R/S. VIEW is used to view contents of a register, For example R in the above example.

Using Integral and Equation Solver It is necessary to write a program or subroutine that evaluates f(x) for the function which needs to be solved or integrated. Variables used in program should be declared using MVAR Here is a sample program to solve the equation °F = (9/5×°C) + 32

After, accessing the solver using Shift 7 (SOLVER ), select program TEMP. In a similar way, expressions can be integrated. After selecting the variable of integration, enter the lower limit and then press on LLIM, similarly input ULIM (upper limit) and ACC (accuracy).

Emulators

HP 42s can be accessed through Android Emulators like Emu42 and Free42.

Reference Books Guides and Collections of Keystroke Programs Documentation for the HP 42S calculator at hpcalc.org

HP-42S Owner's Manual HP-42S Programming Examples & Techniques Step-by-Step Solutions: Electrical Engineering (42S) Step-by-Step Solutions: Mechanical Engineering (42S) Advanced Circuit Analysis with the HP-42S An Easy Course in Using the HP-42S Educational Texts on RPN calculators

Algorithms for RPN Calculators Scientific Analysis on the Pocket Calculator Engineering Statistics with a Programmable Calculator Applied Mathematical Physics with Programmable Pocket Calculators Mathematical Astronomy with a Pocket Calculator Handbook of Electronic Design and Analysis Procedures using Programmable Calculators Calculator Programs for Chemical Engineers(Vol 1 & 2) Collection of Algorithms/Keystroke Programs for HP 41/HP 42S

Software Library for HP 41 Programs(Compatible with HP 42S)

See also FOCAL character set Comparison of HP graphing calculators HP calculators List of Hewlett-Packard pocket calculators NOMAS (support)

References

… excerpt ends here. Continue reading the full article.

Illustrations

HP-42S illustration
HP-42S: HP-42S battery compartment and the IR diode
HP-42S battery compartment and the IR diode
HP-42S: HP-42S calculator internal teardown
HP-42S calculator internal teardown
HP-42S: Emu 42
Emu 42
HP-42S: WP 34s
WP 34s

Worked examples

Example 1 — a first encounter with HP-42S

Start with the simplest possible case. Write down what HP-42S claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to HP-42S before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about HP-42S ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of HP-42S

In research
HP-42S appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses HP-42S in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
HP-42S is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer-related introductions in 1988, HP Pioneer series calculators, HP calculators, so understanding it makes those chapters shorter.
In everyday life
Look for HP-42S outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “HP-42S” →

How to study HP-42S in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what HP-42S means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain HP-42S out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is HP-42S in simple terms?

The HP-42S RPN Scientific is a programmable RPN Scientific hand held calculator introduced by Hewlett-Packard in 1988. It is a popular calculator designed for science and engineering students.

Why does HP-42S matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study HP-42S?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on HP-42S.

Tags

  • Computer-related introductions in 1988
  • HP Pioneer series calculators
  • HP calculators
  • HP programmable calculators

Keep exploring