hp39gs Manual PDF
hp39gs Manual PDF
hp39gs Manual PDF
user's guide
Edition3
Part Number F2223AA-90001
title.fm Page ii Thursday, July 13, 2006 10:29 AM
Notice
REGISTER YOUR PRODUCT AT: www.register.hp.com
Hewlett-Packard Company
16399 West Bernardo Drive
MS 8-600
San Diego, CA 92127-1899
USA
Printing History
Edition 2 December 2003
Edition 3 June 2005
EnterpriseTOC.fm Page i Wednesday, May 3, 2006 5:01 PM
Contents
Preface
Manual conventions .............................................................. P-1
Notice ................................................................................. P-2
1 Getting started
On/off, cancel operations......................................................1-1
The display ..........................................................................1-2
The keyboard .......................................................................1-3
Menus .................................................................................1-8
Input forms ...........................................................................1-9
Mode settings .....................................................................1-10
Setting a mode...............................................................1-11
Aplets (E-lessons).................................................................1-12
Aplet library ..................................................................1-16
Aplet views....................................................................1-16
Aplet view configuration..................................................1-18
Mathematical calculations ....................................................1-19
Using fractions....................................................................1-25
Complex numbers ...............................................................1-29
Catalogs and editors ...........................................................1-30
2 Aplets and their views
Aplet views ..........................................................................2-1
About the Symbolic view ...................................................2-1
Defining an expression (Symbolic view) ..............................2-1
Evaluating expressions ......................................................2-3
About the Plot view ...........................................................2-5
Setting up the plot (Plot view setup).....................................2-5
Exploring the graph ..........................................................2-7
Other views for scaling and splitting the graph ..................2-13
About the numeric view...................................................2-16
Setting up the table (Numeric view setup) ..........................2-16
Exploring the table of numbers .........................................2-17
Building your own table of numbers..................................2-19
Build Your Own menu keys...........................................2-20
Example: plotting a circle ................................................2-20
i
EnterpriseTOC.fm Page ii Wednesday, May 3, 2006 5:01 PM
3 Function aplet
About the Function aplet........................................................ 3-1
Getting started with the Function aplet ................................ 3-1
Function aplet interactive analysis........................................... 3-9
Plotting a piecewise-defined function ................................ 3-12
4 Parametric aplet
About the Parametric aplet .................................................... 4-1
Getting started with the Parametric aplet............................. 4-1
5 Polar aplet
Getting started with the Polar aplet ......................................... 5-1
6 Sequence aplet
About the Sequence aplet...................................................... 6-1
Getting started with the Sequence aplet .............................. 6-1
7 Solve aplet
About the Solve aplet............................................................ 7-1
Getting started with the Solve aplet .................................... 7-2
Use an initial guess............................................................... 7-5
Interpreting results ................................................................ 7-6
Plotting to find guesses .......................................................... 7-7
Using variables in equations ................................................ 7-10
8 Linear Solver aplet
About the Linear Solver aplet ................................................. 8-1
Getting started with the Linear Solver aplet.......................... 8-1
9 Triangle Solve aplet
About the Triangle Solver aplet .............................................. 9-1
Getting started with the Triangle Solver aplet....................... 9-1
10 Statistics aplet
About the Statistics aplet...................................................... 10-1
Getting started with the Statistics aplet.............................. 10-1
Entering and editing statistical data ...................................... 10-6
Defining a regression model.......................................... 10-12
Computed statistics ........................................................... 10-14
Plotting............................................................................ 10-15
Plot types .................................................................... 10-16
Fitting a curve to 2VAR data ......................................... 10-17
Setting up the plot (Plot setup view) ................................ 10-18
Trouble-shooting a plot ................................................. 10-19
ii
EnterpriseTOC.fm Page iii Wednesday, May 3, 2006 5:01 PM
iii
EnterpriseTOC.fm Page iv Wednesday, May 3, 2006 5:01 PM
iv
EnterpriseTOC.fm Page v Wednesday, May 3, 2006 5:01 PM
v
EnterpriseTOC.fm Page vi Wednesday, May 3, 2006 5:01 PM
vi
HP 39gs English.book Page 1 Wednesday, December 7, 2005 11:24 PM
Preface
The HP 39gs is a feature-rich graphing calculator. It is
also a powerful mathematics learning tool. The HP 39gs
is designed so that you can use it to explore mathematical
functions and their properties.
You can get more information on the HP 39gs from
Hewlett-Packards Calculators web site. You can
download customized aplets from the web site and load
them onto your calculator. Customized aplets are special
applications developed to perform certain functions, and
to demonstrate mathematical concepts.
Hewlett Packards Calculators web site can be found at:
http://www.hp.com/calculators
Manual conventions
The following conventions are used in this manual to
represent the keys that you press and the menu options
that you choose to perform the described operations.
Key presses are represented as follows:
, , , etc.
Shift keys, that is the key functions that you access by
pressing the key first, are represented as
follows:
CLEAR, MODES, ACOS, etc.
Numbers and letters are represented normally, as
follows:
5, 7, A, B, etc.
Menu options, that is, the functions that you select
using the menu keys at the top of the keypad are
represented as follows:
, , .
Input form fields and choose list items are represented
as follows:
Function, Polar, Parametric
Your entries as they appear on the command line or
within input forms are represented as follows:
2*X2-3X+5
P-1
Preface.fm Page 2 Thursday, July 13, 2006 10:33 AM
Notice
This manual and any examples contained herein are
provided as-is and are subject to change without notice.
Except to the extent prohibited by law, Hewlett-Packard
Company makes no express or implied warranty of any
kind with regard to this manual and specifically disclaims
the implied warranties and conditions of merchantability
and fitness for a particular purpose and Hewlett-Packard
Company shall not be liable for any errors or for
incidental or consequential damage in connection with
the furnishing, performance or use of this manual and the
examples herein.
19941995, 19992000, 20032006 Hewlett-
Packard Development Company, L.P.
The programs that control your HP 39gs are copyrighted
and all rights are reserved. Reproduction, adaptation, or
translation of those programs without prior written
permission from Hewlett-Packard Company is also
prohibited.
P-2
HP 39gs English.book Page 1 Wednesday, December 7, 2005 11:24 PM
Getting started
Protective cover The calculator is provided with a slide cover to protect the
display and keyboard. Remove the cover by grasping
both sides of it and pulling down.
You can reverse the slide cover and slide it onto the back
of the calculator. this will help prevent you losing the
cover while you are using the calculator.
To prolong the life of the calculator, always place the
cover over the display and keyboard when you are not
using the calculator.
The display
To adjust the Simultaneously press and (or ) to increase (or
contrast decrease) the contrast.
Parts of the
display
Title
History
Edit line
Menu key
labels
Menu key or soft key labels. The labels for the menu
keys current meanings. is the label for the first
menu key in this picture. Press means to press the
first menu key, that is, the leftmost top-row key on the
calculator keyboard.
Edit line. The line of current entry.
History. The HOME display ( ) shows up to four
lines of history: the most recent input and output. Older
lines scroll off the top of the display but are retained in
memory.
Title. The name of the current aplet is displayed at the top
of the HOME view. RAD, GRD, DEG specify whether
Radians, Grads or Degrees angle mode is set for HOME.
The and symbols indicate whether there is more
history in the HOME display. Press the and to
scroll in the HOME display.
NOTE This users guide contains images from the HP 39gs and
does not display the menu key label.
Annunciator Description
Busy.
The keyboard
Menu keys
HP 39gs
Graphing Calculator
Menu Key
Labels
Menu Keys
Alpha Key
Shift Key
Enter
Key
Key Meaning
Entry/Edit keys
The entry and edit keys are:
Key Meaning
(CANCEL) Cancels the current operation if the
calculator is on by pressing .
Pressing , then OFF turns the
calculator off.
Accesses the function printed in blue
above a key.
Returns to the HOME view, for
performing calculations.
Accesses the alphabetical
characters printed in orange below
a key. Hold down to enter a string
of characters.
Enters an input or executes an
operation. In calculations,
acts like =. When or
is present as a menu key,
acts the same as pressing or
.
Enters a negative number. To enter
25, press 25. Note: this is not
the same operation that the subtract
button performs ( ).
Enters the independent variable by
inserting X, T, , or N into the edit
line, depending on the current
active aplet.
Deletes the character under the
cursor. Acts as a backspace key if
the cursor is at the end of the line.
CLEAR Clears all data on the screen. On a
settings screen, for example Plot
Setup, CLEAR returns all
settings to their default values.
, , , Moves the cursor around the
display. Press first to move to
the beginning, end, top or bottom.
Shifted keystrokes
There are two shift keys that you use to access the
operations and characters printed above the keys:
and .
Key Description
Inactive keys If you press a key that does not operate in the current
context, a warning symbol like this ! appears. There is
no beep.
Menus
A menu offers you a choice
of items. Menus are
displayed in one or two
columns.
Input forms
An input form shows several fields of information for you
to examine and specify. After highlighting the field to
edit, you can enter or edit a number (or expression). You
can also select options from a list ( ). Some input
forms include items to check ( ). See below for
examples input forms.
Reset input form To reset a field to its default values in an input form, move
values the cursor to that field and press . To reset all default
field values in the input form, press CLEAR.
Mode settings
You use the Modes input form to set the modes for HOME.
HINT Although the numeric setting in Modes affects only
HOME, the angle setting controls HOME and the current
aplet. The angle setting selected in Modes is the angle
setting used in both HOME and current aplet. To further
configure an aplet, you use the SETUP keys (
and ).
Setting Options
Setting a mode
This example demonstrates how to change the angle
measure from the default mode, radians, to degrees for
the current aplet. The procedure is the same for changing
number format and decimal mark modes.
2. Press to display a
list of choices.
3. Press to select
Degrees, and press
. The angle measure
changes to degrees.
4. Press to return to
HOME.
HINT Whenever an input form has a list of choices for a field,
you can press to cycle through them instead of using
.
Aplets (E-lessons)
Aplets are the application environments where you
explore different classes of mathematical operations. You
select the aplet that you want to work with.
Aplets come from a variety of sources:
Built-in the HP 39gs (initial purchase).
Aplets created by saving existing aplets, which have
been modified, with specific configurations. See
Creating new aplets based on existing aplets on
page 19-1.
Downloaded from HPs Calculators web site.
Copied from another calculator.
Aplets are stored in the Aplet
library. See Aplet library
on page 1-16 for further
information.
You can modify
configuration settings for the graphical, tabular, and
Trig Explorer aplet The Trig Explorer aplet is used to investigate the
behaviour of the graph of y = a sin ( bx + c ) + d as the
values of a, b, c and d change, both by manipulating the
equation and seeing the change in the graph, or by
manipulating the graph and seeing the change in the
equation.
Press , select Trig
Explorer, and then press
to display the screen
shown right.
Aplet library
Aplets are stored in the Aplet library.
To open an aplet Press to display the Aplet library menu. Select the
aplet and press or .
From within an aplet, you can return to HOME any time
by pressing .
Aplet views
When you have configured an aplet to define the relation
or data that you want to explore, you can display it in
different views. Here are illustrations of the three major
aplet views (Symbolic, Plot, and Numeric), the six
supporting aplet views (from the VIEWS menu), and the
two user-defined views (Note and Sketch).
Note: some apletssuch as the Linear Solver aplet and
the Triangle Solver apletonly have a single view, the
Numeric view.
Select Plot-Table
Splits the screen into the plot
and the data table. See
Other views for scaling and
splitting the graph on
page 2-13 for futher information.
Select Plot-Detail
Splits the screen into the plot
and a close-up.
See Other views for scaling and splitting the graph on
page 2-13 for further information.
Overlay Plot The VIEWS menu contains the Overlay Plot view.
view
Select Overlay Plot
Plots the current
expression(s) without erasing
any pre-existing plot(s).
See Other views for scaling and splitting the graph on
page 2-13 for further information.
To save aplet You can save an aplet configuration that you have used,
configuration and transfer the aplet to other HP 39gs calculators. See
Creating new aplets based on existing aplets on
page 19-1.
Mathematical calculations
The most commonly used math operations are available
from the keyboard. Access to the rest of the math
functions is via the MATH menu ( ).
To access programming commands, press CMDS.
See Programming commands on page 18-13 for
further information.
Where to start The home base for the calculator is the HOME view
( ). You can do all calculations here, and you can
access all operations.
2
23 14 8
Example Calculate ---------------------------- ln ( 45 ) :
3
23
14
8
3
45
Long results If the result is too long to fit on the display line, or if you
want to see an expression in textbook format, press
to highlight it and then press .
4 7
Scientific A number like 5 10 or 3.21 10 is written in
notation scientific notation, that is, in terms of powers of ten. This
is simpler to work with than 50000 or 0.000000321. To
(powers of 10) enter numbers like these, use EEX. (This is easier than
using 10 .)
13 23
( 4 10 ) ( 6 10 )
Example Calculate ----------------------------------------------------
5
3 10
4 EEX
13
6 EEX
23 3 EEX
5
Entering... Calculates...
45 sin (45 + )
45 sin (45) +
85 9 85 9
85 9 85 9
Input
Output
Last input
Last output
Edit line
To reuse the last Press ANS (last answer) to put the last result from the
result HOME display into an expression. ANS is a variable that
is updated each time you press .
Example See how ANS retrieves and reuses the last result
(50), and updates ANS (from 50 to 75 to 100).
50 25
You can use the last result as the first expression in the edit
line without pressing ANS. Pressing , , , or
, (or other operators that require a preceding
argument) automatically enters ANS before the operator.
You can reuse any other expression or value in the HOME
display by highlighting the expression (using the arrow
keys), then pressing . See Using previous results
on page 1-22 for more details.
The variable ANS is different from the numbers in HOMEs
display history. A value in ANS is stored internally with the
full precision of the calculated result, whereas the
displayed numbers match the display mode.
HINT When you retrieve a number from ANS, you obtain the
result to its full precision. When you retrieve a number
from the HOMEs display history, you obtain exactly what
was displayed.
Storing a value You can save an answer in a variable and use the
in a variable variable in later calculations. There are 27 variables
available for storing real values. These are A to Z and .
See Chapter 14, Variables and memory management
for more information on variables. For example:
1. Perform a calculation.
45 8 3
95 2 A
Key Function
Using fractions
To work with fractions in HOME, you set the number
format to Fraction or Mixed Fraction, as follows:
Precision set to 1:
Precision set to 2:
Precision set to 3:
Precision set to 4
MODES
Select
Fraction
4
3 2 3
4 5 7
8
Complex numbers
Complex results The HP 39gs can return a complex number as a result for
some math functions. A complex number appears as an
ordered pair (x, y), where x is the real part and y is the
imaginary part. For example, entering 1 returns (0,1).
To enter complex Enter the number in either of these forms, where x is the
numbers real part, y is the imaginary part, and i is the imaginary
constant, 1 :
(x, y) or
x + iy.
To enter i:
press
or
4 5
Z0
Catalog/Editor Contents
Aplet views
This section examines the options and functionality of the
three main views for the Function, Polar, Parametric, and
Sequence aplets: Symbolic, Plot, and Numeric views.
Press or to
select an aplet.
The Function,
Parametric, Polar, and Sequence aplets start in the
Symbolic view.
If the highlight is on an existing expression, scroll to
an empty lineunless you dont mind writing over the
expressionor, clear one line ( ) or all lines
( CLEAR).
For a Function
definition, enter
an expression to
define F(X). The
only independent
variable in the
expression is X.
For a
Parametric
definition, enter
a pair of
expressions to
define X(T) and
Y(T). The only
independent variable in the expressions is T.
For a Polar
definition, enter
an expression to
define R(). The
only independent
variable in the
expression is .
For a Sequence
definition, either
enter the first term,
or the first and
second terms, for U
(U1, or...U9, or
U0). Then define
the nth term of the sequence in terms of N or of
the prior terms, U(N1) and/or U(N2). The
expressions should produce real-valued
sequences with integer domains. Or define the
nth term as a non-recursive expression in terms of
n only. In this case, the calculator inserts the first
two terms based on the expression that you
define.
Note: You will have to enter the second term if
the hp39gs is unable to calculate it automatically.
Typically if Ux(N) depends on Ux(N2) then you
must enter Ux(2).
Evaluating expressions
In aplets In the Symbolic view, a variable is a symbol only, and
does not represent one specific value. To evaluate a
function in Symbolic view, press . If a function calls
another function, then resolves all references to
other functions in terms of their independent variable.
1. Choose the Function
aplet.
Select Function
B
F1
F2
3. Highlight F3(X).
4. Press
Note how the values
for F1(X) and F2(X) are
substituted into F3(X).
SYMB view keys The following table details the menu keys that you use to
work with the Symbolic view.
Key Meaning
Copies the highlighted expression to
the edit line for editing. Press
when done.
Checks/unchecks the current
expression (or set of expressions).
Only checked expression(s) are
evaluated in the Plot and Numeric
views.
Enters the independent variable in the
Function aplet. Or, you can use the
key on the keyboard.
Enters the independent variable in the
Parametric aplet. Or, you can use the
key on the keyboard.
Enters the independent variable in the
Polar aplet. Or, you can use the
key on the keyboard.
Enters the independent variable in the
Sequence aplet. Or, you can use the
key on the keyboard.
Displays the current expression in text
book form.
Resolves all references to other
definitions in terms of variables and
evaluates all arithmetic expressions.
Displays a menu for entering variable
names or contents of variables.
Field Meaning
Reset plot To reset the default values for all plot settings, press
settings CLEAR in the Plot Setup view. To reset the default
value for a field, highlight the field, and press .
PLOT view keys The following table details the keys that you use to work
with the graph.
Key Meaning
CLEAR Erases the plot and axes.
Offers additional pre-defined views
for splitting the screen and for scaling
(zooming) the axes.
Moves cursor to far left or far right.
or Interrupts plotting.
Trace a graph You can trace along a function using the or key
which moves the cursor along the graph. The display also
shows the current coordinate position (x, y) of the cursor.
Trace mode and the coordinate display are automatically
set when a plot is drawn.
Note: Tracing might not appear to exactly follow your
plot if the resolution (in Plot Setup view) is set to Faster.
This is because RES: FASTER plots in only every other
column, whereas tracing always uses every column.
In Function and Sequence Aplets: You can also
scroll (move the cursor) left or right beyond the edge of
the display window in trace mode, giving you a view of
more of the plot.
To jump directly to To jump straight to a value rather than using the Trace
a value function, use the menu key. Press , then enter
a value. Press to jump to the value.
To turn trace on/off If the menu labels are not displayed, press first.
Turn off trace mode by pressing .
Turn on trace mode by pressing .
To turn the coordinate display off, press .
Option Meaning
ZOOM examples The following screens show the effects of zooming options
on a plot of 3 sin x .
Plot of 3 sin x
Zoom In:
In
Un-zoom:
Un-zoom
Note: Press to move to
the bottom of the Zoom list.
Zoom Out:
Out
Now un-zoom.
X-Zoom In:
X-Zoom In
Now un-zoom.
X-Zoom Out:
X-Zoom Out
Now un-zoom.
Y-Zoom In:
Y-Zoom In
Now un-zoom.
Y-Zoom Out:
Y-Zoom Out
Zoom Square:
Square
To box zoom The Box Zoom option lets you draw a box around the
area you want to zoom in on by selecting the endpoints
of one diagonal of the zoom rectangle.
1. If necessary, press to turn on the menu-key
labels.
2. Press and select Box...
3. Position the cursor on one corner of the rectangle.
Press .
4. Use the cursor keys
( , etc.) to drag to
the opposite corner.
5. Press to zoom in
on the boxed area.
Split the screen The Plot-Detail view can give you two simultaneous views
of the plot.
1. Press . Select
Plot-Table and
press . The screen
displays the plot on the
left side and a table of
numbers on the right side.
Overlay plots If you want to plot over an existing plot without erasing
that plot, then use Overlay Plot instead of
. Note that tracing follows only the current
functions from the current aplet.
Integer scaling Integer scaling compresses the axes so that each pixel is
1 1 and the origin is near the screen center.
Numeric view The following table details the fields on the Numeric
settings Setup input form.
Field Meaning
Reset numeric To reset the default values for all table settings, press
settings CLEAR.
Key Meaning
Option Meaning
In Decreases the intervals for the
independent variable so a narrower
range is shown. Uses the NUMZOOM
factor in Numeric Setup.
Out Increases the intervals for the
independent variable so that a
wider range is shown. Uses the
NUMZOOM factor in Numeric Setup.
Decimal Changes intervals for the
independent variable to 0.1 units.
Starts at zero. (Shortcut to changing
NUMSTART and NUMSTEP.)
Integer Changes intervals for the
independent variable to 1 unit.
Starts at zero. (Shortcut to changing
NUMSTEP.)
Trig Changes intervals for independent
variable to /24 radian or 7.5
degrees or 81/3 grads. Starts at
zero.
Un-zoom Returns the display to the previous
zoom.
Automatic You can enter any new value in the X column. When you
recalculation press , the values for the dependent variables are
recalculated, and the entire table is regenerated with the
same interval between X values.
F1 and F2
You enter entries are
numbers into generated
the X column automatically
Key Meaning
Select
Function
9
Function aplet
1
3
2
Set up the plot You can change the scales of the x and y axes, graph
resolution, and the spacing of the axis ticks.
3. Display plot settings.
SETUP-PLOT
Change the 6. You can change the scale to see more or less of your
scale graphs. In this example, choose Auto Scale. (See
VIEWS menu options on page 2-13 for a
description of Auto Scale).
Select Auto
Scale
From the Plot view menu, you can use the functions
on the FCN menu to find roots, intersections, slopes,
and areas for a function defined in the Function aplet
(and any Function-based aplets). The FCN functions
act on the currently selected graph. See FCN
functions on page 3-10 for further information.
To find a root of the 10.Move the cursor to the graph of the quadratic
quadratic function equation by pressing the or key. Then move
the cursor so that it is near x = 1 by pressing the
or key.
Select Root
To find the slope of 13.Find the slope of the quadratic function at the
the quadratic intersection point.
function
Select Slope
To find the signed 14.To find the area between the two functions in the
area of the two range 2 x 1, first move the cursor to
functions F1 ( x ) = 1 x and select the signed area option.
To find the 19. Move the cursor to the quadratic equation and find
extremum of the the extremum of the quadratic.
quadratic
Select Extremum
HINT The Root and Extremum functions return one value only
even if the function has more than one root or extremum.
The function finds the value closest to the position of the
cursor. You need to re-locate the cursor to find other roots
or extrema that may exist.
Access FCN The FCN variables are contained on the VARS menu.
variables To access FCN variables in HOME:
or to choose a
variable
or to choose a variable
Function Description
Shading area You can shade a selected area between functions. This
process also gives you an approximate measurement of
the area shaded.
1. Open the Function aplet. The Function aplet opens in
the Symbolic view.
2. Select the expressions whose curves you want to
study.
x + 2 ;x 1
f( x ) = x2 ; 1 < x 1
4 x ;x 1
2
CHARS
1
CHARS > 1
AND CHARS 1
CHARS >1
Parametric aplet
Select Degrees
The Plot Setup input form has two fields not included
in the Function aplet, TRNG and TSTEP. TRNG
specifies the range of t values. TSTEP specifies the
step value between t values.
5. Set the TRNG and TSTEP so that t steps from 0 to
360 in 5 steps.
360
5
Overlay plot 8. Plot a triangle graph over the existing circle graph.
PLOT
120
A triangle is displayed
rather than a circle (without changing the equation)
because the changed value of TSTEP ensures that
points being plotted are 120 apart instead of nearly
continuous.
You are able to explore the graph using trace, zoom,
split screen, and scaling functionality available in the
Function aplet. See Exploring the graph on page 2-
7 for further information.
Polar aplet
2
Define the 2. Define the polar equation r = 2 cos ( 2 ) cos ( ) .
expression 2
2
Specify plot 3. Specify the plot settings. In this example, we will use
settings the default settings, except for the RNG fields.
SETUP-PLOT
CLEAR
4
Sequence aplet
1 1
8
8
Select Cobweb
Display the table 6. Display the table of values for this example.
Solve aplet
27 78
16 67
100
HINT If the Decimal Mark setting in the Modes input form
( MODES) is set to Comma, use instead of .
Plot the The Plot view shows one graph for each side of the
equation selected equation. You can choose any of the
variables to be the independent variable.
2 2
The current equation is V = U + 2AD .
2
One of these is Y = V , with V = 27.78 , that is,
Y = 771.7284 . This graph will be a horizontal line.
2
The other graph will be Y = U + 2AD , with
U = 16.67 and D = 100 , that is,
Y = 200A + 277.8889 . This graph is also a line. The
desired solution is the value of A where these two
lines intersect.
Key Meaning
Number format You can change the number format for the Solve aplet in
the Numeric Setup view. The options are the same as in
HOME MODES: Standard, Fixed, Scientific, and
Engineering. For the latter three, you also specify how
many digits of accuracy you want. See Mode settings
on page 1-10 for more information.
You might find it handy to set a different number format
for the Solve aplet if, for example, you define equations
to solve for the value of money. A number format of
Fixed 2 would be appropriate in this case.
Interpreting results
After Solve has returned a solution, press in the
Numeric view for more information. You will see one of
the following three messages. Press to clear the
message.
Message Condition
If Solve could not find a solution, you will see one of the
following two messages.
Message Condition
The Root-Finder You can watch the process of the root-finder calculating
at work and searching for a root. Immediately after pressing
to start the root-finder, press any key except .
You will see two intermediate guesses and, to the left, the
sign of the expression evaluated at each guess. For
example:
+ 2 2.219330555745
1 21.31111111149
You can watch as the root-finder either finds a sign
reversal or converges on a local extrema or does not
converge at all. If there is no convergence in process, you
might want to cancel the operation (press ) and start
over with a different initial guess.
AT 2
X = V0T +
2
Solve aplet 7-7
HP 39gs English.book Page 8 Wednesday, December 7, 2005 11:24 PM
X
V
T
A
T 2
2. Find the solution for T (time) when X=30, V=2, and
A=4. Enter the values for X, V, and A; then highlight
the independent variable, T.
30
2
4
to highlight T
3. Use the Plot view to find an initial guess for T. First set
appropriate X and Y ranges in the Plot Setup. With
equation X = V x T + A x T 2 /2, the plot will produce
two graphs: one for Y = X and one for
X = V x T + A x T 2 /2. Since we have set X = 30 in
this example, one of the graphs will be Y = 30 .
Therefore, make the YRNG 5 to 35. Keep the XRNG
default of 6.5 to 6.5.
SETUP-PLOT
5 35
3
50
Home variables All home variables (other than those for aplet settings, like
Xmin and Ytick) are global, which means they are
shared throughout the different aplets of the calculator. A
value that is assigned to a home variable anywhere
remains with that variable wherever its name is used.
Therefore, if you have defined a value for T (as in the
above example) in another aplet or even another Solve
equation, that value shows up in the Numeric view for this
Solve equation. When you then redefine the value for T
in this Solve equation, that value is applied to T in all
other contexts (until it is changed again).
This sharing allows you to work on the same problem in
different places (such as HOME and the Solve aplet)
without having to update the value whenever it is
recalculated.
HINT As the Solve aplet uses existing variable values, be sure
to check for existing variable values that may affect the
solve process. (You can use CLEAR to reset all
values to zero in the Solve aplets Numeric view if you
wish.)
6x + 9y + 6z = 5
7x + 10y + 8z = 10
6x + 4y = 6
Hence we need the three-equation input form.
.
4. The cursor moves to the next co-efficient. Enter that co-
efficient, press or , and continue doing
likewise until you have defined all the equations.
Note: you can enter the name of a variable for any
co-efficient or constant. Press and begin
entering the name. The menu key appears.
Press that key to lock alphabetic entry mode. Press it
again to cancel the lock.
Once you have entered
enough values for the
solver to be able to
generate solutions,
those solutions appear
on the display. In the
example at the right,
the solver was able to find solutions for x, y, and z as
Specify the 3. Using the arrow keys, move to a field whose value
known values you know, enter the value and press or .
Repeat for each known value.
Note that the lengths of
the sides are labeled
A, B, and C, and the
angles are labeled ,
, and . It is important
that you enter the
known values in the
appropriate fields. In our example, we know the
length of two sides and the angle at which those
sides meet. Hence if we specify the lengths of sides A
and B, we must enter the angle as (since is the
angle where A and B meet). If instead we entered the
10
Statistics aplet
2 1400
1 920
3 1100
5 2265
5 2890
4 2200
Open the 1. Open the Statistics aplet and clear existing data by
Statistics aplet pressing .
Select Statistics
2. Select .
You need to select because in this example
we are analyzing a dataset comprising two
variables: advertising minutes and resulting sales.
2 1
3 5
5 4
1400 920
1100 2265
2890 2200
Select Linear
Explore statistics 6. Find the mean advertising time (MEANX) and the
mean sales (MEANY).
9 times
The value is .8995.
Setup plot 8. Change the plotting range to ensure all the data
points are plotted (and select a different point mark, if
you wish).
SETUP-PLOT
7
100
4000
Draw the 10.Draw the regression curve (a curve to fit the data
regression curve points).
to move to the
FIT1 field
Predict values 13.To find the predicted sales figure if advertising were
to go up to 6 minutes:
S (to highlight
Stat-Two)
(to highlight
PREDY)
6
14.Return to the Plot view.
Key Meaning
160
165
170
175
180
3. Find the mean of the
sample.
Ensure the /
menu key label
reads . Press
to see the
statistics calculated from the sample data in C1.
Key Meaning
Height Frequency
(cm)
160 5
165 3
170 8
175 2
180 1
5
3
8
2
1
8. Display the computed
statistics.
Save data The data that you enter is automatically saved. When you
are finished entering data values, you can press a key for
another Statistics view (like ), or you can switch to
another aplet or HOME.
Edit a data set In the Numeric view of the Statistics aplet, highlight the
data value to change. Type a new value and
press , or press to copy the value to the edit
line for modification. Press after modifying the
value on the edit line.
Insert data Highlight the entry following the point of insertion. Press
, then enter a number. It will write over the zero that
was inserted.
Angle Setting You can ignore the angle measurement mode unless your
Fit definition (in Symbolic view) involves a trigonometric
function. In this case, you should specify in the mode
screen whether the trigonometric units are to be
interpreted in degrees, radians, or grads.
Computed statistics
One-variable
Statistic Definition
Two-variable
Statistic Definition
MEANX Mean of x- (independent) values.
X Sum of x-values.
X2 Sum of x2-values.
MEANY Mean of y- (dependent) values.
Y Sum of y-values.
Y2 Sum of y2-values.
XY Sum of each xy.
SCOV Sample covariance of independent
and dependent data columns.
PCOV Population covariance of
independent and dependent data
columns
CORR Correlation coefficient of the
independent and dependent data
columns for a linear fit only
(regardless of the Fit chosen).
Returns a value from 0 to 1, where
1 is the best fit.
RELERR The relative error for the selected
fit. Provides a measure of accuracy
for the fit.
scatter plots ( ).
Once you have entered your data ( ), defined your
data set ( ), and defined your Fit model for two-
variable statistics ( SETUP-SYMB), you can plot your
data. You can plot up to five scatter or box-and-whisker
plots at a time. You can plot only one histogram at a time.
Plot types
Histogram One-variable statistics.
The numbers below the plot
mean that the current bar
(where the cursor is) starts at
0 and ends at 2 (not
including 2), and the
frequency for this column, (that is, the number of data
elements that fall between 0 and 2) is 1. You can see
information about the next bar by pressing the key.
Histogram range HRNG enables you to specify the range of values for a set
of histogram bars. The range runs from the left edge of the
leftmost bar to the right edge of the rightmost bar. You
can limit the range to exclude any values you suspect are
outliers.
For instance, the data set (1,1), (3,9), (4,16), (2,4) would
be plotted and traced in the order (1,1), (2,4), (3,9),
(4,16).
Trouble-shooting a plot
If you have problems plotting, check that you have the
following:
The correct or menu label on (Numeric
view).
The correct fit (regression model), if the data set is
two-variable.
Only the data sets to compute or plot are
checkmarked (Symbolic view).
Find predicted 1. In Plot view, draw the regression curve for the data
values set.
11
Inference aplet
Example data When you first access an input form for an Inference test,
by default, the input form contains example data. This
example data is designed to return meaningful results that
relate to the test. It is useful for gaining an understanding
of what the test does, and for demonstrating the test. The
calculators on-line help provides a description of what
the example data represents.
ZTest: 1
< 0
The table below lists the fields in this view for our current
Z-Test: 1 example.
Field Definition
name
x Sample mean
n Sample size
Open the 1. Open the Statistics aplet and reset the current
Statistics aplet settings.
Select
Statistics
529
295
952
259
925
592
HINT If the Decimal Mark setting in the Modes input form
( modes) is set to Comma, use instead of .
Open Inference 6. Open the Inference aplet and clear current settings.
aplet Select
Inference
Select T-Int: 1
Import the data 10.Import the data from the Statistics aplet. Note: The
data from C1 is displayed by default.
11.Specify a 90%
confidence interval in the C: field.
to move to
the C: field
0.9
Hypothesis tests
You use hypothesis tests to test the validity of hypotheses
that relate to the statistical parameters of one or two
populations. The tests are based on statistics of samples
of the populations.
The HP 39gs hypothesis tests use the Normal
Z-distribution or Students t-distribution to calculate
probabilities.
One-Sample Z-Test
Menu name Z-Test: 1
On the basis of statistics from a single sample, the
One-Sample Z-Test measures the strength of the evidence
for a selected hypothesis against the null hypothesis. The
null hypothesis is that the population mean equals a
specified value 0: = 0.
You select one of the following alternative hypotheses
against which to test the null hypothesis:
H 1 : 1 < 2
H 1 : 1 > 2
H 1 : 1 2
x Sample mean.
n Sample size.
Significance level.
Result Description
Two-Sample Z-Test
Menu name Z-Test: 12
On the basis of two samples, each from a separate
population, this test measures the strength of the evidence
for a selected hypothesis against the null hypothesis. The
null hypothesis is that the mean of the two populations are
equal (H 0: 1= 2).
You select one of the following alternative hypotheses
against which to test the null hypothesis:
H 1 : 1 < 2
H 1 : 1 > 2
H 1 : 1 2
x2 Sample 2 mean.
n1 Sample 1 size.
n2 Sample 2 size.
1 Population 1 standard
deviation.
Result Description
One-Proportion Z-Test
Menu name Z-Test: 1
On the basis of statistics from a single sample, this test
measures the strength of the evidence for a selected
hypothesis against the null hypothesis. The null hypothesis
is that the proportion of successes in the two populations
is equal: H0 : = 0
You select one of the following alternative hypotheses
against which to test the null hypothesis:
H 1 : < 0
H 1 : > 0
H 1 : 0
n Sample size.
Significance level.
Result Description
Two-Proportion Z-Test
Menu name Z-Test: 1 2
On the basis of statistics from two samples, each from a
different population, the Two-Proportion Z-Test measures
the strength of the evidence for a selected hypothesis
against the null hypothesis. The null hypothesis is that the
proportion of successes in the two populations is equal
H0: 1 = 2.
You select one of the following alternative hypotheses
against which to test the null hypothesis:
H 1 : 1 < 2
H 1 : 1 > 2
H 1 : 1 2
X1 Sample 1 mean.
X2 Sample 2 mean.
n1 Sample 1 size.
n2 Sample 2 size.
Significance level.
Result Description
One-Sample T-Test
Menu name T-Test: 1
The One-sample T-Test is used when the population
standard deviation is not known. On the basis of statistics
from a single sample, this test measures the strength of the
evidence for a selected hypothesis against the null
hypothesis. The null hypothesis is that the sample mean
has some assumed value,
0 : = 0
You select one of the following alternative hypotheses
against which to test the null hypothesis:
H 1 : < 0
H 1 : > 0
H 1 : 0
11-12 Inference aplet
HP 39gs English.book Page 13 Wednesday, December 7, 2005 11:24 PM
x Sample mean.
n Sample size.
Significance level.
Result Description
Two-Sample T-Test
Menu name T-Test: 1 2
The Two-sample T-Test is used when the population
standard deviation is not known. On the basis of statistics
from two samples, each sample from a different
population, this test measures the strength of the evidence
for a selected hypothesis against the null hypothesis. The
null hypothesis is that the two populations means are
equal H 0: 1 = 2.
You select one of the following alternative hypotheses
against which to test the null hypothesis
H 1 : 1 < 2
H 1 : 1 > 2
H 1 : 1 2
Inputs The inputs are:
Field Definition
name
x1 Sample 1 mean.
x2 Sample 2 mean.
n1 Sample 1 size.
n2 Sample 2 size.
Significance level.
Result Description
Confidence intervals
The confidence interval calculations that the HP 39gs can
perform are based on the Normal Z-distribution or
Students t-distribution.
One-Sample Z-Interval
Menu name Z-INT: 1
This option uses the Normal Z-distribution to calculate a
confidence interval for m, the true mean of a population,
when the true population standard deviation, s, is known.
Field Definition
name
x Sample mean.
n Sample size.
C Confidence level.
Result Description
Two-Sample Z-Interval
Menu name Z-INT: 1 2
This option uses the Normal Z-distribution to calculate a
confidence interval for the difference between the means
of two populations, 1 2, when the population standard
deviations, 1 and 2, are known.
Field Definition
name
x1 Sample 1 mean.
x2 Sample 2 mean.
n1 Sample 1 size.
n2 Sample 2 size.
C Confidence level.
Result Description
One-Proportion Z-Interval
Menu name Z-INT: 1
This option uses the Normal Z-distribution to calculate a
confidence interval for the proportion of successes in a
population for the case in which a sample of size, n, has
a number of successes, x.
Field Definition
name
n Sample size.
C Confidence level.
Result Description
Two-Proportion Z-Interval
Menu name Z-INT: 1 2
This option uses the Normal Z-distribution to calculate a
confidence interval for the difference between the
proportions of successes in two populations.
Field Definition
name
n1 Sample 1 size.
n2 Sample 2 size.
C Confidence level.
Result Description
One-Sample T-Interval
Menu name T-INT: 1
This option uses the Students t-distribution to calculate a
confidence interval for m, the true mean of a population,
for the case in which the true population standard
deviation, s, is unknown.
Field Definition
name
x1 Sample mean.
n Sample size.
C Confidence level.
Result Description
Two-Sample T-Interval
Menu name T-INT: 1 2
This option uses the Students t-distribution to calculate a
confidence interval for the difference between the means
of two populations, 1 2, when the population
standard deviations, s1and s2, are unknown.
Field Definition
name
x1 Sample 1 mean.
x2 Sample 2 mean.
n1 Sample 1 size.
n2 Sample 2 size.
C Confidence level.
Result Description
12
Background
The Finance Solver application provides you with the
ability of solving time-value-of-money (TVM) and
amortization problems. These problems can be used for
calculations involving compound interest applications as
well as amortization tables.
Compound interest is the process by which earned
interest on a given principal amount is added to the
principal at specified compounding periods, and then the
a positive
number
1 2 3 4 5 (PMT)
Money Payment Payment Payment Payment
paid out is (PMT) (PMT) (PMT) (PMT) Future value
a negative (FV)
number Equal payments
Loan
} 1 2 3 4 5
}
}
}
}
}
Equal periods
PV
PV
Capitalized
} value of
lease
1 2 3 4 5
FV
1 2 3 4 5
PMT PMT PMT PMT PMT
PV
PV = $16,500 FV = 0
l%YR = 5.5
N = 5 x 12 = 60
P/YR = 12; End mode
1 2 59 60
PMT = ?
l%YR = 6.5
PV = $150,000 N = 30 x 12 = 360 (for PMT)
N = 10 x 12 = 120 (for balloon payment)
P/YR = 12; End mode
1 2 59 60
PMT = ?
Balloon payment,
FV = ?
Calculating Amortizations
Amortization calculations, which also use the TVM
variables, determine the amounts applied towards
principal and interest in a payment or series of payments.
To calculate amortizations:
1. Start the Finance Solver as indicated at the beginning
of this section.
2. Set the following TVM variables:
a Number of payments per year (P/YR)
b Payment at beginning or end of periods
3. Store values for the TVM variables I%YR, PV, PMT,
and FV, which define the payment schedule.
4. Press the soft menu key and enter the
number of payments to amortize in this batch.
5. Press the soft menu key to amortize a batch of
payments. The calculator will provide for you the
amount applied to interest, to principal, and the
remaining balance after this set of payments have
been amortized.
13
Math functions
The HP 39gs contains many math functions. The functions
are grouped in categories. For example, the Matrix
category contains functions for manipulating matrices.
The Probability category (shown as Prob. on the MATH
menu) contains functions for working with probability.
To use a math function, you enter the function onto the
command line, and include the arguments in parentheses
after the function. You can also select a math function
from the MATH menu.
Function categories
Keyboard functions
The most frequently used functions are available directly
from the keyboard. Many of the keyboard functions also
accept complex numbers as arguments.
324 returns 18
n
Takes the nth root of x.
root NTHROOT value
Example
3 NTHROOT 8 returns 2
Calculus functions
The symbols for differentiation and integration are
available directly form the keyboard and S
respectivelyas well as from the MATH menu.
(0,s1,2*X+3,X)
finds the indefinite result 3*s1+2*(s1^2/2)
See To find the indefinite integral using formal
variables on page 13-23 for more information on
finding indefinite integrals.
Constants
The constants available from the MATH FUNCTIONS
menu are mathematical constants. These are described in
this section. The hp 39gs has two other menus of
constants: program constants and physical constants.
These are described in Program constants and physical
constants on page 13-24.
Conversions
The conversion functions are found on the Convert
menu. They enable you to make the following
conversions.
Hyperbolic trigonometry
The hyperbolic trigonometry functions can also take
complex numbers as arguments.
x
EXP Natural exponential. This is more accurate than e due
to limitations of the power function.
EXP(value)
x
EXPM1 Exponent minus 1 : e 1 . This is more accurate than
EXP when x is close to zero.
EXPM1(value)
List functions
These functions work on list data. See List functions on
page 16-6.
Loop functions
The loop functions display a result after evaluating an
expression a given number of times.
Example
RECURSE(U,U(N-1)*N,1,2) U1(N)
Stores a factorial-calculating function named U1.
When you enter U1(5), for example, the function
calculates 5! (120).
Matrix functions
These functions are for matrix data stored in matrix
variables. See Matrix functions and commands on
page 15-10.
Polynomial functions
Polynomials are products of constants (coefficients) and
variables raised to powers (terms).
For x4+2x325x226x+120:
POLYEVAL([1,2,-25,-26,120],8) returns
3432.
For x4+2x325x226x+120:
POLYROOT([1,2,-25,-26,120]) returns
[2,-3,4,-5].
HINT The results of POLYROOT will often not be easily seen in
HOME due to the number of decimal places, especially if
they are complex numbers. It is better to store the results
of POLYROOT to a matrix.
Probability functions
COMB Number of combinations (without regard to order) of n
things taken r at a time: n!/(r!(n-r)).
COMB(n, r)
Example
COMB(5,2) returns 10. That is, there are ten
different ways that five things can be combined two
at a time.!
Factorial of a positive integer. For non-integers, ! = (x +
1). This calculates the gamma function.
value!
Real-number functions
Some real-number functions can also take complex
arguments.
Examples
CEILING(3.2) returns 4
CEILING(-3.2) returns -3
FNROOT Function root-finder (like the Solve aplet). Finds the value
for the given variable at which expression most nearly
evaluates to zero. Uses guess as initial estimate.
FNROOT(expression, variable, guess)
Example
FNROOT(M*9.8/600-1,M,1) returns
61.2244897959.
Example
%CHANGE(20,50) returns 150
Two-variable statistics
These are functions for use with two-variable statistics.
See Two-variable on page 10-15.
Symbolic functions
The symbolic functions are used for symbolic
manipulations of expressions. The variables can be
formal or numeric, but the result is usually in symbolic
form (not a number). You will find the symbols for the
symbolic functions = and | (where) in the CHARS menu
( CHARS) as well as the MATH menu.
QUAD((X-1)2-7,X) returns
(2+s1*5.29150262213)/2
Test functions
The test functions are logical operators that always return
either a 1 (true) or a 0 (false).
IFTE(X>0,X2,X3)
Trigonometry functions
The trigonometry functions can also take complex
numbers as arguments. For SIN, COS, TAN, ASIN,
ACOS, and ATAN, see the Keyboard category.
Symbolic calculations
The HP 39gs has the ability to perform symbolic
calculations, for example, symbolic integration and
differentiation. You can perform symbolic calculations in
HOME and in the Function aplet.
Finding derivatives
The HP 39gs can perform symbolic differentiation on
some functions. There are two ways of using the HP 39gs
to find derivatives.
You can perform differentiations in HOME by using
the formal variables, S1 to S5.
You can perform differentiations of functions of X in
the Function aplet.
S1
S1
2
S1
To find derivatives To find the derivative of the function in the Function aplets
in the Function Symbolic view, you define two functions and define the
aplets Symbolic second function as a derivative of the first function. For
2
view example, to differentiate sin ( x ) + 2 cos x :
1. Access the Function aplets Symbolic view and define
F1.
F1
4. Press to display
the result. Note: Use
the arrow keys to view
the entire function.
|
variables (0 , S 1, 3 X 5, X )
2
Program constants
The program constants are numbers that have been
assigned to various calculator settings to enable you to
test for or specify such a setting in a program. For
example, the various display formats are assigned the
following numbers:
1 Standard
2 Fixed
3 Scientific
4 Engineering
5 Fraction
6 Mixed fraction
In a program, you could store the constant number of a
particular format into a variable and then subsequently
test for that particular format.
1. Press .
2. Press .
3. Use the arrow keys to navigate through the options.
Physical constants
There are 29 physical constantsfrom the fields of
chemistry, physics and quantum mechanicsthat you
can use in calculations. A list of all these constants can be
found in Physical Constants on page R-16.
To access the menu of physical constants:
1. Press .
2. Press .
Example
Suppose you want to know the potential energy of a mass
2
of 5 units according to the equation E = mc .
1. Enter 5
14
Introduction
The HP 39gs has approximately 200K of user memory.
The calculator uses this memory to store variables,
perform computations, and store history.
A variable is an object that you create in memory to hold
data. The hp 39gs has two types of variables, home
variables and aplet variables.
Home variables are available in all aplets. For
example, you can store real numbers in variables A
to Z and complex numbers in variables Z0 to Z9.
These can be numbers you have entered, or the
results of calculations. These variables are available
within all aplets and within any programs.
Aplet variables apply only to a single aplet. Aplets
have specific variables allocated to them which vary
from aplet to aplet.
You use the calculators memory to store the following
objects:
copies of aplets with specific configurations
new aplets that you download
aplet variables
home variables
variables created through a catalog or editor, for
example a matrix or a text note
programs that you create.
You can use the Memory Manager ( MEMORY) to
view the amount of memory available. The catalog views,
which are accessible via the Memory Manager, can be
used to transfer variables such as lists or matrices
between calculators.
4. Press .
To store the results If the value you want to store is in the HOME view display
of a calculation history, for example the results of a previous calculation,
you need to copy it to the command line, then store it.
1. Perform the calculation for the result you want to store.
3 8 6
3
2 5 3
B
To recall a value To recall a variables value, type the name of the variable
and press .
A
2. Use the arrow keys or press the alpha key of the first
letter in the category to select a variable category.
For example, to select
the Matrix category,
press .
Note: In this instance,
there is no need to
press the ALPHA key.
3. Move the highlight to the variables column.
to select L2
L3
Complex Z0 to Z9
For example, (1,2) Z0 or 2+3i
Z1. You can enter a complex
number by typing (r,i), where r represents
the real part, and i represents the
imaginary part.
Graphic G0 to G9
SeeGraphic commands on page 18-21
for more information on storing graphic
objects via programming commands. See
To store into a graphics variable on
page 17-5 for more information on
storing graphic object via the sketch view.
List L0 to L9
For example, {1,2,3} L1.
Real A to Z and .
For example, 7.45 A.
Aplet variables Most aplet variables store values that are unique to a
particular aplet. These include symbolic expressions and
equations (see below), settings for the Plot and Numeric
views, and the results of some calculations such as roots
and intersections.
See the Reference Information chapter for more
information about aplet variables.
To access an aplet 1. Open the aplet that contains the variable you want to
variable recall.
Memory Manager
You can use the Memory Manager to determine the
amount of available memory on the calculator. You can
also use Memory Manager to organize memory. For
example, if the available memory is low, you can use the
Memory Manager to determine which aplets or variables
consume large amounts of memory. You can make
deletions to free up memory.
Free memory is
displayed in the top
right corner and the
body of the screen lists
each category, the memory it uses, and the
percentage of the total memory it uses.
2. Select the category with which you want to work and
press . Memory Manager displays memory
details of variables within the category.
15
Matrices
Introduction
You can perform matrix calculations in HOME and in
programs. The matrix and each row of a matrix appear
in brackets, and the elements and rows are separated by
commas. For example, the following matrix:
1 2 3
4 5 6
is displayed in the history as:
[[1,2,3],[4,5,6]]
(If the Decimal Mark mode is set to Comma, then separate
each element and each row with a period.)
You can enter matrices directly in the command line, or
create them in the matrix editor.
Matrices 15-1
HP 39gs English.book Page 2 Wednesday, December 7, 2005 11:24 PM
Matrix Catalog The table below lists the operations of the menu keys in
keys the Matrix Catalog, as well as the use of Delete ( )
and Clear ( CLEAR).
Key Meaning
15-2 Matrices
HP 39gs English.book Page 3 Wednesday, December 7, 2005 11:24 PM
Matrices 15-3
HP 39gs English.book Page 4 Wednesday, December 7, 2005 11:24 PM
Matrix edit keys The following table lists the matrix edit key operations.
Key Meaning
15-4 Matrices
HP 39gs English.book Page 5 Wednesday, December 7, 2005 11:24 PM
To create a matrix 1. Enter the matrix in the edit line. Start and end the
in HOME matrix and each row with square brackets (the shifted
and keys).
2. Separate each element and each row with a comma.
Example: [[1,2],[3,4]].
Matrices 15-5
HP 39gs English.book Page 6 Wednesday, December 7, 2005 11:24 PM
728
M5 1 2
M5
.
An attempt to store an element to a row or column beyond
the size of the matrix results in an error message.
Matrix arithmetic
You can use the arithmetic functions (+, , , / and
powers) with matrix arguments. Division left-multiplies by
the inverse of the divisor. You can enter the matrices
themselves or enter the names of stored matrix variables.
The matrices can be real or complex.
For the next examples, store [[1,2],[3,4]] into M1 and
[[5,6],[7,8]] into M2.
1 2
3 4
MATRIX
5 6
7
8
15-6 Matrices
HP 39gs English.book Page 7 Wednesday, December 7, 2005 11:24 PM
M1
M2
To multiply and For division by a scalar, enter the matrix first, then the
divide by a scalar operator, then the scalar. For multiplication, the order of
the operands does not matter.
The matrix and the scalar can be real or complex. For
example, to divide the result of the previous example by
2, press the following keys:
2
To multiply two To multiply the two matrices M1 and M2 that you created
matrices for the previous example, press the following keys:
M1 M
2
To multiply a matrix by a
vector, enter the matrix
first, then the vector. The
number of elements in the vector must equal the number
of columns in the matrix.
To raise a matrix to You can raise a matrix to any power as long as the power
a power is an integer. The following example shows the result of
raising matrix M1, created earlier, to the power of 5.
M1 5
Note: You can also raise a
matrix to a power without
first storing it as a variable.
Matrices 15-7
HP 39gs English.book Page 8 Wednesday, December 7, 2005 11:24 PM
M1
2
To invert a matrix You can invert a square matrix in HOME by typing the
matrix (or its variable name) and pressing x1
. Or you can use the matrix INVERSE command.
Enter INVERSE(matrixname) in HOME and press
.
To negate each You can change the sign of each element in a matrix by
element pressing before the matrix name.
15-8 Matrices
HP 39gs English.book Page 9 Wednesday, December 7, 2005 11:24 PM
5 7
1
3. Return to the Matrix
Catalog.
MATRIX
M2
1
x
M1
Matrices 15-9
HP 39gs English.book Page 10 Wednesday, December 7, 2005 11:24 PM
Argument conventions
For row# or column#, supply the number of the row
(counting from the top, starting with 1) or the number
of the column (counting from the left, starting with 1).
The argument matrix can refer to either a vector or a
matrix.
Matrix functions
COLNORM Column Norm. Finds the maximum value (over all
columns) of the sums of the absolute values of all elements
in a column.
COLNORM(matrix)
15-10 Matrices
HP 39gs English.book Page 11 Wednesday, December 7, 2005 11:24 PM
Matrices 15-11
HP 39gs English.book Page 12 Wednesday, December 7, 2005 11:24 PM
ROWNORM Row Norm. Finds the maximum value (over all rows) for
the sums of the absolute values of all elements in a row.
ROWNORM(matrix)
15-12 Matrices
HP 39gs English.book Page 13 Wednesday, December 7, 2005 11:24 PM
Examples
Identity Matrix You can create an identity matrix with the IDENMAT
function. For example, IDENMAT(2) creates the 22
identity matrix [[1,0],[0,1]].
You can also create an identity matrix using the
MAKEMAT (make matrix) function. For example, entering
MAKEMAT(IJ,4,4) creates a 4 4 matrix showing the
numeral 1 for all elements except zeros on the diagonal.
The logical operator returns 0 when I (the row number)
and J (the column number) are equal, and returns 1 when
they are not equal.
Matrices 15-13
HP 39gs English.book Page 14 Wednesday, December 7, 2005 11:24 PM
1 2 3 14
2 1 1 3
4 2 2 14
15-14 Matrices
HP 39gs English.book Page 15 Wednesday, December 7, 2005 11:24 PM
Matrices 15-15
HP 39gs English.book Page 16 Wednesday, December 7, 2005 11:24 PM
HP 39gs English.book Page 1 Wednesday, December 7, 2005 11:24 PM
16
Lists
You can do list operations in HOME and in programs. A
list consists of comma-separated real or complex
numbers, expressions, or matrices, all enclosed in braces.
A list may, for example, contain a sequence of real
numbers such as {1,2,3}. (If the Decimal Mark mode is
set to Comma, then the separators are periods.) Lists
represent a convenient way to group related objects.
There are ten list variables available, named L0 to L9. You
can use them in calculations or expressions in HOME or
in a program. Retrieve the list names from the VARS
menu, or just type their names from the keyboard.
You can create, edit, delete, send, and receive named
lists in the List catalog ( LIST). You can also create
and store listsnamed or unnnamedin HOME lists
List variables are identical in behaviour to the columns
C1.C0 in the Statistics aplet. You can store a statistics
column to a list (or vice versa) and use any of the list
functions on the statistics columns, or the statistics
functions, on the list variables.
Lists 16-1
HP 39gs English.book Page 2 Wednesday, December 7, 2005 11:24 PM
Key Meaning
16-2 Lists
HP 39gs English.book Page 3 Wednesday, December 7, 2005 11:24 PM
List edit keys When you press to create or change a list, the
following keys are available to you:
Key Meaning
Create a list in 1. Enter the list on the edit line. Start and end the list
HOME with braces (the shifted and keys) and
separate each element with a comma.
Lists 16-3
HP 39gs English.book Page 4 Wednesday, December 7, 2005 11:24 PM
4. Press .
16-4 Lists
HP 39gs English.book Page 5 Wednesday, December 7, 2005 11:24 PM
2. Press or to
highlight the name of
the list you want to edit
(L1, etc.) and press
to display the list
contents.
3. Press to the
insertion position, then
press , and press
9.
4. Press .
Lists 16-5
HP 39gs English.book Page 6 Wednesday, December 7, 2005 11:24 PM
Deleting lists
To delete a list In the List catalog, highlight the list name and press .
You are prompted to confirm that you want to delete the
contents of the highlighted list variable. Press to
delete the contents.
Transmitting lists
You can send lists to calculators or PCs just as you can
aplets, programs, matrices, and notes.
1. Align the HP 39gs calculators infrared ports (or
connect the calculators using an appropriate cable).
2. Open the List catalogs on both calculators.
3. Highlight the list to send.
4. Press and choose the method of sending
(infrared or cable).
5. Press on the receiving calculator and choose
the method of receiving (infrared or cable).
For more information on sending and receiving files, see
Sending and receiving aplets on page 19-4.
List functions
List functions are found in the MATH menu. You can use
them in HOME, as well as in programs.
You can type in the name
of the function, or you can
copy the name of the
function from the List
category of the MATH
menu. Press (the
alpha L character key). This
highlights the List category in the left column. Press to
move the cursor to the right column which contain the List
functions, select a function, and press .
List functions have the following syntax:
Functions have arguments that are enclosed in
parentheses and separated by commas. Example:
16-6 Lists
HP 39gs English.book Page 7 Wednesday, December 7, 2005 11:24 PM
Lists 16-7
HP 39gs English.book Page 8 Wednesday, December 7, 2005 11:24 PM
Example
In HOME, store {3,5,8,12,17,23} in L5 and find the first
differences for the list.
{3,5,8,12,17,23
}
L5
L
Select LIST
L5
L Select
MAKELIST
A
A 23
27 1
16-8 Lists
HP 39gs English.book Page 9 Wednesday, December 7, 2005 11:24 PM
Example In this example, use the Statistics aplet to find the mean,
median, maximum, and minimum values of the elements
in the list, L1.
1. Create L1 with values 88, 90, 89, 65, 70, and 89.
{ 88 90
89 65 70 89
}
L1
Lists 16-9
HP 39gs English.book Page 10 Wednesday, December 7, 2005 11:24 PM
L1
C1
Select
Statistics
16-10 Lists
HP 39gs English.book Page 1 Wednesday, December 7, 2005 11:24 PM
17
Introduction
The HP 39gs has text and picture editors for entering
notes and sketches.
Each aplet has its own independent Note view and
Sketch view. Notes and sketches that you create in
these views are associated with the aplet. When you
save the aplet, or send it to another calculator, the
notes and sketches are saved or sent as well.
The Notepad is a collection of notes independent of
all aplets. These notes can also be sent to another
calculator via the Notepad Catalog.
Sketch keys
Key Meaning
DRAW keys
Key Meaning
To label parts of a 1. Press and type the text on the edit line. To lock
sketch the Alpha shift on, press (for uppercase) or
(for lowercase).
To make the label a smaller character size, turn off
before pressing .( is a toggle
between small and large font size). The smaller
character size cannot display lowercase letters.
2. Press .
3. Position the label where you want it by pressing the
, , , keys.
4. Press again to affix the label.
5. Press to continue
drawing, or press
to exit the
Sketch view.
To create a set of You can create a set of up to ten sketches. This allows for
sketches simple animation.
After making a sketch, press to add a new,
blank page. You can now make a new sketch, which
becomes part of the current set of sketches.
To view the next sketch in an existing set, press
. Hold down for animation.
To remove the current page in the current sketch
series, press .
To store into a You can define a portion of a sketch inside a box, and
graphics variable then store that graphic into a graphics variable.
1. In the Sketch view, display the sketch you want to
copy (store into a variable).
2. Press .
3. Highlight the variable name you want to use and
press .
4. Draw a box around the portion you want to copy:
move the cursor to one corner, press , then move
the cursor to the opposite corner, and press .
To import a You can copy the contents of a graphics variable into the
graphics variable Sketch view of an aplet.
The notepad
Subject to available memory, you can store as many
notes as you want in the Notepad ( NOTEPAD).
These notes are independent of any aplet. The Notepad
catalog lists the existing entries by name. It does not
include notes that were created in aplets Note views, but
these can be imported. See To import a note on
page 17-8.
Key Meaning
Opens the selected note for
editing.
Begins a new note, and asks
for a name.
Transmits the selected note to
another HP 39gs or PC.
Receives a note being
transmitted from another HP
39gs or PC.
Deletes the selected note.
CLEAR Deletes all notes in the
catalog.
To import a note You can import a note from the Notepad into an aplets
Note view, and vice versa. Suppose you want to copy a
note named Assignments from the Notepad into the
Function Note view:
1. In the Function aplet, display the Note view
( NOTE).
18
Programming
Introduction
This chapter describes how to program using the hp
39gs. In this chapter youll learn about:
using the Program catalog to create and edit
programs
programming commands
storing and retrieving variables in programs
programming variables.
HINT More information on programming, including examples
and special tools, can be found at HPs calculators web
site:
http://www.hp.com/calculators
Programming 18-1
HP 39gs English.book Page 2 Wednesday, December 7, 2005 11:24 PM
Program catalog
The Program catalog is where you create, edit, delete,
send, receive, or run programs. This section describes
how to
open the Program catalog
create a new program
enter commands from the program commands menu
enter functions from the MATH menu
edit a program
run and debug a program
stop a program
copy a program
send and receive a program
delete a program or its contents
customize an aplet.
Key Meaning
Programming 18-3
HP 39gs English.book Page 4 Wednesday, December 7, 2005 11:24 PM
Enter commands Until you become familiar with the HP 39gs commands,
the easiest way to enter commands is to select them from
the Commands menu from the Program editor. You can
also type in commands using alpha characters.
18-4 Programming
HP 39gs English.book Page 5 Wednesday, December 7, 2005 11:24 PM
Programming 18-5
HP 39gs English.book Page 6 Wednesday, December 7, 2005 11:24 PM
Key Meaning
18-6 Programming
HP 39gs English.book Page 7 Wednesday, December 7, 2005 11:24 PM
Using programs
Run a program From HOME, type RUN program_name.
or
From the Program catalog, highlight the program you
want to run and press
Regardless of where you start the program, all programs
run in HOME. What you see will differ slightly depending
on where you started the program. If you start the
program from HOME, the HP 39gs displays the contents
of Ans (Home variable containing the last result), when
the program has finished. If you start the program from
the Program catalog, the hp39gs returns you to the
Program catalog when the program ends.
Stop a program You can stop the running of a program at any time by
pressing CANCEL (the key). Note: You may have to
press it a couple of times.
Programming 18-7
HP 39gs English.book Page 8 Wednesday, December 7, 2005 11:24 PM
Copy a program You can use the following procedure if you want to make
a copy of your work before editingor if you want to use
one program as a template for another.
Transmit a You can send programs to, and receive programs from,
program other calculators just as you can send and receive aplets,
matrices, lists, and notes.
After aligning the calculators infrared ports, open the
Program catalogs on both calculators. Highlight the
program to send, then press on the sending
calculator and on the receiving calculator.
You can also send programs to, and receive programs
from, a remote storage device (aplet disk drive or
computer). This takes place via a cable connection and
requires an aplet disk drive or specialized software
running on a PC (such as a connectivity kit).
18-8 Programming
HP 39gs English.book Page 9 Wednesday, December 7, 2005 11:24 PM
2. Press .
Delete the You can clear the contents of a program without deleting
contents of a the program name.
program 1. Press PROGRM to open the Program catalog.
2. Highlight a program, then press .
3. Press CLEAR, then press .
4. The contents of the program are deleted, but the
program name remains.
Customizing an aplet
You can customize an aplet and develop a set of
programs to work with the aplet.
Use the SETVIEWS command to create a custom VIEWS
menu which links specially written programs to the new
aplet.
A useful method for customizing an aplet is illustrated
below:
1. Decide on the built-in aplet that you want to
customize. For example you could customize the
Function aplet or the Statistics aplet. The customized
aplet inherits all the properties of the built-in aplet.
Save the customized aplet with a unique name.
2. Customize the new aplet if you need to, for example
by presetting axes or angle measures.
3. Develop the programs to work with your customized
aplet. When you develop the aplets programs, use
the standard aplet naming convention. This allows
you to keep track of the programs in the Program
catalog that belong to each aplet. See Aplet naming
convention on page 18-10.
Programming 18-9
HP 39gs English.book Page 10 Wednesday, December 7, 2005 11:24 PM
Example
This example aplet is designed to demonstrate the
process of customizing an aplet. The new aplet is based
on the Function aplet. Note: This aplet is not intended to
serve a serious use, merely to illustrate the process.
18-10 Programming
HP 39gs English.book Page 11 Wednesday, December 7, 2005 11:24 PM
Select
Function
EXPERIMENT
2. Create a program
called EXP.ME1 with
contents as shown. This
program configures the
plot ranges, then runs a
program that allows
you to set the angle format.
3. Create a program
called EXP.ME2 with
contents as shown. This
program sets the
numeric view options
for the aplet, and runs
the program that you can use to configure the angle
mode.
4. Create a program
called EXP.ANG which
the previous two
programs call.
5. Create a program
called EXP.S which runs
when you start the
aplet, as shown. This
program sets the angle
mode to degrees, and
sets up the initial function that the aplet plots.
Programming 18-11
HP 39gs English.book Page 12 Wednesday, December 7, 2005 11:24 PM
18-12 Programming
HP 39gs English.book Page 13 Wednesday, December 7, 2005 11:24 PM
;EXP.ANG;0;
The program EXP.ANG is a small routine
that is called by other programs that the
aplet uses. This entry specifies that the
program EXP.ANG is transferred when the
aplet is transferred, but the space in the
first quotes ensures that no entry appears
on the menu.
Start;EXP.S;7:
This specifies the Start menu option. The
program that is associated with this entry,
EXP.S, runs automatically when you
start the aplet. Because this menu option
specifies view 7, the VIEWS menu opens
when you start the aplet.
You only need to run this program once to configure
your aplets VIEWS menu. Once the aplets VIEWS
menu is configured, it remains that way until you run
SETVIEWS again.
You do not need to include this program for your
aplet to work, but it is useful to specify that the
program is attached to the aplet, and transmitted
when the aplet is transmitted.
7. Return to the program
catalog. The programs
that you created should
appear as follows:
8. You must now the
program EXP.SV to execute the SETVIEWS command
and create the modified VIEWS menu. Check that the
name of the new aplet is highlighted in the Aplet
view.
9. You can now return to the Aplet library and press
to run your new aplet.
Programming commands
This section describes the commands for programming
with hp 39GS. You can enter these commands in your
program by typing them or by accessing them from the
Commands menu.
Programming 18-13
HP 39gs English.book Page 14 Wednesday, December 7, 2005 11:24 PM
Aplet commands
CHECK Checks (selects) the corresponding function in the current
aplet. For example, Check 3 would check F3 if the current
aplet is Function. Then a checkmark would appear next
to F3 in Symbolic view, F3 would be plotted in Plot view,
and evaluated in Numeric view.
CHECK n:
SELECT Selects the named aplet and makes it the current aplet.
Note: Quotes are needed if the name contains spaces or
other special characters.
SELECT apletname:
18-14 Programming
HP 39gs English.book Page 15 Wednesday, December 7, 2005 11:24 PM
Programming 18-15
HP 39gs English.book Page 16 Wednesday, December 7, 2005 11:24 PM
ProgramName
ProgramName is the name of the program that runs when
the corresponding menu entry is selected. All programs
that are identified in the aplets SETVIEWS command are
transferred when the aplet is transmitted.
ViewNumber
ViewNumber is the number of a view to start after the
program finishes running. For example, if you want the
menu option to display the Plot view when the associated
program finishes, you would specify 1 as the
ViewNumber value.
Including standard menu options
To include one of an aplets standard VIEWS menu
options in your customized menu, set up the arguments
trio as follows:
The first argument specifies the menu item name:
Leave the argument empty to use the standard
Views menu name for the item, or
Enter a menu item name to replace the standard
name.
The second argument specifies the program to run:
Leave the argument empty to run the standard
menu option.
Insert a program name to run the program before
the standard menu option is executed.
The third argument specifies the view and the menu
number for the item. Determine the menu number
from the View numbers table below.
Note: SETVIEWS with no arguments resets the views
to default of the base aplet.
18-16 Programming
HP 39gs English.book Page 17 Wednesday, December 7, 2005 11:24 PM
View numbers
The Function aplet views are numbered as follows:
Branch commands
Branch commands let a program make a decision based
on the result of one or more tests. Unlike the other
programming commands, the branch commands work in
logical groups. Therefore, the commands are described
together rather than each independently.
Programming 18-17
HP 39gs English.book Page 18 Wednesday, December 7, 2005 11:24 PM
Example
1 A :
IF A==1
THEN MSGBOX " A EQUALS 1" :
END:
IF... THEN... ELSE... Executes the true-clause sequence of commands if the test-
END clause is true, or the false-clause sequence of commands
if the test-clause is false.
IF test-clause
THEN true-clause ELSE false-clause END
Example
1 A :
IF A==1 THEN
MSGBOX "A EQUALS 1" :
ELSE
MSGBOX "A IS NOT EQUAL TO 1" :
END:
18-18 Programming
HP 39gs English.book Page 19 Wednesday, December 7, 2005 11:24 PM
Drawing commands
The drawing commands act on the display. The scale of
the display depends on the current aplet's Xmin, Xmax,
Ymin, and Ymax values. The following examples assume
the hp 39gs default settings with the Function aplet as the
current aplet.
Programming 18-19
HP 39gs English.book Page 20 Wednesday, December 7, 2005 11:24 PM
Example
ARC 0;0;2;0;2:
FREEZE:
Draws a circle centered
at (0,0) of radius 2. The
FREEZE command
causes the circle to
remain displayed on the screen until you press a key.
TLINE Toggles the pixels along the line from (x1, y1) to (x2, y2)
on and off. Any pixel that was turned off, is turned on;
any pixel that was turned on, is turned off. TLINE can be
used to erase a line.
TLINE x1;y1;x2;y2:
18-20 Programming
HP 39gs English.book Page 21 Wednesday, December 7, 2005 11:24 PM
Example
TLINE 0;0;3;3:
Erases previously drawn 45 degree line from (0,0) to
(3,3), or draws that line if it doesnt already exist.
Graphic commands
The graphic commands use the graphics variables G0
through G9or the Page variable from Sketchas
graphicname arguments. The position argument takes the
form (x,y). Position coordinates depend on the current
aplets scale, which is specified by Xmin, Xmax, Ymin,
and Ymax. The upper left corner of the target graphic
(graphic2) is at (Xmin,Ymax).
You can capture the current display and store it in G0 by
simultaneously pressing + .
Programming 18-21
HP 39gs English.book Page 22 Wednesday, December 7, 2005 11:24 PM
PLOT Puts graph from graphicname into the Plot view display.
PLOT graphicname:
18-22 Programming
HP 39gs English.book Page 23 Wednesday, December 7, 2005 11:24 PM
Loop commands
Loop hp allow a program to execute a routine repeatedly.
The HP 39gs has three loop structures. The example
programs below illustrate each of these structures
incrementing the variable A from 1 to 12.
DOUNTIL END Do ... Until ... End is a loop command that executes the
loop-clause repeatedly until test-clause returns a true
(nonzero) result. Because the test is executed after the
loop-clause, the loop-clause is always executed at least
once. Its syntax is:
Programming 18-23
HP 39gs English.book Page 24 Wednesday, December 7, 2005 11:24 PM
Matrix commands
The matrix commands take variables M0M9 as
arguments.
DELROW Delete Row. Deletes the specified row from the specified
matrix.
DELROW name;row_number:
EDITMAT Starts the Matrix Editor and displays the specified matrix.
If used in programming, returns to the program when user
presses .
EDITMAT name:
18-24 Programming
HP 39gs English.book Page 25 Wednesday, December 7, 2005 11:24 PM
SCALEADD Multiplies the row of the matrix name by value, then adds
this result to the second specified row.
SCALEADD name;value;row1;row2:
Programming 18-25
HP 39gs English.book Page 26 Wednesday, December 7, 2005 11:24 PM
Print commands
These commands print to an HP infrared printer, for
example the HP 82240B printer.
Prompt commands
BEEP Beeps at the frequency and for the time you specify.
BEEP frequency;seconds:
18-26 Programming
HP 39gs English.book Page 27 Wednesday, December 7, 2005 11:24 PM
Example
3 A:CHOOSE A;
"COMIC STRIPS";
"DILBERT";
"CALVIN&HOBBES";
"BLONDIE":
Programming 18-27
HP 39gs English.book Page 28 Wednesday, December 7, 2005 11:24 PM
Example
DISPXY
3.5;1.5;2;"HELLO
WORLD":
EDITMAT Matrix Editor. Opens the Matrix editor for the specified
matrix. Returns to the program when user presses
EDITMAT matrixname:
The EDITMAT command can also be used to create
matrices.
1. Press CMDS
18-28 Programming
HP 39gs English.book Page 29 Wednesday, December 7, 2005 11:24 PM
GETKEY Waits for a key, then stores the keycode rc.p in name,
where r is row number, c is column number, and p is key-
plane number. The key-planes numbers are: 1 for
unshifted; 2 for shifted; 4 for alpha-shifted; and 5 for both
alpha-shifted and shifted.
GETKEY name:
INPUT Creates an input form with a title bar and one field. The
field has a label and a default value. There is text help at
the bottom of the form. The user enters a value and
presses the menu key. The value that the user enters
is stored in the variable name. The title, label, and help
items are text strings and need to be enclosed in double
quotes.
Use CHARS to type the quote marks " ".
INPUT name;title,label;help;default:
Example
INPUT R; "Circular Area";
"Radius";
"Enter Number";1:
MSGBOX textitem:
Example
1 A:
MSGBOX "AREA IS: "*A^2:
You can also use the NoteText variable to provide text
arguments. This can be used to insert line breaks. For
example, press NOTE and type AREA IS .
The position line
MSGBOX NoteText " " *A^2:
will display the same message box as the previous
example.
Programming 18-29
HP 39gs English.book Page 30 Wednesday, December 7, 2005 11:24 PM
PROMPT Displays an input box with name as the title, and prompts
for a value for name. name can be a variable such as
AZ, , L1l9, C1C9 or Z1Z9.
PROMPT name:
Stat-One commands
DO1VSTATS Calculates STATS using datasetname and stores the
results in the corresponding variables: N, Tot, Mean,
PVar, SVar, PSDev, SSDev, Min, Q1, Median, Q3,
and Max. Datasetname can be H1, H2, ..., or H5.
Datasetname must include at least two data points.
DO1VSTATS datasetname:
Stat-Two commands
18-30 Programming
HP 39gs English.book Page 31 Wednesday, December 7, 2005 11:24 PM
Programming 18-31
HP 39gs English.book Page 32 Wednesday, December 7, 2005 11:24 PM
Plot-view variables
Area Contains the last value found by the Area function in Plot-
Function FCN menu.
18-32 Programming
HP 39gs English.book Page 33 Wednesday, December 7, 2005 11:24 PM
Grid Turns the background grid in Plot view on or off. From Plot
All Aplets setup, check (or uncheck) GRID.
or
In a program, type
1 Grid to turn the grid on.
0 Grid to turn the grid off (default).
n1 Hmin
n2 Hmax
where n 2 > n 1
Programming 18-33
HP 39gs English.book Page 34 Wednesday, December 7, 2005 11:24 PM
where n 2 > n 1
Root Contains the last value found by the Root function in the
Function Plot-FCN menu.
18-34 Programming
HP 39gs English.book Page 35 Wednesday, December 7, 2005 11:24 PM
Slope Contains the last value found by the Slope function in the
Function Plot-FCN menu.
Programming 18-35
HP 39gs English.book Page 36 Wednesday, December 7, 2005 11:24 PM
where n 2 > n 1
where n > 0
where n 2 > n 1
18-36 Programming
HP 39gs English.book Page 37 Wednesday, December 7, 2005 11:24 PM
Xtick Sets the distance between tick marks for the horizontal
All Aplets axis.
From the Plot Setup input form, enter a value for Xtick.
or
In a program, type
n Xtick where n > 0
Ytick Sets the distance between tick marks for the vertical axis.
All Aplets
From the Plot Setup input form, enter a value for Ytick.
or
In a program, type
Xmin / Xmax Sets the minimum and maximum horizontal values of the
All Aplets plot screen. Appears as the XRNG fields (horizontal
range) in the Plot Setup input form.
From Plot Setup, enter values for XRNG.
or
In a program, type
Programming 18-37
HP 39gs English.book Page 38 Wednesday, December 7, 2005 11:24 PM
n1 Xmin
n2 Xmax
where n 2 > n 1
Ymin / Ymax Sets the minimum and maximum vertical values of the plot
All Aplets screen. Appears as the YRNG fields (vertical range) in the
Plot Setup input form.
From Plot Setup, enter the values for YRNG.
or
In a program, type
n1 Ymin
n2 Ymax
where n 2 > n 1
18-38 Programming
HP 39gs English.book Page 39 Wednesday, December 7, 2005 11:24 PM
Symbolic-view variables
Angle Sets the angle mode.
All Aplets
From Symbolic Setup, choose Degrees, Radians, or
Grads for angle measure.
or
In a program, type
1 Angle for Degrees.
2 Angle for Radians.
3 Anglefor Grads.
Programming 18-39
HP 39gs English.book Page 40 Wednesday, December 7, 2005 11:24 PM
18-40 Programming
HP 39gs English.book Page 41 Wednesday, December 7, 2005 11:24 PM
Numeric-view variables
The following aplet variables control the Numeric view.
The value of the variable applies to the current aplet only.
Programming 18-41
HP 39gs English.book Page 42 Wednesday, December 7, 2005 11:24 PM
where n > 0
18-42 Programming
HP 39gs English.book Page 43 Wednesday, December 7, 2005 11:24 PM
Programming 18-43
HP 39gs English.book Page 44 Wednesday, December 7, 2005 11:24 PM
Note variables
The following aplet variable is available in Note view.
Sketch variables
The following aplet variables are available in Sketch
view.
n PageNum
HP 39gs English.book Page 1 Wednesday, December 7, 2005 11:24 PM
19
Extending aplets
Aplets are the application environments where you
explore different classes of mathematical operations.
You can extend the capability of the HP 39gs in the
following ways:
Create new aplets, based on existing aplets, with
specific configurations such as angle measure,
graphical or tabular settings, and annotations.
Transmit aplets between HP 39gs calculators via an
infra red link.
Download e-lessons (teaching aplets) from
Hewlett-Packards Calculator web site.
Program new aplets. See chapter 18,
Programming, for further details.
O
H
A
H
O A
A B
C
35
5
Resetting an aplet
Resetting an aplet clears all data and resets all default
settings.
To reset an aplet, open the Library, select the aplet and
press .
You can only reset an aplet that is based on a built-in
aplet if the programmer who created it has provided a
Reset option.
To sort the In the aplet library, press . Select the sorting scheme
aplet list and press .
Chronologically produces a chronological order
based on the date an aplet was last used. (The last-
used aplet appears first, and so on.)
Alphabetically produces an alphabetical order
by aplet name.
To delete an You cannot delete a built-in aplet. You can only clear its
aplet data and reset its default settings.
To delete a customized aplet, open the aplet library,
highlight the aplet to be deleted, and press . To
delete all custom aplets, press CLEAR.
Reference information
Glossary
aplet A small application, limited to one
topic. The built-in aplet types are
Function, Parametric, Polar,
Sequence, Solve, Statistics,
Inference, Finance, Trig Explorer,
Quad Explorer, Linear Solver and
Triangle Solve. An aplet can be filled
with the data and solutions for a
specific problem. It is reusable (like a
program, but easier to use) and it
records all your settings and
definitions.
command An operation for use in programs.
Commands can store results in
variables, but do not display results.
Arguments are separated by semi-
colons, such as DISP
expression;line#.
expression A number, variable, or algebraic
expression (numbers plus functions)
that produces a value.
function An operation, possibly with
arguments, that returns a result. It
does not store results in variables. The
arguments must be enclosed in
parentheses and separated with
commas (or periods in Comma
mode), such as
CROSS(matrix1,matrix2).
HOME The basic starting point of the
calculator. Go to HOME to do
calculations.
Library For aplet management: to start, save,
reset, send and receive aplets.
R-1
HP 39gs English.book Page 2 Wednesday, December 7, 2005 11:24 PM
R-2
ReferenceInfo.fm Page 3 Friday, December 16, 2005 10:00 AM
To reset using Press and hold the key and the third menu key
the keyboard simultaneously, then release them.
If the calculator does not respond to the above key
sequence, then:
1. Turn the calculator over and locate the small hole in
the back of the calculator.
2. Insert the end of a straightened metal paper clip into
the hole as far as it will go. Hold it there for 1
second, then remove it.
3. Press If necessary, press and the first and
last menu keys simultaneously. (Note: This will erase
your calculator memory.)
1. Press and hold the key, the first menu key, and
the last menu key simultaneously.
2. Release all keys in the reverse order.
Note: To cancel this process, release only the top-row
keys, then press the third menu key.
R-3
ReferenceInfo.fm Page 4 Friday, December 16, 2005 10:00 AM
2. Press and hold the key and the third menu key
simultaneously. Release the third menu key, then
release the key.
3. Press and hold the key, the first menu key, and
the sixth menu key simultaneously. Release the sixth
menu key, then release the first menu key, and then
release the key.
4. Locate the small hole in the back of the calculator.
Insert the end of a straightened metal paper clip into
the hole as far as it will go. Hold it there for 1
second, then remove it. Press the key.
5. Remove the batteries (see Batteries on page R-4),
press and hold the key for 10 seconds, and
then put the batteries back in. Press the key.
Operating details
Operating temperature: 0 to 45C (32 to 113F).
Storage temperature: 20 to 65C ( 4 to 149F).
Operating and storage humidity: 90% relative
humidity at 40C (104F) maximum. Avoid getting the
calculator wet.
Battery operates at 6.0V dc, 80mA maximum.
Batteries
The calculator uses 4 AAA(LR03) batteries as main power
and a CR2032 lithium battery for memory backup.
Before using the calculator, please install the batteries
according to the following procedure.
R-4
ReferenceInfo.fm Page 5 Friday, December 16, 2005 10:00 AM
To install the a. Press down the holder. Push the plate to the shown
backup battery direction and lift it.
R-5
HP 39gs English.book Page 6 Wednesday, December 7, 2005 11:24 PM
Variables
Home variables
The home variables are:
Complex Z1...Z9, Z0
Graphic G1...G9, G0
Library Function
Parametric
Polar
Sequence
Solve
Statistics
User-named
List L1...L9, L0
Matrix M1...M9, M0
Modes Ans
Date
HAngle
HDigits
HFormat
Ierr
Time
Notepad User-named
Program Editline
User-named
Real A...Z,
R-6
HP 39gs English.book Page 7 Wednesday, December 7, 2005 11:24 PM
Symbolic Angle F6
F1 F7
F2 F8
F3 F9
F4 F0
F5
Note NoteText
R-7
HP 39gs English.book Page 8 Wednesday, December 7, 2005 11:24 PM
Symbolic Angle Y5
X1 X6
Y1 Y6
X2 X7
Y2 Y7
X3 X8
Y3 Y8
X4 X9
Y4 Y9
X5 X0
Y0
Note NoteText
R-8
HP 39gs English.book Page 9 Wednesday, December 7, 2005 11:24 PM
Plot Axes
Connect Xcross
Coord Ycross
Grid Xtick
Indep Ytick
InvCross Xmin
Labels Xmax
Recenter Ymin
Simult Ymax
Umin Xzoom
Umax Yxoom
step
Tracing
Symbolic Angle R6
R1 R7
R2 R8
R3 R9
R4 R0
R5
Note NoteText
R-9
HP 39gs English.book Page 10 Wednesday, December 7, 2005 11:24 PM
Symbolic Angle U6
U1 U7
U2 U8
U3 U9
U4 U0
U5
Note NoteText
R-10
HP 39gs English.book Page 11 Wednesday, December 7, 2005 11:24 PM
Symbolic Angle E6
E1 E7
E2 E8
E3 E9
E4 E0
E5
Note NoteText
R-11
HP 39gs English.book Page 12 Wednesday, December 7, 2005 11:24 PM
Stat-One Max Q3
Mean PSDev
Median SSDev
Min PVar
N SVar
Q1 Tot
Stat-Two Corr X
Cov X2
Fit XY
MeanX Y
MeanY Y2
RelErr
Note NoteText
R-12
HP 39gs English.book Page 13 Wednesday, December 7, 2005 11:24 PM
Math functions
The math functions are:
Calculus
TAYLOR
Complex ARG IM
CONJ RE
Constant e MAXREAL
i MINREAL
Loop ITERATE
RECURSE
R-13
HP 39gs English.book Page 14 Wednesday, December 7, 2005 11:24 PM
Matrix COLNORM QR
COND RANK
CROSS ROWNORM
DET RREF
DOT SCHUR
EIGENVAL SIZE
EIGENVV SPECNORM
IDENMAT SPECRAD
INVERSE SVD
LQ SVL
LSQ TRACE
LU TRN
MAKEMAT
Stat-Two PREDX
PREDY
Symbolic = QUAD
ISOLATE QUOTE
LINEAR? |
R-14
HP 39gs English.book Page 15 Wednesday, December 7, 2005 11:24 PM
Program constants
The program constants are:
Angle Degrees
Grads
Radians
SeqPlot Cobweb
Stairstep
StatMode Stat1Var
Stat2Var
StatPlot Hist
BoxW
R-15
HP 39gs English.book Page 16 Wednesday, December 7, 2005 11:24 PM
Physical Constants
The physical constants are:
R-16
HP 39gs English.book Page 17 Wednesday, December 7, 2005 11:24 PM
Program commands
The program commands are:
Category Command
Aplet CHECK
SELECT
SETVIEWS
UNCHECK
Branch IF CASE
THEN IFERR
ELSE RUN
END STOP
Drawing ARC LINE
BOX PIXOFF
ERASE PIXON
FREEZE TLINE
Graphic DISPLAY MAKEGROB
DISPLAY PLOT
GROB PLOT
GROBNOT REPLACE
GROBOR SUB
GROBXOR ZEROGROB
Loop FOR UNTIL
= END
TO WHILE
STEP REPEAT
END END
DO BREAK
Matrix ADDCOL REDIM
ADDROW REPLACE
DELCOL SCALE
DELROW SCALEADD
EDITMAT SUB
RANDMAT SWAPCOL
SWAPROW
Print PRDISPLAY
PRHISTORY
PRVAR
Prompt BEEP FREEZE
CHOOSE GETKEY
CLRVAR INPUT
DISP MSGBOX
DISPXY PROMPT
DISPTIME WAIT
EDITMAT
Stat-One DO1VSTATS SETFREQ
RANDSEED SETSAMPLE
R-17
HP 39gs English.book Page 18 Wednesday, December 7, 2005 11:24 PM
Status messages
Message Meaning
R-18
HP 39gs English.book Page 19 Wednesday, December 7, 2005 11:24 PM
R-19
HP 39gs English.book Page 20 Wednesday, December 7, 2005 11:24 PM
HP 39gs English.book Page 1 Wednesday, December 7, 2005 11:24 PM
Limited Warranty
HP 39gs Graphing Calculator; Warranty period: 12
months
1. HP warrants to you, the end-user customer, that HP
hardware, accessories and supplies will be free from
defects in materials and workmanship after the date
of purchase, for the period specified above. If HP
receives notice of such defects during the warranty
period, HP will, at its option, either repair or replace
products which prove to be defective. Replacement
products may be either new or like-new.
2. HP warrants to you that HP software will not fail to
execute its programming instructions after the date of
purchase, for the period specified above, due to
defects in material and workmanship when properly
installed and used. If HP receives notice of such
defects during the warranty period, HP will replace
software media which does not execute its
programming instructions due to such defects.
3. HP does not warrant that the operation of HP
products will be uninterrupted or error free. If HP is
unable, within a reasonable time, to repair or replace
any product to a condition as warranted, you will be
entitled to a refund of the purchase price upon
prompt return of the product with proof of purchase.
4. HP products may contain remanufactured parts
equivalent to new in performance or may have been
subject to incidental use.
5. Warranty does not apply to defects resulting from (a)
improper or inadequate maintenance or calibration,
(b) software, interfacing, parts or supplies not
supplied by HP, (c) unauthorized modification or
misuse, (d) operation outside of the published
environmental specifications for the product, or (e)
improper site preparation or maintenance.
W-1
HP 39gs English.book Page 2 Wednesday, December 7, 2005 11:24 PM
W-2
HP 39gs English.book Page 3 Wednesday, December 7, 2005 11:24 PM
Service
Europe Country : Telephone numbers
Austria +43-1-3602771203
Belgium +32-2-7126219
Denmark +45-8-2332844
Eastern Europe +420-5-41422523
countries
Finland +35-89640009
France +33-1-49939006
Germany +49-69-95307103
Greece +420-5-41422523
Holland +31-2-06545301
Italy +39-02-75419782
Norway +47-63849309
Portugal +351-229570200
Spain +34-915-642095
Sweden +46-851992065
Switzerland +41-1-4395358
(German)
+41-22-8278780
(French)
+39-02-75419782
(Italian)
Turkey +420-5-41422523
UK +44-207-4580161
Czech Republic +420-5-41422523
South Africa +27-11-2376200
Luxembourg +32-2-7126219
Other European +420-5-41422523
countries
Asia Pacific Country : Telephone numbers
Australia +61-3-9841-5211
Singapore +61-3-9841-5211
W-3
HP 39gs English.book Page 4 Wednesday, December 7, 2005 11:24 PM
W-4
HP 39gs English.book Page 5 Wednesday, December 7, 2005 11:24 PM
Regulatory information
Federal This equipment has been tested and found to comply with
Communications the limits for a Class B digital device, pursuant to Part 15
Commission Notice of the FCC Rules. These limits are designed to provide
reasonable protection against harmful interference in a
residential installation. This equipment generates, uses,
and can radiate radio frequency energy and, if not
installed and used in accordance with the instructions,
may cause harmful interference to radio communications.
However, there is no guarantee that interference will not
occur in a particular installation. If this equipment does
cause harmful interference to radio or television
reception, which can be determined by turning the
equipment off and on, the user is encouraged to try to
correct the interference by one or more of the following
measures:
Reorient or relocate the receiving antenna.
Increase the separation between the equipment and
the receiver.
Connect the equipment into an outlet on a circuit
different from that to which the receiver is connected.
Consult the dealer or an experienced radio or
television technician for help.
Modifications The FCC requires the user to be notified that any changes
or modifications made to this device that are not
expressly approved by Hewlett-Packard Company may
void the user's authority to operate the equipment.
W-5
HP 39gs English.book Page 6 Wednesday, December 7, 2005 11:24 PM
xxxx*
This marking is valid for non-Tele- This marking is valid for EU
com prodcts and EU harmonized non-harmonized Telecom products.
Telecom products (e.g. Bluetooth). *Notified body number (used only if
applicable - refer to the product label)
Japanese Notice
VCCI B
W-6
HP 39gs English.book Page 7 Wednesday, December 7, 2005 11:24 PM
Korean Notice
W-7
HP 39gs English.book Page 8 Wednesday, December 7, 2005 11:24 PM
HP 39gs English.book Page 1 Wednesday, December 7, 2005 11:24 PM
Index
I-1
HP 39gs English.book Page 2 Wednesday, December 7, 2005 11:24 PM
I-2
HP 39gs English.book Page 3 Wednesday, December 7, 2005 11:24 PM
I-3
HP 39gs English.book Page 4 Wednesday, December 7, 2005 11:24 PM
I-4
HP 39gs English.book Page 5 Wednesday, December 7, 2005 11:24 PM
I-5
HP 39gs English.book Page 6 Wednesday, December 7, 2005 11:24 PM
I-6
HP 39gs English.book Page 7 Wednesday, December 7, 2005 11:24 PM
I-7
HP 39gs English.book Page 8 Wednesday, December 7, 2005 11:24 PM
I-8
HP 39gs English.book Page 9 Wednesday, December 7, 2005 11:24 PM
I-9
HP 39gs English.book Page 10 Wednesday, December 7, 2005 11:24 PM
I-10
HP 39gs English.book Page 11 Wednesday, December 7, 2005 11:24 PM
I-11
HP 39gs English.book Page 12 Wednesday, December 7, 2005 11:24 PM
I-12
HP 39gs English.book Page 13 Wednesday, December 7, 2005 11:24 PM
I-13
HP 39gs English.book Page 14 Wednesday, December 7, 2005 11:24 PM