EasyManua.ls Logo

HP 15c Collector's Edition User Manual

HP 15c Collector's Edition
308 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #116 background imageLoading...
Page #116 background image
104 Section 9: Subroutines
Example: Nesting. The following subroutine, labeled “.4”, calculates the
value of the expression
x
2
+y
2
+z
2
+
t
2
as part of a larger calculation
in a larger program. The subroutine calls upon another subroutine (a
nested subroutine), labeled “.5”, to do the repetitive squaring.
The program is executed after placing the variables t, z, y, and x into the
T-, Z-, Y-, and X-registers.
Keystrokes
´
b
.4
Start of main
subroutine.
|
x
2
.
G
.5
Calculates
y
2
and
2
y
2
.
G
.5
1
Calculates
2
and
2
y
2
2
.
G
.5
2
Calculates
t
2
and
2
y
2
2
t
2
.
¤
3
x
2
+ y
2
+ z
2
+ t
2
|
n
End of main subroutine;
returns to main program.
´
b
.5
Start of nested
subroutine.
®
|
x
Calculates a square and
adds
it to current sum of
squares.
+
|
n
End of nested sub
-
routine;
returns to main subroutine.
If you run the subroutine (with its nested subroutine) alone using x = 4.3,
y = 7.9, z = 1.3, and t = 8.0, the answer you get upon pressing G .4 is
12.1074.

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the HP 15c Collector's Edition and is the answer not in the manual?

HP 15c Collector's Edition Specifications

General IconGeneral
ModelHP 15c Collector's Edition
CategoryCalculator
TypeScientific
Power SourceBattery
ManufacturerHP
DisplayLCD
Functionscomplex numbers, matrix operations

Summary

Introduction

This Handbook

Outlines the structure of the manual, detailing its parts and how to use it for learning.

The HP Community

Discusses user groups and websites for HP calculator enthusiasts and information sharing.

Part I: HP 15c Fundamentals

Section 1: Getting Started

Covers basic operations like powering on, keyboard layout, and primary/alternate functions.

Section 2: Numeric Functions

Explains essential numeric operations including logs, trig, powers, and conversions.

Section 3: The Automatic Memory Stack, LAST X, and Data Storage

Details the RPN stack, LAST X register, and data storage operations.

Part II: HP 15c Programming

Section 6: Programming Basics

Introduces core programming concepts: creating, loading, running programs, and memory.

Section 8: Program Branching and Controls

Covers controlling program flow using branching, loops, and conditional tests.

Part III: HP 15c Advanced Functions

Section 11: Calculating With Complex Numbers

Covers entering, manipulating, and performing calculations with complex numbers.

Section 12: Calculating With Matrices

Explains matrix operations, including dimensioning, element access, and calculations.

Section 13: Finding the Roots of an Equation

Details using the SOLVE function for numerical root finding and equation solving.

Section 14: Numerical Integration

Explains how to perform numerical integration using the ∫f(x)dx key and subroutines.

Appendix A: Error Conditions

Error 8: No Root

Explains the error when the SOLVE function cannot find a root.

Error 0: Improper Mathematics Operation

Lists and explains errors related to mathematical operations and illegal arguments.

Appendix D: A Detailed Look at SOLVE

How SOLVE Works

Explains the numerical technique and logic behind the SOLVE algorithm.

Finding Several Roots

Discusses methods for finding multiple roots of an equation using the SOLVE function.

Related product manuals