HP Prime Graphing Calculator - User Guide Supplement
HP Prime Graphing Calculator - User Guide Supplement
1 Geometry
Getting started with the Geometry app ...................................... 5
Plot view in detail.................................................................. 12
The Options menu ............................................................ 17
Plot Setup view................................................................. 18
Symbolic view in detail .......................................................... 19
Symbolic Setup view......................................................... 20
Numeric view in detail .......................................................... 20
Plot view: Cmds menu ........................................................... 23
Geometry functions and commands......................................... 39
Symbolic view: Cmds menu ............................................... 40
Numeric view: Cmds menu................................................ 55
Other Geometry functions.................................................. 60
2 Inference app
Getting started with the Inference app ..................................... 70
Importing statistics ................................................................. 74
Hypothesis tests .................................................................... 77
One-Sample Z-Test............................................................ 77
Two-Sample Z-Test ............................................................ 78
One-Proportion Z-Test........................................................ 79
Two-Proportion Z-Test ........................................................ 80
One-Sample T-Test ............................................................ 81
Two-Sample T-Test ............................................................ 82
Confidence intervals .............................................................. 84
One-Sample Z-Interval....................................................... 84
Two-Sample Z-Interval ....................................................... 84
One-Proportion Z-Interval................................................... 85
Two-Proportion Z-Interval ................................................... 86
One-Sample T-Interval ....................................................... 87
Two-Sample T-Interval........................................................ 87
Chi-square tests..................................................................... 88
Goodness of fit test ........................................................... 88
Two-way table test ............................................................ 89
Inference for regression ......................................................... 90
Linear t-test ...................................................................... 91
Confidence interval for slope ............................................. 92
Confidence interval for intercept......................................... 94
Confidence interval for a mean response............................. 95
Prediction interval............................................................. 96
.......................................................................................... 97
Contents 1
........................................................................................... 97
........................................................................................... 97
3 Functions and commands
Keyboard functions .............................................................. 101
Math menu ......................................................................... 105
Numbers........................................................................ 105
Arithmetic ...................................................................... 106
Trigonometry .................................................................. 108
Hyperbolic ..................................................................... 109
Probability ..................................................................... 109
List ................................................................................ 114
Matrix ........................................................................... 115
Special .......................................................................... 115
CAS menu .......................................................................... 116
Algebra ......................................................................... 116
Calculus ........................................................................ 118
Solve............................................................................. 122
Rewrite .......................................................................... 124
Integer........................................................................... 129
Polynomial ..................................................................... 131
Plot ............................................................................... 138
App menu .......................................................................... 138
Function app functions..................................................... 139
Solve app functions ......................................................... 140
Spreadsheet app functions ............................................... 140
Statistics 1Var app functions............................................. 154
Statistics 2Var app functions............................................. 156
Inference app functions.................................................... 157
Finance app functions ..................................................... 166
Linear Solver app functions .............................................. 168
Triangle Solver app functions ........................................... 168
Linear Explorer functions .................................................. 170
Quadratic Explorer functions ............................................ 171
Common app functions.................................................... 171
Ctlg menu........................................................................... 172
Creating your own functions ................................................. 213
4 Variables
Qualifying variables ............................................................ 219
Home variables ................................................................... 220
App variables ..................................................................... 221
Function app variables .................................................... 221
Geometry app variables .................................................. 222
Spreadsheet app variables............................................... 223
2 Contents
Solve app variables ........................................................ 223
Advanced Graphing app variables .................................. 224
Statistics 1Var app variables............................................ 225
Statistics 2Var app variables............................................ 227
Inference app variables................................................... 229
Parametric app variables................................................. 233
Polar app variables ........................................................ 234
Finance app variables..................................................... 234
Linear Solver app variables ............................................. 235
Triangle Solver app variables .......................................... 235
Linear Explorer app variables .......................................... 235
Quadratic Explorer app variables .................................... 235
Trig Explorer app variables ............................................. 236
Sequence app variables .................................................. 236
5 Programming in HP PPL
The Program Catalog .......................................................... 238
Creating a new program ..................................................... 241
The Program Editor ......................................................... 242
The HP Prime programming language ................................... 251
The User Keyboard: Customizing key presses .................... 256
App programs ............................................................... 260
Program commands ............................................................ 267
Commands under the Tmplt menu ..................................... 268
Block ............................................................................ 268
Branch .......................................................................... 268
Loop ............................................................................. 269
Variable ........................................................................ 273
Function ........................................................................ 273
Commands under the Cmds menu .................................... 274
Strings .......................................................................... 274
Drawing........................................................................ 277
Matrix........................................................................... 289
App Functions ................................................................ 290
Integer .......................................................................... 292
I/O .............................................................................. 294
More ............................................................................ 299
Variables and Programs .................................................. 301
Index ................................................................................... 327
Contents 3
4 Contents
1
Geometry
The Geometry app enables you to draw and explore
geometric constructions. A geometric construction can be
composed of any number of geometric objects, such as
points, lines, polygons, curves, tangents, and so on. You can
take measurements (such as areas and distances), manipulate
objects, and note how measurements change.
There are five app views:
• Plot view: provides drawing tools for you to construct
geometric objects
• Symbolic view: provides editable definitions of the
objects in Plot view
• Numeric view: for making calculations about the objects
in Plot view
• Plot Setup view: for customizing the appearance of Plot
view
• Symbolic Setup view: for overriding certain system-wide
settings
There is no Numeric Setup view in this app.
To open the Geometry app, press I and select
Geometry. The app opens in Plot view.
Geometry 5
Preparation 1. Press SK.
2. On the first CAS settings page, set the number format to
Standard and the number of decimal places to 4.
6 Geometry
7. Tap anywhere on the
graph, press E
and then press J.
Notice that a point is
added to the graph and
given a name (B in this
example). Tap a blank
area of the screen to
deselect everything. (Objects colored light blue are
selected.)
Add a tangent 8. We will now add a tangent to the curve, making point B
the point of tangency:
> Line > Tangent
9. When prompted to
select a curve, tap
anywhere on the curve
and press E.
When prompted to
select a point, tap point
B and press E to
see the tangent. Press
J to close the Tangent tool.
Depending on where you placed point B, your
illustration might be different from the one at the right.
Now, make the tangent stand out by giving it a bright
color.
10. Tap on the tangent to select it. After the tangent is
selected, the new menu key appears. Tap
or press Z, and then select Choose color.
11. Pick a color, and then tap on a blank area of the screen
to see the new color of the tangent line.
12. Tap point B and drag it along the curve; the tangent
moves accordingly. You can also drag the tangent line
itself.
13. Tap point B and then press E to select the point.
The point turns light blue to show that it has been
selected. Now, you can either drag the point with your
finger or use the cursor keys for finer control of the
Geometry 7
movement of point B. To deselect point B, either press
J or tap point B and press E.
Note that whatever you do, point B remains constrained to the
curve. Moreover, as you move point B, the tangent moves as
well. If it moves off the screen, you can bring it back by
dragging your finger across the screen in the appropriate
direction.
8 Geometry
16. Tap and choose Point > point
You now need to specify the x and y coordinates of the
new point. The former is defined as the abscissa of point
B (referred to as GB in Symbolic view) and the latter is
defined as the slope of tangent line C (referred to as GC
in Symbolic view).
17. You should have point() on the entry line. Between
the parentheses, add:
abscissa(GB),slope(GC)
For the abscissa command, tap , select Cartesian,
and then select abscissa. For the slope command, tap
, select Measure, and then select slope.
18. Tap .
The definition of your
new point is added to
Symbolic view. When
you return to Plot view,
you will see a point
named D and it will
have the same x-
coordinate as point B.
19. Press P.
If you can’t see point D,
pan until it comes into
view. The y coordinate
of D will be the
derivative of the curve at
point B.
Since it is difficult to
read coordinates off the screen, we’ll add a calculation
that will give the exact derivative (to three decimal
places) and which we can display in Plot view.
Geometry 9
23. Between parentheses, add the name of the tangent,
namely GC, and tap .
Notice that the current slope is calculated and displayed.
The value here is dynamic, that is, if the slope of the
tangent changes in Plot view, the value of the slope is
automatically updated in Numeric view.
24.With the new calculation highlighted in Numeric view,
tap .
Selecting a calculation in Numeric view means that it will
also be displayed in Plot view.
25. Press P to return to
Plot view.
Notice the calculation
that you have just
created in Numeric view
is displayed at the top
left of the screen.
Let’s now add two more
calculations to Numeric view and have them displayed
in Plot view.
26. Press M to return to Numeric view.
27. Tap the last blank field to select it, and then tap to
start a new calculation. Tap , select Cartesian,
and then select Coordinates. Between the
parentheses, enter GB and then tap .
28.To start a third calculation, tap , select
Cartesian, and then select Equation of. Between
the parentheses, enter GC and then tap .
29. Make sure both of these new equations are selected (by
choosing each one and pressing ).
30.Press P to return to
Plot view.
Notice that your new
calculations are
displayed.
10 Geometry
31. Tap point B and then press E to select it.
32. Use the cursor keys to move point B along the graph.
Note that with each move, the results of the calculations
shown at the top left of the screen change. To deselect
point B, tap point B and then press E.
Trace the Point D is the point whose ordinate value matches the
derivative derivative of the curve at point B. It is easier to see how the
derivative changes by looking at a plot of it rather than
comparing subsequent calculations. We can do that by
tracing point D as it moves in response to movements of point
B.
First we’ll hide the calculations so that we can better see the
trace curve.
33. Press M to return to Numeric view.
34.Select each calculation in turn and tap . All
calculations should now be deselected.
35. Press P to return to Plot view.
36.Tap point D and then press E to select it.
37. Tap (or press Z) and then select Trace. Press
E to deselect point D.
38.Tap point B and then press E to select it.
39. Using the cursor keys,
move point B along the
curve. Notice that a
shadow curve is traced
out as you move point B.
This is the curve of the
Geometry 11
derivative of 3sin(x). Tap point B and then press E
to deselect it.
Selecting objects Selecting an object involves at least two steps: tapping the
object and pressing E. Pressing E is necessary
to confirm your intention to select an object.
When you tap a location, objects recognized as being under
the pointer are colored light red and added to the list of
12 Geometry
objects in the bottom right corner of the display. You can
select any or all of these objects by pressing E. You can
tap the screen and then use the cursor keys to accurately
position the pointer before pressing E.
When more than one object is recognized as being under the
pointer, in most cases, preference is given to any point under
the pointer when E is pressed. In other cases, a pop-
up box appears enabling you to select the desired objects.
You can also select multiple objects using a selection box. Tap
and hold your finger at the location on the screen that
represents one corner of the selection rectangle. Then drag
your finger to the opposite corner of the selection rectangle.
A light blue selection rectangle is drawn as you drag. Objects
that touch this rectangle are selected.
Hiding names You can choose to hide the name of an object in Plot view:
1. Select the object whose label you want to hide.
2. Tap or press Z.
3. Select Hide Label.
Redisplay a hidden name by repeating this procedure and
selecting Show Label.
Moving objects There are many ways to move objects. First, to move an object
quickly, you can drag the object without selecting it.
Second, you can tap an object and press E to select it.
Then, you can drag the object to move it quickly or use the
cursor keys to move it one pixel at a time. With the second
method, you can select multiple objects to move together.
When you have finished moving objects, tap a location where
there are no objects and press E to deselect everything.
If you have selected a single object, you can tap the object
and press E to deselect it.
Third, you can move a point on an object. Each point on an
object has a calculation labeled with its name in Plot view.
Tap and hold this item to display a slider bar. You can drag
the slider or use the cursor keys to move it. appears as
a new menu key. Tap this key to display a dialog box where
you can specify the start, step, and stop values for the slider.
Also, you can create an animation based on this point using
Geometry 13
the slider. You can set the speed and pause for the animation,
as well as its type. To start or stop an animation, select it, tap
, and then select or clear the Animate option.
Clearing an To clear one object, select it and tap C. Note that an object
object is distinct from the points you entered to create it. Thus
deleting the object does not delete the points that define it.
Those points remain in the app. For example, if you select a
circle and press C, the circle is deleted but the center point
and radius point remain.
If other objects are
dependent on the one you
have selected for deletion, a
pop-up displays the selected
object and all dependent
objects checked for deletion.
Confirm your intention by
tapping .
You can select multiple items for deletion. Either select them
one at a time or use a selection box, and then press C.
Note that points you add to an object once the object has
been defined are cleared when you clear the object. Thus if
you place a point (say D) on a circle and delete the circle, the
14 Geometry
circle and D are deleted, but the defining points—the center
and radius points—remain.
Clearing all To clear the app of all geometric objects, press SJ. You
objects will be asked to confirm your intention to do so. Tap
to clear all objects defined in Symbolic view or to keep
the app as it is. You can clear all measurements and
calculations in Numeric view in the same way.
Gestures in Plot You can pan by dragging a finger across the screen: either
view up, down, left, or right. You can also use the cursor keys to
pan once the cursor is at the edge of the screen. You can use
a pinch gesture to zoom in or out. Place two fingers on the
screen. Move them apart to zoom in or bring them together
to zoom out. You can also press + to zoom in on the
pointer or press w to zoom out on the pointer.
Geometry 15
Plot view: buttons and keys
Button or key Purpose
16 Geometry
The Options menu
When you select an object, a new menu key appears:
. Tap this key to view and select options for the selected
object, such as color. The Options menu changes depending
on the type of object selected. The complete set of Geometry
options are listed in the following table and are also
displayed when you press Z.
Option Purpose
Geometry 17
Plot Setup view
The Plot Setup view enables
you to configure the
appearance of Plot view.
The fields and options are as
follows:
• X Rng: There are two
boxes, but only the
minimum x-value is
editable. The maximum x-value is calculated
automatically, based on the minimum value and the
pixel size. You can also change the x range by panning
and zooming in Plot view.
• Y Rng: There are two boxes, but only the minimum y-
value is editable. The maximum y-value is calculated
automatically, based on the minimum value and the
pixel size. You can also change the y range by panning
and zooming in Plot view.
• Pixel Size: Each pixel in the Plot view must be square.
You can change the size of each pixel. The lower left
corner of the Plot view display remains the same, but the
upper right-corner coordinates are automatically
recalculated.
• Axes: A toggle option to hide (or show) the axes in Plot
view.
Keyboard shortcut: a
• Labels: A toggle option to hide (or show) the labels for
the axes.
• Grid Dots: A toggle option to hide (or show) the grid
dots.
• Grid Lines: A toggle option to hide (or show) the grid
lines.
18 Geometry
Symbolic view in detail
Every object—whether a
point, segment, line,
polygon, or curve—is given
a name, and its definition is
displayed in Symbolic view
(Y). The name is the
name for it you see in Plot
view, but prefixed by “G”.
Thus a point labeled A in Plot view is given the name GA in
Symbolic view.
The G-prefixed name is a variable that can be read by the
computer algebra system (CAS). Thus in the CAS you can
include such variables in calculations. Note in the illustration
above that GC is the name of the variable that represents a
circle drawn in Plot view. If you are working in the CAS and
wanted to know what the area of that circle is, you could enter
area(GC) and press E.
Note Calculations referencing geometry variables can be made in
the CAS or in the Numeric view of the Geometry app
(explained below on page 20).
Creating objects You can also create an object in Symbolic view. Tap ,
define the object—for example, point(4,6)—and press
E. The object is created and can be seen in Plot view.
Another example: to draw a line through points P and Q,
enter line(GP,GQ) in Symbolic view and press E.
When you return to Plot view, you will see a line passing
through points P and Q.
Geometry 19
The object-creation
commands available in
Symbolic view can be seen
by tapping . The
syntax for each command is
given in “Geometry
functions and commands”
on page 39.
Re-ordering You can re-order the entries in Symbolic view. Objects are
entries drawn in Plot view in the order in which they are defined in
Symbolic view. To change the position of an entry, highlight it
and tap either (to move it down the list) or (to
move it up).
Deleting an As well as deleting an object in Plot view (see page 14) you
object can delete an object in Symbolic view.
1. Highlight the definition of the object you want to delete.
2. Press C.
To delete all objects, press SJ. When prompted, tap
to confirm the deletion.
20 Geometry
automatically updated to reflect the new properties of that
object.
Consider circle C in the
illustration at the right. To
calculate the area and
radius of C:
1. Press M to open
Numeric view.
2. Tap .
3. Tap and choose
Measure > Area.
Note that area()
appears on the entry
line, ready for you to
specify the object whose
area you are interested
in.
4. Tap , choose Curves and then the curve whose
area you are interested in.
The name of the object is placed between the
parentheses.
You could have entered the command and object name
manually, that is, without choosing them from menus. If
you enter object names manually, remember that the
name of the object in Plot view must be given a “G”
prefix if it is used in any calculation. Thus the circle
named C in Plot view must be referred to as GC in
Numeric view and Symbolic view.
5. Press E or tap . The area is displayed.
6. Tap .
7. Enter radius(GC) and
tap . The radius is
displayed. Use
to verify both of these
measurements so that
they will be available in
Plot view.
Geometry 21
Note that the syntax used here is the same as you use in
the CAS to calculate the properties of geometric objects.
The Geometry functions and their syntax are described
in “Geometry functions and commands” on page 39.
8. Press P to go back to Plot view. Now, manipulate the
circle in some way that changes its area and radius. For
example, select the center point (A) and use the cursor
keys to move it to a new location. Notice that the area
and radius calculations update automatically as you
move the point. Remember to press J when you are
finished.
Note If an entry in Numeric view is too long for the screen, you can
press > to scroll the rest of the entry into view. Press < to
scroll back to the original view.
22 Geometry
Editing a 1. Highlight the calculation that you want to edit.
calculation 2. Tap to change the calculation or tap to
change the label.
3. Make your changes and tap .
Geometry 23
entered using a keyboard shortcut. For example, you can
select the triangle drawing tool by pressing n. See “Plot
view: buttons and keys” on page 16.
Point On Tap the object where you want the new point to be and press
E. If you select a point that has been placed on an
object and then move that point, the point will be constrained
to the object on which it was placed. For example, a point
placed on a circle will remain on that circle regardless of how
you move the point.
Midpoint Tap where you want one point to be and press E. Tap
where you want the other point to be and press E. A
point is automatically created midway between those two
points.
If you choose an object first—such as a segment—choosing
the Midpoint tool and pressing E adds a point midway
between the ends of that object. (In the case of a circle, the
midpoint is created at the circle’s center.)
Intersections Tap one object other than a point and press E. Tap
another object and press E. The point(s) where the two
objects intersect are created and named. Note that an
intersections object is created in Symbolic view even if the two
objects selected do not intersect.
24 Geometry
Random Points Press E to randomly create a point in Plot view.
Continue pressing E to create more random points.
Press J when you are done.
Line
Line Tap at a point you want the line to pass through and press
E. Tap at another point you want the line to pass
through and press E. A line is drawn through the two
points.
Keyboard shortcut: j
Tap a third point (C) and press E. A line is drawn
through A bisecting the angle formed by AB and AC.
Parallel Tap on a point (P) and press E. Tap on a line (L) and
press E. A new line is draw parallel to L and passing
through P.
Perpendicular Tap on a point (P) and press E. Tap on a line (L) and
press E. A new line is draw perpendicular to L and
passing through P.
Tangent Tap on a curve (C) and press E. Tap on a point (P) and
press E. If the point (P) is on the curve (C), then a single
tangent is drawn. If the point (P) is not on the curve (C), then
zero or more tangents may be drawn.
Geometry 25
Altitude Tap on a point (A) and press E. Tap on a segment and
press E. A line is drawn through the point (A)
perpendicular to the segment (or its extension).
Angle bisector Tap the point that is the vertex of the angle to be bisected (A)
and press E. Tap another point (B) and press E.
Example:
isosceles_triangle(GA, GB, angle(GC, GA, GB)
defines an isosceles triangle such that one of the two sides of
equal length is AB, and the angle between the two sides of
equal length has a measure equal to that of ∡ ACB.
Right Triangle Draws a right triangle given two points and a scale factor.
One leg of the right triangle is defined by the two points, the
vertex of the right angle is at the first point, and the scale
factor multiplies the length of the first leg to determine the
length of the second leg.
right_triangle(point1, point2, realk)
Example:
right_triangle(GA, GB, 1) draws an isosceles right
triangles with its right angle at point A, and with both legs
equal in length to segment AB.
26 Geometry
Parallelogram Tap at one vertex and press E. Tap at another vertex
and press E. Tap at a third vertex and press E.
The location of the fourth vertex is automatically calculated
and the parallelogram is drawn.
Example
rhombus(GA, GB, angle(GC, GD, GE)) draws a
rhombus on segment AB such that the angle at vertex A has
the same measure as ∡ DCE.
Examples:
rectangle(GA, GB, GE) draws a rectangle whose first
two vertices are points A and B (one side is segment AB).
Point E is on the line that contains the side of the rectangle
opposite segment AB.
rectangle(GA, GB, 3, p, q) draws a rectangle whose
first two vertices are points A and B (one side is segment AB).
The sides perpendicular to segment AB have length 3*AB.
The third and fourth points are stored into the CAS variables
p and q, respectively.
Example:
polygon(GA, GB, GD) draws ΔABD
Geometry 27
Regular Draws a regular polygon given the first two vertices and the
Polygon number of sides, where the number of sides is greater than 1.
If the number of sides is 2, then the segment is drawn. You can
provide CAS variable names for storing the coordinates of the
calculated points in the order they were created. The
orientation of the polygon is counterclockwise.
isopolygon(point1, point2, realn), where realn
is an integer greater than 1.
Example
isopolygon(GA, GB, 6) draws a regular hexagon
whose first two vertices are the points A and B.
Curve
28 Geometry
Tap at each vertex of the
triangle, pressing E
after each tap.
The excircle is drawn tangent
to the side defined by the last
two vertices tapped. In the
example at the right, the last
two vertices tapped were A
and C (or C and A). Thus the excircle is drawn tangent to the
segment AC.
Ellipse Tap at one focus point and press E. Tap at the second
focus point and press E. Tap at point on the
circumference and press E.
Hyperbola Tap at one focus point and press E. Tap at the second
focus point and press E. Tap at point on one branch of
the hyperbola and press E.
Parabola Tap at the focus point and press E. Tap either on a line
(the directrix) or a ray or segment nd press E.
Example:
conic(x^2+y^2-81) draws a circle with center at (0,0)
and radius of 9
Locus Takes two points as its arguments: the first is the point whose
possible locations form the locus; the second is a point on an
object. This second point drives the first through its locus as the
second moves on its object.
Geometry 29
In the example at the right,
circle C has been drawn and
point D is a point placed on
C (using the Point On
function described above).
Point I is a translation of
point D. Choosing Curve >
Special > Locus places
locus( on the entry line. Complete the command as
locus(GI,GD) and point I traces a path (its locus) that
parallels point D as it moves around the circle to which it is
constrained.
Plot You can plot expressions of the following types in Plot view:
• Function
• Parametric
• Polar
• Sequence
Tap , select Plot, and
then the type of expression
you want to plot. The entry
line is enabled for you to
define the expression.
Note that the variables you
specify for an expression
must be in lowercase.
In this example, Function
has been selected as the plot
type and the graph of y = 1/
x is plotted.
30 Geometry
Example:
plotfunc(3*sin(x)) draws the graph of y=3*sin(x)
Geometry 31
Example:
plotseq(1-x/2, x={3 -1 6}, 5) plots y=x and
y=1–x/2 (from x=–1 to x=6), then draws the first 5 terms of
the cobweb plot for u(n)=1-(u(n–1)/2, starting at
u(0)=3
32 Geometry
List Syntax: plotlist(Matrix 2xn)
Plots a set of n points and connects them with segments. The
points are defined by a 2xn matrix, with the abscissas in the
first row and the ordinates in the second row.
Example:
plotlist([[0,3],[2,1],[4,4],[0,3]]) draws a
triangle
Slider Creates a slider bar that can be used to control the value of
a parameter. A dialog box displays the slider bar definition
and any animation for the slider.
Geometry 33
Reflection A reflection is a
transformation which maps
an object or set of points
onto its mirror image, where
the mirror is either a point or
a line. A reflection through a
point is sometimes called a
half-turn. In either case, each
point on the mirror image is the same distance from the mirror
as the corresponding point on the original. In the example at
the right, the original triangle D is reflected through point I.
1. Tap , tap Transform, and select Reflection.
2. Tap the point or straight object (segment, ray, or line) that
will be the symmetry axis (that is, the mirror) and press
E.
3. Tap the object that is to be reflected across the symmetry
axis and press E. The object is reflected across the
symmetry axis defined in step 2.
34 Geometry
4. Press P to return to Plot view to see the rotated square.
Similarity Dilates and rotates a geometric object about the same center
point.
similarity(point, realk, angle, object)
Example:
similarity(0, 3, angle(0,1,i),point(2,0))
dilates the point at (2,0) by a scale factor of 3 (a point at
(6,0)), then rotates the result 90° counterclockwise to create a
point at (0, 6).
Geometry 35
3. Tap the point that is to be projected and press E.
Note the new point added to the target object.
36 Geometry
3. Tap a point and press
E to see its polar
line.
4. Tap a line and press
E to see its pole.
In the illustration to the
right, point K is the
reciprocation of line DE
(G) and Line I (at the bottom of the display) is the
reciprocation of point H.
Cartesian
Abcissa Tap a point and press E to select it. The abscissa (x-
coordinate) of the point will appear at the top left of the
screen.
Ordinate Tap a point and press E to select it. The ordinate (y-
coordinate) of the point will appear at the top left of the
screen.
Measure
Geometry 37
Radius Tap a circle and press E to select it. The radius of the
circle is displayed.
Perimeter Tap a circle and press E to select it. The perimeter of the
circle is displayed.
Slope Tap a straight object (segment, line, and so on) and press
E to select it. The slope of the object is displayed.
Area Tap a circle or polygon and press E to select it. The area
of the object is displayed.
Arc Length Tap a curve and press E to select it. Then, enter a start
value and a stop value. The length of the arc on the curve
between the two x-values is displayed.
Tests
On circle Tap a point and press E to select it. Repeat to select four
points. The test appears at the top of the display, along with
its result. The test returns 1 if the points are on the same circle;
otherwise, it returns 0.
On object Tap a point and press E to select it. Then tap an object
and press E. The test appears at the top of the display,
along with its result. The test returns 1 if the point is on the
object; otherwise, it returns 0.
Parallel Tap a straight object (segment, line, and so on) and press
E to select it. Then tap another straight object and press
E. The test appears at the top of the display, along with
38 Geometry
its result. The test returns 1 if the objects are parallel;
otherwise, it returns 0.
Perpendicular Tap a straight object (segment, line, and so on) and press
E to select it. Then tap another straight object and press
E. The test appears at the top of the display, along with
its result. The test returns 1 if the objects are perpendicular;
otherwise, it returns 0.
Parallelogram Tap a point and press E to select it. Repeat to select four
points. The test appears at the top of the display, along with
its result. The test returns 0 if the points do not form a
parallelogram. Returns 1 if they form a parallelogram, 2 if
they form a rhombus, 3 if they form a rectangle, and 4 if they
form a square.
Conjugate Tap a circle and press E to select it. Then, select two
points or two lines. The test returns 1 if the two points or lines
are conjugates for the circle; otherwise, it returns 0.
Geometry 39
The sample syntax provided has been simplified. Geometric
objects are referred to by a single uppercase character (such
as A, B,C and so on). However, calculations referring to
geometric objects—in the Numeric view of the Geometry app
and in the CAS—must use the G-prefixed name given for it in
Symbolic view. For example:
altitude(A,B,C) is the simplified form given in this
section
altitude(GA,GB,GC) is the form you need to use in
calculations
Further, in many cases the specified parameters in the syntax
below—A, B, C etc.—can be the name of a point (such as
GA) or a complex number representing a point. Thus
angle(A,B,C) could be:
• angle(GP,GR,GB)
• angle(3+2i,1–2i,5+i) or
• a combination of named points and points defined by a
complex number, as in angle(GP,1–2*i,i).
40 Geometry
Point
Point
Creates a point, given the coordinates of the point. Each
coordinate may be a value or an expression involving
variables or measurements on other objects in the geometric
construction.
point(real1, real2) or point(expr1, expr2)
Examples:
point(3,4) creates a point whose coordinates are (3,4).
This point may be selected and moved later.
point(abscissa(A), ordinate(B)) creates a point
whose x-coordinate is the same as that of a point A and
whose y-coordinate is the same as that of a point B. This point
will change to reflect the movements of point A or point B.
Point on
Creates a point on a geometric object whose abscissa is a
given value or creates a real value on a given interval.
element(object, real) or element(real1..real2)
Examples:
element(plotfunc(x2),–2) creates a point on the
graph of y = x2. Initially, this point will appear at (–2,4). You
can move the point, but it will always remain on the graph of
its function.
element(0..5) creates a slider bar with a value of 2.5
initially. Tap and hold this value to open the slider. Select >
or < to increase or decrease the value on the slider bar.
Press J to close the slider bar. The value that you set can
be used as a coefficient in a function that you subsequently
plot or in some other object or calculation.
Midpoint
Returns the midpoint of a segment. The argument can be
either the name of a segment or two points that define a
segment. In the latter case, the segment need not actually be
drawn.
midpoint(segment) or midpoint(point1, point2)
Geometry 41
Center
Syntax: center(Circle)
Plots the center of a circle. The circle can be defined by the
circle command or by name (for example, GC).
Example: center(circle(x^2+y2–x–y)) plots
point(1/2,1/2)
Intersection
Syntax: single_inter(Curve1, Curve2, [Point])
Plots the intersection of Curve1 and Curve2 that is closest to
Point.
Example:
single_inter(line(y=x), circle(x^2+y^2=1),
point(1,1)) plots point((1+i)*√2/2)
Intersections
Returns the intersection of two curves as a vector.
inter(Curve1, Curve2)
Example:
inter(8-x^2/6, x/2-1) returns [[6 2],[-9 -11/2]]
Line
Segment
Draws a segment defined by its endpoints.
segment(point1, point2)
Examples:
segment(1+2i, 4) draws the segment defined by the
points whose coordinates are (1, 2) and (4, 0).
segment(GA, GB) draws segment AB.
Ray
Given 2 points, draws a ray from the first point through the
second point.
half_line((point1, point2)
42 Geometry
Line
Draws a line. The arguments can be two points, a linear
expression of the form a*x+b*y+c, or a point and a slope as
shown in the examples.
line(point1, point2) or line(a*x+b*y+c) or
line(point1, slope=realm)
Examples:
line(2+i, 3+2i) draws the line whose equation is
y=x–1; that is, the line through the points (2,1) and (3,2).
line(2x–3y–8) draws the line whose equation is
2x–3y=8
line(3–2i,slope=1/2) draws the line whose equation
is x–2y=7; that is, the line through (3, –2) with slope m=1/2.
Parallel
Draws a line through a given point that is parallel to a given
line.
parallel(point,line)
Examples:
parallel(A, B) draws the line through point A that is
parallel to line B.
parallel(3–2i, x+y–5) draws the line through the point
(3, –2) that is parallel to the line whose equation is x+y=5;
that is, the line whose equation is y=–x+1.
Perpendicular
Draws a line through a given point that is perpendicular to a
given line. The line may be defined by its name, two points,
or an expression in x and y.
perpendicular(point, line) or
perpendicular(point1, point2, point3)
Examples:
perpendicular(GA, GD) draws a line perpendicular to
line D through point A.
perpendicular(3+2i, GB, GC) draws a line through
the point whose coordinates are (3, 2) that is perpendicular
to line BC.
Geometry 43
perpendicular(3+2i,line(x–y=1)) draws a line
through the point whose coordinates are (3, 2) that is
perpendicular to the line whose equation is x – y = 1; that is,
the line whose equation is y=–x+5.
Tangent
Draws the tangent(s) to a given curve through a given point.
The point does not have to be a point on the curve.
tangent(curve, point)
Examples:
tangent(plotfunc(x^2), GA) draws the tangent to the
graph of y=x^2 through point A.
tangent(circle(GB, GC–GB), GA) draws one or more
tangent lines through point A to the circle whose center is at
point B and whose radius is defined by segment BC.
Median
Given three points that define a triangle, creates the median
of the triangle that passes through the first point and contains
the midpoint of the segment defined by the other two points.
median_line(point1, point2, point3)
Example:
median_line(0, 8i, 4) draws the line whose equation
is y=2x; that is, the line through (0,0) and (2,4), the midpoint
of the segment whose endpoints are (0, 8) and (4, 0).
Altitude
Given three non-collinear points, draws the altitude of the
triangle defined by the three points that passes through the
first point. The triangle does not have to be drawn.
altitude(point1, point2, point3)
44 Geometry
Examples:
bisector(A,B,C) draws the bisector of ∡ BAC.
bisector(0,-4i,4) draws the line given by y=–x
Polygon
Triangle
Draws a triangle, given its three vertices.
triangle(point1, point2, point3)
Example:
triangle(GA, GB, GC) draws ΔABC.
Isosceles Triangle
Draws an isosceles triangle defined by two of its vertices and
an angle. The vertices define one of the two sides equal in
length and the angle defines the angle between the two sides
of equal length. Like equilateral_triangle, you have
the option of storing the coordinates of the third point into a
CAS variable.
isosceles_triangle(point1, point2, angle)
Example:
isosceles_triangle(GA, GB, angle(GC, GA, GB)
defines an isosceles triangle such that one of the two sides of
equal length is AB, and the angle between the two sides of
equal length has a measure equal to that of ∡ ACB.
Right Triangle
Draws a right triangle given two points and a scale factor.
One leg of the right triangle is defined by the two points, the
vertex of the right angle is at the first point, and the scale
factor multiplies the length of the first leg to determine the
length of the second leg.
right_triangle(point1, point2, realk)
Example:
right_triangle(GA, GB, 1) draws an isosceles right
triangles with its right angle at point A, and with both legs
equal in length to segment AB.
Geometry 45
Quadrilateral
Draws a quadrilateral from a set of four points.
quadrilateral(point1, point2, point3, point4)
Example:
quadrilateral(GA, GB, GC, GD) draws quadrilateral
ABCD.
Parallelogram
Draws a parallelogram given three of its vertices. The fourth
point is calculated automatically but is not defined
symbolically. As with most of the other polygon commands,
you can store the fourth point’s coordinates into a CAS
variable. The orientation of the parallelogram is
counterclockwise from the first point.
parallelogram(point1, point2, point3)
Example:
parallelogram(0,6,9+5i) draws a parallelogram
whose vertices are at (0, 0), (6, 0), (9, 5), and (3,5). The
coordinates of the last point are calculated automatically.
Rhombus
Draws a rhombus, given two points and an angle. As with
many of the other polygon commands, you can specify
optional CAS variable names for storing the coordinates of
the other two vertices as points.
rhombus(point1, point2, angle)
Example
rhombus(GA, GB, angle(GC, GD, GE)) draws a
rhombus on segment AB such that the angle at vertex A has
the same measure as ∡ DCE.
Rectangle
Draws a rectangle given two consecutive vertices and a point
on the side opposite the side defined by the first two vertices
or a scale factor for the sides perpendicular to the first side.
As with many of the other polygon commands, you can
specify optional CAS variable names for storing the
coordinates of the other two vertices as points.
46 Geometry
rectangle(point1, point2, point3) or
rectangle(point1, point2, realk)
Examples:
rectangle(GA, GB, GE) draws a rectangle whose first
two vertices are points A and B (one side is segment AB).
Point E is on the line that contains the side of the rectangle
opposite segment AB.
rectangle(GA, GB, 3, p, q) draws a rectangle whose
first two vertices are points A and B (one side is segment AB).
The sides perpendicular to segment AB have length 3*AB.
The third and fourth points are stored into the CAS variables
p and q, respectively.
Polygon
Draws a polygon from a set of vertices.
polygon(point1, point2, …, pointn)
Example:
polygon(GA, GB, GD) draws ΔABD
Regular Polygon
Draws a regular polygon given the first two vertices and the
number of sides, where the number of sides is greater than 1.
If the number of sides is 2, then the segment is drawn. You can
provide CAS variable names for storing the coordinates of the
calculated points in the order they were created. The
orientation of the polygon is counterclockwise.
isopolygon(point1, point2, realn), where realn
is an integer greater than 1.
Example
isopolygon(GA, GB, 6) draws a regular hexagon
whose first two vertices are the points A and B.
Square
Draws a square, given two consecutive vertices as points.
square(point1, point2)
Example:
Example: square(0, 3+2i, p, q) draws a square with vertices
at (0, 0), (3, 2), (1, 5), and (-2, 3). The last two vertices are
Geometry 47
computed automatically and are saved into the CAS variables
p and q.
Curve
Circle
Draws a circle, given the endpoints of the diameter, or a
center and radius, or an equation in x and y.
circle(point1, point2) or circle(point1, point 2-point1) or
circle(equation)
Examples:
circle(GA, GB) draws the circle with diameter AB.
circle(GA, GB-GA) draws the circle with center at point
A and radius AB.
circle(x^2+y^2=1) draws the unit circle.
This command can also be used to draw an arc.
circle(GA, GB, 0, π/2) draws a quarter-circle with
diameter AB.
Circumcircle
Draws the circumcircle of a triangle; that is, the circle
circumscribed about a triangle.
circumcircle(point1, point2, point3)
Example:
circumcircle(GA, GB, GC) draws the circle
circumscribed about ΔABC
Excircle
Given three points that define a triangle, draws the excircle of
the triangle that is tangent to the side defined by the last two
points and also tangent to the extensions of the two sides
where the common vertex is the first point.
Example:
excircle(GA, GB, GC) draws the circle tangent to
segment BC and to the rays AB and AC.
48 Geometry
Incircle
An incircle is a circle that is
tangent to each of a
polygon’s sides. The HP
Prime can draw an incircle
that is tangent to the sides of
a triangle.
Tap at each vertex of the
triangle, pressing E
after each tap.
Ellipse
Draws an ellipse, given the foci and either a point on the
ellipse or a scalar that is one half the constant sum of the
distances from a point on the ellipse to each of the foci.
ellipse(point1, point2, point3) or
ellipse(point1, point2, realk)
Examples:
ellipse(GA, GB, GC) draws the ellipse whose foci are
points A and B and which passes through point C.
ellipse(GA, GB, 3) draws an ellipse whose foci are
points A and B. For any point P on the ellipse, AP+BP=6.
Hyperbola
Draws a hyperbola, given the foci and either a point on the
hyperbola or a scalar that is one half the constant difference
of the distances from a point on the hyperbola to each of the
foci.
hyperbola(point1, point2, point3) or
hyperbola(point1, point2, realk)
Examples:
hyperbola(GA, GB, GC) draws the hyperbola whose foci
are points A and B and which passes through point C.
hyperbola(GA, GB, 3) draws a hyperbola whose foci
are points A and B. For any point P on the hyperbola, |AP-
BP|=6.
Geometry 49
Parabola
Draws a parabola, given a focus point and a directrix line, or
the vertex of the parabola and a real number that represents
the focal length.
parabola(point,line) or parabola(vertex,real)
Examples:
parabola(GA, GB) draws a parabola whose focus is point
A and whose directrix is line B.
parabola(GA, 1) draws a parabola whose vertex is point
A and whose focal length is 1.
Conic
Plots the graph of a conic section defined by an expression in
x and y.
conic(expr)
Example:
conic(x^2+y^2-81) draws a circle with center at (0,0)
and radius of 9
Locus
Given a first point and a second point that is an element of (a
point on) a geometric object, draws the locus of the first point
as the second point traverses its object.
locus(point,element)
Plot
Function
Draws the plot of a function, given an expression in the
independent variable x. Note the use of lowercase x.
Syntax: plotfunc(Expr)
Example:
plotfunc(3*sin(x)) draws the graph of y=3*sin(x)
Parametric
Takes a complex expression in one variable and an interval
for that variable as arguments. Interprets the complex
expression f(t)+i*g(t) as x=f(t) and y=g(t) and
50 Geometry
plots the parametric equation over the interval specified in the
second argument.
Syntax: plotparam(f(Var)+i*g(Var), Var=
Start..Stop, [tstep=Value])
Examples:
plotparam(cos(t)+ i*sin(t), t=0..2*π) plots the
unit circle
plotparam(cos(t)+ i*sin(t), t=0..2*π,
tstep=π/3) plots a regular hexagon inscribed in the unit
circle (note the tstep value)
Polar
Draws a polar plot.
Syntax: plotpolar(Expr,Var=Interval, [Step]) or
plotpolar(Expr, Var, Min, Max, [Step])
plotpolar(f(x),x,a,b) draws the polar curve r=f(x)
for x in [a,b]
Sequence
Given an expression in x and a list containing three values,
draws the line y=x, the plot of the function defined by the
expression over the domain defined by the interval between
the last two values, and draws the cobweb plot for the first n
terms of the sequence defined recursively by the expression
(starting at the first value).
Syntax: plotseq(f(Var), Var={Start, Xmin,
Xmax}, Integern)
Example:
plotseq(1-x/2, x={3 -1 6}, 5) plots y=x and
y=1–x/2 (from x=–1 to x=6), then draws the first 5 terms of
the cobweb plot for u(n)=1-(u(n–1)/2, starting at
u(0)=3
Implicit
Plots an implicitly defined curved from Expr (in x and y).
Specifically, plots Expr=0. Note the use of lowercase x and y.
With the optional x-interval and y-interval, plots only within
those intervals.
Syntax: plotimplicit(Expr, [XIntrvl, YIntrvl])
Geometry 51
Example:
plotimplicit((x+5)^2+(y+4)^2-1) plots a circle,
centered at the point (-5, -4), with a radius of 1
Slopefield
Plots the graph of the slopefield for the differential equation
y’=f(x,y), where f(x,y) is contained in Expr. VectorVar is a
vector containing the variables. If VectorVar is of the form
[x=Interval, y=Interval], then the slopefield is plotted over the
specified x-range and y-range. Given xstep and ystep values,
plots the slopefield segments using these steps. If Option is
normalize, then the slopefield segments drawn are equal in
length.
Syntax: plotfield(Expr, VectorVar, [xstep=Val,
ystep=Val, Option])
Example: plotfield(x*sin(y), [x=-6..6, y=-
6..6],normalize) draws the slopefield for
y'=x*sin(y), from -6 to 6 in both directions, with
segments that are all of the same length.
ODE
Draws the solution of the differential equation y’=f(Va1, Var2,
...) that contains as initial condition for the variables Val1,
Val2,... The first argument is the expression f(Var1, Var2,...),
the second argument is the vector of variables, and the third
argument is the vector of initial conditions.
Syntax: plotode(Expr, [Var1, Var2, ...],
[Val1, Val2. ...])
Example:
plotode(x*sin(y), [x,y], [–2, 2]) draws the
graph of the solution to y’=x*sin(y) that passes through
the point (–2, 2) as its initial condition
List
Plots a set of n points and connects them with segments. The
points are defined by a 2xn matrix, with the abscissas in the
first row and the ordinates in the second row.
Syntax: plotlist(Matrix 2xn)
52 Geometry
Example:
plotlist([[0,3],[2,1],[4,4],[0,3]]) draws a
triangle
Slider
Creates a slider bar that can be used to control the value of
a parameter. A dialog box displays the slider bar definition
and any animation for the slider. When completed, the slider
bar appears near the top left of Plot view. You can then move
it to another location.
Transform
Translation
Translates a geometric object along a given vector. The vector
is given as the difference of two points (head-tail).
translation(vector, object)
Examples:
translation(0-i, GA) translates object A down one
unit.
translation(GB-GA, GC) translates object C along the
vector AB.
Reflection
Reflects a geometric object over a line or through a point. The
latter is sometimes referred to as a half-turn.
reflection(line, object) or reflection(point,
object)
Examples:
reflection(line(x=3),point(1,1)) reflects the
point at (1, 1) over the vertical line x=3 to create a point at
(5,1).
reflection(1+i, 3-2i) reflects the point at (3,–2)
through the point at (1, 1) to create a point at (–1, 4).
Rotation
Rotates a geometric object, about a given center point,
through a given angle.
rotate(point, angle, object)
Geometry 53
Example:
rotate(GA, angle(GB, GC, GD),GK) rotates the
geometric object labeled K, about point A, through an angle
equal to ∡ CBD.
Dilation
Dilates a geometric object, with respect to a center point, by
a scale factor.
homothety(point, realk, object)
Example:
homothety(GA, 2, GB) creates a dilation centered at
point A that has a scale factor of 2. Each point P on geometric
object B has its image P’ on ray AP such that AP’=2AP.
Similarity
Dilates and rotates a geometric object about the same center
point.
similarity(point, realk, angle, object)
Example:
similarity(0, 3, angle(0,1,i),point(2,0))
dilates the point at (2,0) by a scale factor of 3 (a point at
(6,0)), then rotates the result 90° counterclockwise to create a
point at (0, 6).
Projection
Draws the orthogonal projection of a point onto a curve.
projection(curve, point)
Inversion
Draws the inversion of a point, with respect to another point,
by a scale factor.
inversion(point1, realk, point2)
Example:
inversion(GA, 3, GB) draws point C on line AB such
that AB*AC=3. In this case, point A is the center of the
inversion and the scale factor is 3. Point B is the point whose
inversion is created.
54 Geometry
In general, the inversion of point A through center C, with
scale factor k, maps A onto A’, such that A’ is on line CA and
CA*CA’=k, where CA and CA’ denote the lengths of the
corresponding segments. If k=1, then the lengths CA and CA’
are reciprocals.
Reciprocation
Given a circle and a vector of objects that are either points or
lines, returns a vector where each point is replaced with its
polar line and each line is replaced with its pole, with respect
to the circle.
reciprocation(Circle, [Obj1, Obj2,...Objn])
Example:
reciprocation(circle(0,1),[line(1+i,2),poin
t(1+i*2)]) returns [point(1/2, 1/2) line(y=-x/
2+1/2)]
Example:
abscissa(GA) returns the x-coordinate of the point A.
Ordinate
Returns the y coordinate of a point or the y length of a vector.
ordinate(point) or ordinate(vector)
Example:
Example: ordinate(GA) returns the y-coordinate of the
point A.
Geometry 55
Coordinates
Given a vector of points, returns a matrix containing the x- and
y-coordinates of those points. Each row of the matrix defines
one point; the first column gives the x-coordinates and the
second column contains the y-coordinates.
coordinates([point1, point2, …, pointn]))
Equation of
Returns the Cartesian equation of a curve in x and y, or the
Cartesian coordinates of a point.
equation(curve) or equation(point)
Example:
If GA is the point at (0, 0), GB is the point at (1, 0), and GC
is defined as circle(GA, GB-GA), then equation(GC)
returns x2 + y2 = 1.
Parametric
Works like the equation command, but returns parametric
results in complex form.
parameq(GeoObj )
Polar Coordinates
Returns a vector containing the polar coordinates of a point
or a complex number.
polar_coordinates(point) or
polar_coordinates(complex)
Example:
polar_coordinates(√2, √2) returns [2, π/4])
Measure
Distance
Returns the distance between two points or between a point
and a curve.
distance(point1, point2) or distance(point,
curve)
Examples:
distance(1+i, 3+3i) returns 2.828… or 2√2.
56 Geometry
if GA is the point at (0, 0) and GB is defined as
plotfunc(4–x^2/4), then distance (GA, GB) returns 3.464…
or 2√3.
Radius
Returns the radius of a circle.
radius(circle)
Example:
If GA is the point at (0, 0), GB is the point at (1, 0), and GC
is defined as circle(GA, GB-GA), then radius(GC) returns 1.
Perimeter
Returns the perimeter of a polygon or the circumference of a
circle.
perimeter(polygon) or perimeter(circle)
Examples:
If GA is the point at (0, 0), GB is the point at (1, 0), and GC
is defined as circle(GA, GB-GA), then perimeter(GC)
returns 2π.
If GA is the point at (0, 0), GB is the point at (1, 0), and GC
is defined as square(GA, GB-GA), then perimeter(GC)
returns 4.
Slope
Returns the slope of a straight object (segment, ray, or line).
slope(Object)
Example:
slope(line(point(1, 1), point(2, 2))) returns 1.
Area
Returns the area of a circle or polygon.
area(circle) or area(polygon)
Geometry 57
Examples:
If GA is defined to be the unit circle, then area(GA) returns
π.
area(4-x^2/4, -4,4) returns 14.666…
Angle
Returns the measure of a directed angle. The first point is
taken as the vertex of the angle as the next two points in order
give the measure and sign.
angle(vertex, point2, point3)
Example:
angle(GA, GB, GC) returns the measure of ∡ BAC.
Arc Length
Returns the length of the arc of a curve between two points on
the curve. The curve is an expression, the independent
variable is declared, and the two points are defined by values
of the independent variable.
This command can also accept a parametric definition of a
curve. In this case, the expression is a list of 2 expressions (the
first for x and the second for y) in terms of a third independent
variable.
arcLen(expr, real1, real2)
Examples:
arcLen(x^2, x, –2, 2) returns 9.29….
arcLen({sin(t), cos(t)}, t, 0, π/2) returns
1.57…
Tests
Collinear
Takes a set of points as argument and tests whether or not they
are collinear. Returns 1 if the points are collinear and 0
otherwise.
is_collinear(point1, point2, …, pointn)
Example:
is_collinear(point(0,0), point(5,0),
point(6,1)) returns 0
58 Geometry
On circle
Takes a set of points as argument and tests if they are all on
the same circle. Returns 1 if the points are all on the same
circle and 0 otherwise.
is_concyclic(point1, point2, …, pointn)
Example:
is_concyclic(point(-4,-2), point(-4,2),
point(4,-2), point(4,2)) returns 1
On object
Tests if a point is on a geometric object. Returns 1 if it is and
0 otherwise
is_element(point, object)
Example:
is_element(point (---2 2
-) , circle(0,1)) returns 1.
-,---
2 2
Parallel
Tests whether or not two lines are parallel. Returns 1 if they
are and 0 otherwise.
is_parallel(line1, line2)
Example:
is_parallel(line(2x+3y=7),line(2x+3y=9)
returns 1.
Perpendicular
Similar to is_orthogonal. Tests whether or not two lines are
perpendicular.
is_perpendicular(line1, line2)
Isosceles
Takes three points and tests whether or not they are vertices of
a single isosceles triangle. Returns 0 if they are not. If they are,
returns the number order of the common point of the two sides
of equal length (1, 2, or 3). Returns 4 if the three points form
an equilateral triangle.
is_isosceles(point1, point2, point3)
Geometry 59
Example:
is_isoscelesl(point(0,0), point(4,0),
point(2,4)) returns 3.
Equilateral
Takes three points and tests whether or not they are vertices of
a single equilateral triangle. Returns 1 if they are and 0
otherwise.
is_equilateral(point1, point2, point3)
Example:
is_equilateral(point(0,0), point(4,0),
point(2,4)) returns 0.
Parallelogram
Tests whether or not a set of four points are vertices of a
parallelogram. Returns 0 if they are not. If they are, then
returns 1 if they form only a parallelogram, 2 if they form a
rhombus, 3 if they form a rectangle, and 4 if they form a
square.
is_parallelogram(point1, point2, point3,
point4)
Example:
is_parallelogram(point(0,0), point(2,4),
point(0,8), point(-2,4)) returns 2.
Conjugate
Tests whether or not two points or two lines are conjugates for
the given circle. Returns 1 if they are and 0 otherwise.
is_conjugate(circle, point1, point2) or
is_conjugate(circle, line1, line2)
60 Geometry
Example:
if GA is a point at (1, –2), then affix(GA) returns 1–2i.
barycenter
Calculates the hypothetical center of mass of a set of points,
each with a given weight (a real number). Each point, weight
pair is enclosed in square brackets as a vector.
barycenter([[point1, weight1], [point2,
weight2],…,[pointn, weightn]])
Example: point(1) 1
barycenter point(1+i) 2 returns point (1/2, 1/4)
convexhull point(1–i) 1
Example:
convexhull(0,1,1+i,1+2i,-1-i,1-3i,-2+i)
returns [1-3*i 1+2*i -2+ i -1- i ]
distance2
Returns the square of the distance between two points or
between a point and a curve.
distance2(point1, point2) or distance2(point,
curve)
Examples:
distance2(1+i, 3+3i) returns 8.
If GA is the point at (0, 0) and GB is defined as plotfunc(4-
x^2/4), then distance2(GA, GB) returns 12.
division_point
For two points A and B, and a numerical factor k, returns a
point C such that C-B=k*(C-A).
division_point(point1, point2, realk)
Geometry 61
equilateral_triangle
Draws an equilateral triangle defined by one of its sides; that
is, by two consecutive vertices. The third point is calculated
automatically, but is not defined symbolically. If a lowercase
variable is added as a third argument, then the coordinates
of the third point are stored in that variable. The orientation of
the triangle is counterclockwise from the first point.
equilateral_triangle(point1, point2) or
equilateral_triangle(point1, point2, var)
Examples:
equilateral triangle(0,6) draws an equilateral
triangle whose first two vertices are at (0, 0) and (6,0); the
third vertex is calculated to be at (3,3*√3).
equilateral triangle(0,6, v) draws an equilateral
triangle whose first two vertices are at (0, 0) and (6,0); the
third vertex is calculated to be at (3,3*√3) and these
coordinates are stored in the CAS variable v. In CAS view,
entering v returns point(3*(√3*i+1)), which is equal to
(3,3*√3).
exbisector
Given three points that define a triangle, creates the bisector
of the exterior angles of the triangle whose common vertex is
at the first point. The triangle does not have to be drawn in the
Plot view.
exbisector(point1, point2, point3)
Examples:
exbisector(A,B,C) draws the bisector of the exterior
angles of ΔABC whose common vertex is at point A.
exbisector(0,–4i,4) draws the line given by y=x
extract_measure
Returns the definition of a geometric object. For a point, that
definition consists of the coordinates of the point. For other
objects, the definition mirrors their definition in Symbolic view,
with the coordinates of their defining points supplied.
extract_measure(Var)
62 Geometry
harmonic_conjugate
Returns the harmonic conjugate of 3 points. Specifically,
returns the harmonic conjugate of point3 with respect to
point1 and point2. Also accepts three parallel or concurrent
lines; in this case, it returns the equation of the harmonic
conjugate line.
harmonic_conjugate(point1, point2, point3) or
harmonic_conjugate(line1, line2, line3)
Example:
harmonic_conjugate(point(0, 0), point(3, 0),
point(4, 0)) returns point(12/5, 0)
harmonic_division
Returns the harmonic conjugate of 3 points. Specifically,
returns the harmonic conjugate of point3 with respect to
point1 and point2 and stores the result in the variable var.
Also accepts three parallel or concurrent lines; in this case, it
returns the equation of the harmonic conjugate line.
harmonic_division(point1, point2, point3, var)
or harmonic_division(line1, line2, line3, var)
Example:
harmonic_division(point(0, 0), point(3, 0),
point(4, 0), p) returns point(12/5, 0) and stores it
in the variable p
isobarycenter
Returns the hypothetical center of mass of a set of points.
Works like barycenter but assumes that all points have equal
weight.
isobarycenter(point1, point2, …,pointn)
Geometry 63
Example:
is_harmonic(point(0, 0), point(3, 0),
point(4, 0), point(12/5, 0)) returns 1
is_harmonic_circle_bundle
Returns 1 if the circles build a beam, 2 if they have the same
center, 3 if they are the same circle and 0 otherwise.
is_harmonic_circle_bundle({circle1, circle2,
…, circlen})
is_harmonic_line_bundle
Returns 1 if the lines are concurrent, 2 if they are all parallel,
3 if they are the same line and 0 otherwise.
is_harmonic_line_bundle({line1, line2, …,
linen}))
is_orthogonal
Tests whether or not two lines or two circles are orthogonal
(perpendicular). In the case of two circles, tests whether or not
the tangent lines at a point of intersection are orthogonal.
Returns 1 if they are and 0 otherwise.
is_orthogonal(line1, line2) or
is_orthogonal(circle1, circle2)
Example:
is_orthogonal(line(y=x),line(y=-x)) returns 1.
is_rectangle
Tests whether or not a set of four points are vertices of a
rectangle. Returns 0 if they are not, 1 if they are, and 2 if they
are vertices of a square.
is_rectangle(point1, point2, point3, point4)
Examples:
is_rectangle(point(0,0), point(4,2),
point(2,6), point(-2,4)) returns 2.
With a set of only three points as argument, tests whether or
not they are vertices of a right triangle. Returns 0 if they are
not. If they are, returns the number order of the common point
of the two perpendicular sides (1, 2, or 3).
is_rectangle(point(0,0), point(4,2),
point(2,6)) returns 2.
64 Geometry
is_rhombus
Tests whether or not a set of four points are vertices of a
rhombus. Returns 0 if they are not, 1 if they are, and 2 if they
are vertices of a square.
is_rhombus(point1, point2, point3, point4)
Example:
is_rhombus(point(0,0), point(-2,2),
point(0,4), point(2,2)) returns 2
is_square
Tests whether or not a set of four points are vertices of a
square. Returns 1 if they are and 0 otherwise.
is_square(point1, point2, point3, point4)
Example:
is_square(point(0,0), point(4,2),
point(2,6), point(-2,4)) returns 1.
LineHorz
Draws the horizontal line y=a.
LineHorz(a)
Example:
LineHorz(-2) draws the horizontal line whose equation is
y = –2
LineVert
Draws the vertical line x=a.
LineVert(a)
Example:
LineVert(–3) draws the vertical line whose equation is x
= –3
open_polygon
Connects a set of points with line segments, in the given order,
to produce a polygon. If the last point is the same as the first
point, then the polygon is closed; otherwise, it is open.
open_polygon(point1, point2, …, point1) or
open_polygon(point1, point2, …, pointn)
Geometry 65
orthocenter
Returns the orthocenter of a triangle; that is, the intersection of
the three altitudes of a triangle. The argument can be either
the name of a triangle or three non-collinear points that define
a triangle. In the latter case, the triangle does not need to be
drawn.
orthocenter(triangle) or orthocenter(point1,
point2, point3)
Examples:
perpen_bisector(GC) draws the perpendicular bisector
of segment C.
perpen_bisector(GA, GB) draws the perpendicular
bisector of segment AB.
perpen_bisector(3+2i, i) draws the perpendicular
bisector of a segment whose endpoints have coordinates (3,
2) and (0, 1); that is, the line whose equation is y=x/3+1.
point2d
Randomly re-distributes a set of points such that, for each
point, x ∈ [–5,5] and y ∈ [–5,5]. Any further movement of
one of the points will randomly re-distribute all of the points
with each tap or direction key press.
point2d(point1, point2, …, pointn)
polar
Returns the polar line of the given point as pole with respect
to the given circle.
polar(circle, point)
Example:
polar(circle(x^2+y^2=1),point(1/3,0)) returns
x=3
66 Geometry
pole
Returns the pole of the given line with respect to the given
circle.
pole(circle, line)
Example:
pole(circle(x^2+y^2=1), line(x=3)) returns
point(1/3, 0)
powerpc
Given a circle and a point, returns the difference between the
square of the distance from the point to the circle’’s center and
the square of the circle’s radius.
powerpc(circle, point)
Example
powerpc(circle(point(0,0), point(1,1)-
point(0,0)), point(3,1)) returns 8
radical_axis
Returns the line whose points all have the same powerpc
values for the two given circles.
radical_axis(circle1, circle2)
Example:
radical_axis(circle(((x+2)²+y²) =
8),circle(((x-2)²+y²) = 8)) returns line(x=0)
vector
Creates a vector from point1 to point2. With one point as
argument, the origin is used as the tail of the vector.
vector(point1, point2) or vector(point)
Example:
vector(point(1,1), point(3,0)) creates a vector
from (1, 1) to (3, 0).
Geometry 67
vertices
Returns a list of the vertices of a polygon.
vertices(polygon)
vertices_abca
Returns the closed list of the vertices of a polygon.
vertices_abca(polygon)
68 Geometry
2
Inference app
The Inference app calculates hypothesis tests, confidence
intervals, and chi-square tests, in addition to both tests
and confidence intervals based on inference for linear
regression. In addition to the Inference app, the Math
menu has a full set of probability functions based on
various distributions (chi-square, F, binomial, poisson, and
so on).
• mean
• proportion
• difference between two means
• difference between two proportions
You can also perform goodness of fit tests and tests on
two-way tables based on the chi-square distribution.
Finally, you can perform calculations based on inference
for linear regression:
• linear t-test
• confidence interval for slope
• confidence interval for the intercept
• confidence interval for mean response
• prediction interval for a future response
Sample data For many of the calculations, the Numeric view of the
Inference app comes with sample data (which you can
restore by resetting the app). This sample data is useful in
helping you gain an understanding of the app.
Inference app 69
Getting started with the Inference app
Let’s conduct a Z-Test on one mean using the sample data.
Symbolic view
options
Hypothesis
Tests
Z-Test: 1 μ The Z-Test on one mean
70 Inference app
Symbolic view
options
Z-Int: 1 π The confidence interval for one
proportion, based on the
Normal distribution
Z-Int: π1– π2 The confidence interval for the
difference between two
proportions, based on the
Normal distribution
T-Int: 1 μ The confidence interval for one
mean, based on the Student's t-
distribution
T-Int: μ1 – μ2 The confidence interval for the
difference between two means,
based on the Student's t-
distribution
Χ2 test
Goodness of fit The chi-square goodness of fit
test, based on categorical data
2-way test The chi-square test, based on
categorical data in a two-way
table
Regression
Linear t-test The t-test for linear regression
Interval: Slope The confidence interval for the
slope of the true linear
regression line, based on the t-
distribution
Interval: Intercept The confidence interval for the
y-intercept of the true linear
regression line, based on the t-
distribution
Interval: Mean The confidence interval for a
response mean response, based on the t-
distribution
Prediction interval The prediction interval for a
future response, based on the t-
distribution
Inference app 71
for an alternative hypothesis based on a quantitative
comparison of two quantities. The null hypothesis is
always that the two quantities are equal. Thus, the
alternative hypotheses cover the various cases for the two
quantities being unequal: <, >, and ≠.
4. Select an alternative
hypothesis. In this
case, select μ< μ 0
from the Alt Hypoth
menu.
72 Inference app
The table below describes the fields in this view for
the sample data.
Inference app 73
Plot the test 7. Display a graphical
results view of the test
results:
P
The graph of the
distribution is
displayed, with the
test Z-value marked. The corresponding X-value is also
shown.
Importing statistics
For many of the calculations, the Inference app can
import summary statistics from data in the Statistics 1Var
and Statistics 2Var apps. For the others, the data can be
manually imported. The following example illustrates the
process.
74 Inference app
Enter data 3. In column D1, enter
the boiling points
found during the
experiments.
82.5 E
83.1 E
82.6 E
83.7 E
82.4 E
83 E
5. Tap to close
the statistics window.
Inference app 75
8. Tap on Type and
select T-Int: 1 μ
76 Inference app
Display 17. Display the confidence
results interval in Plot view.
graphically P
The 90% confidence
interval is [82.48…,
83.28…].
Hypothesis tests
You use hypothesis tests to test the validity of hypotheses
about the statistical parameters of one or two populations.
The tests are based on statistics of samples of the
populations.
One-Sample Z-Test
Menu name Z-Test: 1 μ
H0: μ < μ0
H0: μ > μ0
H0: μ ≠ μ0
Inference app 77
Inputs The inputs are:
Result Description
Test Z Z-test statistic
Test x Value of x associated with the
test Z-value
P Probability associated with the
Z-Test statistic
Critical Z Boundary value(s) of Z
associated with the α level that
you supplied
Critical x Boundary value(s) of x required
by the α value that you supplied
Two-Sample Z-Test
Menu name Z-Test: μ1 – μ2
H0: μ1 < μ2
H0: μ1 > μ2
H0: μ1 ≠ μ2
78 Inference app
Inputs The inputs are:
Result Description
Test Z Z-Test statistic
Test Δ x Difference in the means associ-
ated with the test Z-value
P Probability associated with the
Z-Test statistic
Critical Z Boundary value(s) of Z associated
with the α level that you supplied
Critical Δ x Difference in the means associ-
ated with the α level you supplied
One-Proportion Z-Test
Menu name Z-Test: 1 π
H0: π < π0
H0: π > π0
H0: π ≠ π0
Inference app 79
Inputs The inputs are:
Result Description
Test Z Z-Test statistic
Test p̂ Proportion of successes in the sample
P Probability associated with the Z-Test
statistic
Critical Z Boundary value(s) of Z associated
with the α level that you supplied
Critical p̂ Proportion of successes associated
with the level you supplied
Two-Proportion Z-Test
Menu name Z-Test: π1– π2
H0: π1 < π2
H0: π1 > π2
H0: π1 ≠ π2
80 Inference app
Field name Definition
x2 Sample 2 success count
n1 Sample 1 size
n2 Sample 2 size
α Significance level
Result Description
Test Z Z-Test statistic
Test Δ p̂ Difference between the
proportions of successes in the
two samples that is associated
with the test Z-value
P Probability associated with the
Z-Test statistic
Critical Z Boundary value(s) of Z
associated with the α level that
you supplied
Critical Δ p̂ Difference in the proportion of
successes in the two samples
associated with the α level you
supplied
One-Sample T-Test
Menu name T-Test: 1 μ
Inference app 81
You select one of the following alternative hypotheses
against which to test the null hypothesis:
H0: μ < μ0
H0: μ > μ0
H0: μ ≠ μ0
Result Description
Test T T-Test statistic
Test x Value of x associated with the
test t-value
P Probability associated with the
T-Test statistic
DF Degrees of freedom
Critical T Boundary value(s) of T
associated with the α level that
you supplied
Critical x Boundary value(s) of x required
by the α value that you supplied
Two-Sample T-Test
Menu name T-Test: μ1 – μ2
82 Inference app
You select one of the following alternative hypotheses
against which to test the null hypothesis:
H0: μ1 < μ2
H0: μ1 > μ2
H0: μ1 ≠ μ2
Field Definition
name
x1 Sample 1 mean
x2 Sample 2 mean
s1 Sample 1 standard deviation
s2 Sample 2 standard deviation
n1 Sample 1 size
n2 Sample 2 size
α Significance level
Pooled Check this option to pool samples
based on their standard deviations
Result Description
Test T T-Test statistic
Test Δ x Difference in the means associated
with the test t-value
P Probability associated with the T-Test
statistic
DF Degrees of freedom
Critical T Boundary values of T associated with
the α level that you supplied
Critical Difference in the means associated
Δx with the α level you supplied
Inference app 83
Confidence intervals
The confidence interval calculations that the HP Prime can
perform are based on the Normal Z-distribution or
Student’s t-distribution.
One-Sample Z-Interval
Menu name Z-Int: 1 μ
Field Definition
name
x Sample mean
n Sample size
σ Population standard deviation
C Confidence level
Result Description
C Confidence level
Critical Z Critical values for Z
Lower Lower bound for μ
Upper Upper bound for μ
Two-Sample Z-Interval
Menu name Z-Int: μ1 – μ2
84 Inference app
Inputs The inputs are:
Field Definition
name
x1 Sample 1 mean
x2 Sample 2 mean
n1 Sample 1 size
n2 Sample 2 size
σ1 Population 1 standard deviation
σ2 Population 2 standard deviation
C Confidence level
Result Description
C Confidence level
Critical Z Critical values for Z
Lower Lower bound for Δ μ
Upper Upper bound for Δ μ
One-Proportion Z-Interval
Menu name Z-Int: 1π
Field Definition
name
x Sample success count
n Sample size
C Confidence level
Inference app 85
Results The results are:
Result Description
C Confidence level
Critical Z Critical values for Z
Lower Lower bound for π
Upper Upper bound for π
Two-Proportion Z-Interval
Menu name Z-Int: π1 – π2
Field Definition
name
x1 Sample 1 success count
x2 Sample 2 success count
n1 Sample 1 size
n2 Sample 2 size
C Confidence level
Result Description
C Confidence level
Critical Z Critical values for Z
Lower Lower bound for Δπ
Upper Upper bound for Δπ
86 Inference app
One-Sample T-Interval
Menu name T-Int: 1 μ
Field Definition
name
x Sample mean
s Sample standard deviation
n Sample size
C Confidence level
Result Description
C Confidence level
DF Degrees of freedom
Critical T Critical values for T
Lower Lower bound for μ
Upper Upper bound for μ
Two-Sample T-Interval
Menu name T-Int: μ1 – μ2
Inference app 87
Inputs The inputs are:
Result Definition
x1 Sample 1 mean
x2 Sample 2 mean
s1 Sample 1 standard deviation
s2 Sample 2 standard deviation
n1 Sample 1 size
n2 Sample 2 size
C Confidence level
Pooled Whether or not to pool the samples
based on their standard deviations
Result Description
C Confidence level
DF Degrees of freedom
Critical T Critical values for T
Lower Lower bound for Δ μ
Upper Upper bound for Δ μ
Chi-square tests
An HP Prime calculator can perform tests on categorical
data based on the chi-square distribution. Specifically, HP
Prime calculators support both goodness of fit tests and
tests on two-way tables.
88 Inference app
Inputs With Expected Probability selected, the Numeric
view inputs are as follows:
Field Definition
name
ObsList The list of observed count data
ProbList The list of expected possibilities
Field Definition
name
x2 The value of the chi-square test statistic
P The probability associated with the chi-
square value
DF The degrees of freedom
Menu Definition
key
Displays the default test results, as listed
previously
Displays the expected counts
Displays the list of contributions of each
category to the chi-square value
Selects a small, medium, or large font
Returns to the Numeric view
Inference app 89
Inputs The Numeric view inputs are as follows:
Field Definition
name
ObsMat The matrix of the observed count data in
the two-way table
Field Definition
name
x2 The value of the chi-square test statistic
P The probability associated with the chi-
square value
DF The degrees of freedom
Menu Definition
key
Displays the matrix of expected counts.
Press to exit.
Displays the matrix of contributions of
each category to the chi-square value.
Press to exit.
Selects a small, medium, or large font.
Returns to the Numeric view.
90 Inference app
To import the data into the Inference app:
Linear t-test
Menu name Linear t test
Field Definition
name
Xlist The list of explanatory data
Ylist The list of response data
Field Definition
name
Test T The value of the t-test statistic
P The probability associated with the t-
statistic
DF The degrees of freedom
Inference app 91
Field Definition
name
β0 The intercept of the calculated regres-
sion line
β1 The slope of the calculated regression
line
serrLine The standard error of the calculated
regression line
serrSlope The standard error of the slope of the
calculated regression line
serrInter The standard error of the intercept of the
calculated regression line
r The correlation coefficient of the data
2
R The coefficient of determination of the
data
Menu Definition
key
Selects a small, medium, or large font.
Returns to the Numeric view.
92 Inference app
Inputs The Numeric view inputs are as follows:
Field Definition
name
Xlist The list of explanatory data
Ylist The list of response data
C The confidence level (0 < C < 1)
Field Definition
name
C The input confidence level
Crit. T The critical value of t
DF The degrees of freedom
β1 The slope of the calculated regression
line
serrSlope The standard error of the slope of the
regression line
Lower The lower bound of the confidence
interval for the slope
Upper The upper bound of the confidence
interval for the slope
Menu Definition
key
Selects a small, medium, or large font.
Returns to the Numeric view.
Inference app 93
Confidence interval for intercept
Menu name Interval: Intercept
Field Definition
name
Xlist The list of explanatory data
Ylist The list of response data
C The confidence level (0 < C < 1)
Field Definition
name
C The input confidence level
Crit. T The critical value of t
DF The degrees of freedom
β0 The intercept of the calculated regres-
sion line
serrInter The standard error of the y-intercept of
the regression line
Lower The lower bound of the confidence
interval for the intercept
Upper The upper bound of the confidence
interval for the intercept
94 Inference app
Menu keys The menu key options are as follows:
Menu Definition
key
Selects a small, medium, or large font.
Returns to the Numeric view.
Field Definition
name
Xlist The list of explanatory data
Ylist The list of response data
X The value of the explanatory variable for
which you want a mean response and a
confidence interval
C The confidence level (0 < C < 1)
Field Definition
name
C The input confidence level
Crit. T The critical value of t
DF The degrees of freedom
ŷ The mean response for the input X-value
serr ŷ The standard error of ŷ
Inference app 95
Field Definition
name
Lower The lower bound of the confidence
interval for the mean response
Upper The upper bound of the confidence
interval for the mean response
Menu Definition
key
Selects a small, medium, or large font.
Returns to the Numeric view.
Prediction interval
Menu name Prediction interval
Field Definition
name
Xlist The list of explanatory data
Ylist The list of response data
X The value of the explanatory variable for
which you want a future response and a
confidence interval
C The confidence level (0 < C < 1)
96 Inference app
Results When is tapped, the results are as follows:
Field Definition
name
C The input confidence level
Crit. T The critical value of t
DF The degrees of freedom
ŷ The future response for the input X-value
serr ŷ The standard error of ŷ
Lower The lower bound of the confidence
interval for the mean response
Upper The upper bound of the confidence
interval for the mean response
Menu Definition
key
Selects a small, medium, or large font.
Returns to the Numeric view.
Inference app 97
98 Inference app
3
Setting the form You can choose to have entries on the Math and CAS menus
of menu items presented either by their descriptive name or their command
name. (The entries on the Catlg menu are always presented
by their command name.)
Keyboard functions
The most frequently used functions are available directly from
the keyboard. Many of the keyboard functions also accept
complex numbers as arguments. Enter the keys and inputs
shown below and press E to evaluate the expression.
evalue
Example:
e5 returns 148.413159103
Se(ASIN) Arc sine: sin–1x. Output range is from –90° to 90° or –π/2
to π/2. Inputs and outputs depend on the current angle
format. Also accepts complex numbers.
ASIN(value)
Example:
ASIN(1) returns 90 (degrees mode)
Sg(ATAN) Arc tangent: tan–1x. Output range is from –90° to 90° or –π/
2 to π/2. Inputs and outputs depend on the current angle
format. Also accepts complex numbers.
ATAN(value)
Example:
ATAN(1) returns 45 (degrees mode)
value 2
Example:
Example:
√320 returns 17.88854382
value power
Example:
2 8 returns 256
Sn Reciprocal.
value -1
Example:
3 -1 returns .333333333333
Numbers
Ceiling Smallest integer greater than or equal to value.
CEILING(value)
Examples:
CEILING(3.2) returns 4
CEILING(-3.2) returns -3
Example:
FLOOR(3.2) returns 3
FLOOR(-3.2) returns -4
IP Integer part.
IP(value)
Example:
IP(23.2) returns 23
FP Fractional part.
FP(value)
Example:
FP (23.2) returns .2
Example:
MANT(21.2E34) returns 2.12
Example:
5.0915...
XPON(123456) returns 5 (since 10 equals 123456)
Arithmetic
Maximum Maximum. The greater of two values.
MAX(value1,value2)
Example:
MAX(8/3,11/4) returns 2.75
Minimum Minimum. Returns the least of the values given, or the least
value of a list.
MIN(value1,value2)
Example:
MIN(210,25) returns 25
Example:
74 MOD 5 returns 4
Find Root Function root-finder (like the Solve app). 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((A*9.8/600)-1,A,1) returns 61.2244897959.
Example:
%(20,50) returns 10
Complex
Argument Argument. Finds the angle defined by a complex number.
Inputs and outputs use the current angle format set in Home
modes.
ARG(x+y*i)
Example:
ARG(3+3*i) returns 45 (degrees mode)
Example:
Example:
RE(3+4*i) returns 3
Example:
IM(3+4*i) returns 4
Unit Vector Sign of value. If positive, the result is 1. If negative, –1. If zero,
result is zero. For a complex number, this is the unit vector in
the direction of the number.
SIGN(value)
SIGN((x,y))
Examples:
SIGN(POLYEVAL([1,2,–25,–26,2],–2)) returns –1
SIGN((3,4)) returns (.6+.8i)
Exponential
ALOG Antilogarithm (exponential).
ALOG(value)
x
EXPM1 Exponential minus 1: e –1.
EXPM1(value)
Trigonometry
The trigonometry functions can also take complex numbers as
arguments. For SIN, COS, TAN, ASIN, ACOS, and ATAN,
see “Keyboard functions” on page 101.
Hyperbolic
The hyperbolic trigonometry functions can also take complex
numbers as arguments.
Probability
Factorial Factorial of a positive integer. For non-integers, x! = Γ(x + 1).
This calculates the gamma function.
value!
Example:
5! returns 120
Random
Number Random number. With no argument, this function returns a
random number between zero and one. With one argument
a, it returns a random number between 0 and a. With two
arguments, a, and b, returns a random number between a
and b. With three arguments, n, a, and b, returns n random
number between a and b.
RANDOM
RANDOM(a)
RANDOM(a,b
RANDOM(n,a,b)
Seed Sets the seed value on which the random functions operate.
By specifying the same seed value on two or more calculators,
you ensure that the same random numbers appear on each
calculator when the random functions are executed.
RANDSEED(value)
Density
Normal Normal probability density function. Computes the
probability density at value x, given the mean, μ, and
standard deviation, σ, of a normal distribution. If only one
argument is supplied, it is taken as x, and the assumption is
that μ=0 and σ=1.
NORMALD([μ,σ,]x)
Example:
NORMALD(0.5) and NORMALD(0,1,0.5) both return
0.352065326764.
Example:
STUDENT(3,5.2) returns 0.00366574413491.
2 2
χ χ probability density function. Computes the probability
density of the χ2 distribution at x, given n degrees of freedom.
CHISQUARE(n,x)
Example:
CHISQUARE(2,3.2) returns 0.100948258997.
Example:
FISHER(5,5,2) returns 0.158080231095.
POISSON(μ,k)
Cumulative
Normal Cumulative normal distribution function. Returns the lower-tail
probability of the normal probability density function for the
value x, given the mean, μ, and standard deviation, σ, of a
normal distribution. If only one argument is supplied, it is
taken as x, and the assumption is that μ=0 and σ=1.
NORMALD_CDF([μ,σ,]x)
Example:
NORMALD_CDF(0,1,2) returns 0.977249868052.
Example:
STUDENT_CDF(3,–3.2) returns 0.0246659214814.
Example:
CHISQUARE_CDF(2, 6.3) returns 0.957147873133.
Example:
FISHER_CDF(5,5,2) returns 0.76748868087.
Example:
POISSON_CDF(4,2) returns 0.238103305554.
Inverse
Normal Inverse cumulative normal distribution function. Returns the
cumulative normal distribution value associated with the lower-tail
probability, p, given the mean, μ, and standard deviation, σ, of a
normal distribution. If only one argument is supplied, it is taken as
p, and the assumption is that μ=0 and σ=1.
NORMALD_ICDF([μ,σ,]p)
Example:
NORMALD_ICDF(0,1,0.841344746069) returns 1.
Example:
STUDENT_ICDF(3,0.0246659214814) returns –3.2.
2
χ Inverse cumulative χ 2 distribution function. Returns the value x
such that the χ 2 lower-tail probability of x, with n degrees of
freedom, is p.
CHISQUARE_ICDF(n,p)
Example:
CHISQUARE_ICDF(2, 0.957147873133) returns 6.3.
Example:
FISHER_ICDF(5,5,0.76748868087) returns 2.
Example:
BINOMIAL_ICDF(20,0.5,0.6) returns 11.
Example:
POISSON_ICDF(4,0.238103305554) returns 3.
List
These functions work on data in a list.
Special
Beta Returns the value of the beta function (Β) for two numbers a
and b.
Beta(a,b)
Gamma Returns the value of the gamma function (Γ) for a number a.
Gamma(a)
Psi Returns the value of the nth derivative of the digamma function
at x=a, where the digamma function is the first derivative of
ln(Γ(x)).
Psi(a,n)
Zeta Returns the value of the zeta function (Z) for a real x.
Zeta(x)
erf Returns the floating point value of the error function at x=a.
erf(a)
Algebra
Simplify Returns an expression simplified.
simplify(Expr)
Example:
simplify(4*atan(1/5)-atan(1/239))yields (1/4)*pi
Examples:
collect(x+2*x+1-4) returns 3*x-3
Example:
expand((x+y)*(z+1))gives y*z+x*z+y+x
Example:
Example:
subst(x/(4-x^2),x=3) returns -3/5
Example:
partfrac(x/(4-x^2)) returns (-1/2)/(x-2)-(1/2)/
((x+2)
Extract
Numerator Simplified Numerator. For the integers a and b, returns the
numerator of the fraction a/b after simplification.
numer(a/b)
Example:
numer(10/12) returns 5
Example:
denom(10/12) returns 6
Left Side Returns the left side of an equation or the left end of an
interval.
left(Expr1=Expr2) or left(Real1..Real2)
Example:
left(x^2-1=2*x+3) returns x^2-1
Right Side Returns the right side of an equation or the right end of an
interval.
right(Expr1=Expr2) or right(Real1..Real2)
Example:
right(x^2-1=2*x+3) returns 2*x+3
or
diff(Expr,var1$k1,var2$k2,...)
Example:
diff(x^3-x) gives 3*x^2-1
Example:
int(1/x) gives ln(abs(x))
Example:
limit((n*tan(x)-tan(n*x))/(sin(n*x)-
n*sin(x)),x,0) gives 2
Example:
series((x^4+x+2)/(x^2+1),x=0,5) gives 2+x-2x^2-
x^3+3x^4+x^5+x^6*order_size(x)
Summation Returns the discrete sum of Expr with respect to the variable
Var from Real1 to Real2. You can also use the summation
template in the Template menu. With only the first two
arguments, returns the discrete antiderivative of the expression
with respect to the variable.
sum(Expr,Var,Real1, Real2,[Step])
Example:
sum(n^2,n,1,5) returns 55
Differential
Curl Returns the rotational curl of a vector field. Curl([A B C], [x y
z]) is defined to be [dC/dy-dB/dz dA/dz-dC/dx dB/dx-dA/
dy].
curl([Expr1, Expr2, …, ExprN], [Var1,
Var2, …, VarN])
Example:
curl([2*x*y,x*z,y*z],[x,y,z]) returns [z-x,0,z-
2*x]
Example:
divergence([x^2+y,x+z+y,z^3+x^2],[x,y,z])
gives 2*x+3*z^2+1
Example:
grad(2*x^2*y-x*z^3,[x,y,z]) gives [2*2*x*y-
z^3,2*x^2,-x*3*z^2]
Example:
hessian(2*x^2*y-x*z,[x,y,z]) gives [[4*y,4*x,-
1],[2*2*x,0,0],[-1,0,0]]
Integral
Example:
ibpu(x*ln(x), x) returns [x*(x*ln(x) –x*ln(x)+x]
Example:
ibpdv(ln(x),x) gives x*ln(x)-x
Example:
preval(x^2-2,2,3) gives 5
Limits
Riemann Sum Returns an equivalent of the sum of Expr for var2 from var2=1
to var2=var1 (in the neighborhood of n=+∞) when the sum is
looked at as a Riemann sum associated with a continuous
function defined on [0,1].
sum_riemann(Expr, [Var1 Var2])
Example:
sum_riemann(1/(n+k),[n,k]) gives ln(2)
Example:
taylor(sin(x)/x,x=0) returns 1-(1/6)*x^2+(1/
120)*x^4+x^6*order_size(x)
Taylor of Quotient Returns the n-degree Taylor polynomial for the quotient of 2
polynomials.
divpc(Poly1,Poly2,Integer)
Example:
divpc(x^4+x+2,x^2+1,5) returns the 5th-degree
polynomial x^5+3*x^4-x^3-2*x^2+x+2
Transform
Laplace Returns the Laplace transform of an expression.
laplace(Expr,[Var],[LapVar])
Example:
laplace(exp(x)*sin(x)) gives 1/(x^2-2*x+2)
Example:
ilaplace(1/(x^2+1)^2) returns ((-x)*cos(x))/
2+sin(x)/2
Example:
fft([1,2,3,4,0,0,0,0]) gives [10.0,-
0.414213562373-7.24264068712*(i),-
2.0+2.0*i,2.41421356237-1.24264068712*i,-
2.0,2.41421356237+1.24264068712*i,-2.0-2.0*i]
Example:
ifft([100.0,-52.2842712475+6*i,-
8.0*i,4.28427124746-
6*i,4.0,4.28427124746+6*i,8*i,-52.2842712475-
6*i]) gives
[0.99999999999,3.99999999999,10.0,20.0,25.0,2
4.0,16.0,-6.39843733552e-12]
Solve
Solve Returns a list of the solutions (real and complex) to a
polynomial equation or a set of polynomial equations.
solve(Eq,[Var]) or solve({Eq1, Eq2,…},
[Var])
Examples:
solve(x^2-3=1) returns {-2,2}
Example:
zeros(x^2-4) returns [-2 2]
or
cSolve({Eq1, Eq2,…}, [Var])
Example:
cSolve(x^4-1=0, x) returns {1 -1 -i i}
or
cZeros({Expr1, Expr2,…},[{Var1, Var2,…}])
Example:
cZeros(x^4-1) returns [1 -1 -i i]
Example:
nSolve(cos(x)=x,x=1.3) gives 0.739085133215
Example:
desolve(y''+y=0,y) returns G_0*cos(x)+G_1*sin(x)
Example:
odesolve(sin(t*y),[t,y],[0,1],2) returns
[1.82241255674]
Rewrite
lncollect Rewrites an expression with the logarithms collected. Applies
ln(a)+n*ln(b) = ln(a*b^n) for an integer n.
lncollect(Expr)
Example:
lncollect(ln(x)+2*ln(y)) returns ln(x*y^2)
Example:
powexpand(2^(x+y)) yields (2^x)*(2^y)
Example:
texpand(sin(2*x)+exp(x+y)) returns exp(x)*exp(y)+
2*cos(x)*sin(x))
Exp & Ln
ey*lnx → xy Returns an expression of the form en*ln(x) rewritten as a power
of x. Applies en*ln(x)=xn.
exp2pow(Expr)
Example:
exp2pow(exp(3*ln(x))) gives x^3
Example:
pow2exp(a^b) gives exp(b*ln(a))
Example:
exp2trig(exp(i*x)) gives cos(x)+(i)*sin(x)
Example:
expexpand(exp(3*x)) gives exp(x)^3
Sine
asinx → acosx Returns an expression with asin(x) rewritten as π/2– acos(x).
asin2acos(Expr)
Example:
asin2acos(acos(x)+asin(x)) returns π/2
asin2atan(Expr)
Example:
asin2atan(2*asin(x)) returns
x
2 ⋅ atan -------------------2-
1–x
Example:
sin2costan(sin(x)) gives tan(x)*cos(x)
Cosine
acosx → asinx Returns an expression with acos(x) rewritten as π/2–asin(x).
acos2asin(Expr)
Example:
acos2asin(acos(x)+asin(x)) returns π/2
π x
--- – atan -------------------2-
2 1–x
acos2atan(Expr)
Example:
acos2atan(2*acos(x)) gives
x
2 ⋅ --π- – atan -------------------2-
2 1 – x
Example:
cos2sintan(cos(x)) gives sin(x)/tan(x)
atan2asin(Expr)
Example:
atan2asin(atan(2*x)) returns
2⋅x
asin --------------------------------2-
1 – (2 ⋅ x)
π x
--- – acos -------------------2-
2 1+x
atan2acos(Expr)
Example:
tan2sincos(tan(x)) gives sin(x)/cos(x)
Example:
x
2 ⋅ tan ---
2
halftan(sin(x)) returns -------------------------------
2
-
x
tan --- + 1
2
Trig
trigx → sinx Returns an expression simplified using the formulas
sin(x)^2+cos(x)^2=1 and tan(x)=sin(x)/cos(x). Sin(x) is given
precedence over cos(x) and tan(x) in the result.
trigsin(Expr)
Example:
trigsin(cos(x)^4+sin(x)^2) returns sin(x)^4-
sin(x)^2+1
Example:
trigcos(sin(x)^4+sin(x)^2) returns cos(x)^4-
3*cos(x)^2+2
Example:
trigtan(cos(x)^4+sin(x)^2) returns
(tan(x)^4+tan(x)^2+1)/(tan(x)^4+2*tan(x)^2+1)
Example:
i (i + x)
atrig2ln(atan(x)) returns --- ⋅ ln ---------------
2 (i – x)
Example:
tlin(sin(x)^3) gives 3
--- ⋅ sin ( x ) – 1
--- ⋅ sin ( 3 ⋅ x )
4 4
Example:
tcollect(sin(x)+cos(x)) returns
1
2 ⋅ cos x – --- ⋅ π
4
Example:
trigexpand(sin(3*x)) gives (4*cos(x)^2-
1)*sin(x)
Example:
trig2exp(sin(x)) returns
–i 1 -
---- ⋅ exp ( i ⋅ x ) – -----------------------
2 exp ( i ⋅ x )
Integer
Divisors Returns the list of divisors of an integer or a list of integers.
idivis(Integer)
or
idivis({Intgr1, Intgr2,…})
Example:
idivis(12) returns [1, 2, 3, 4, 6, 12]
Example:
With the CAS setting Simplify set to None, ifactor(150)
returns 2*3*5^2
ifactors({Intgr1, Intgr2,…})
Example:
ifactors(150) returns [2, 1, 3, 1, 5, 2]
Example:
gcd(32,120,636) returns 4
Example:
lcm(6,4) returns 12
Prime
Test if Prime Tests whether or not a given integer is a prime number.
isPrime(Integer)
Example:
isPrime(19999) returns false
Example:
ithprime(5) returns 11
Example:
nextprime(11) returns 13
Example:
prevprime(11) returns 7
Example:
euler(6) returns 2
Example:
iquo(63, 23) returns 2
Example:
irem(63, 23) returns 17
Example:
powmod(5,2,13) returns 12
Example:
ichinrem([2, 7], [3, 5]) returns [-12, 35]
Polynomial
Find Roots Given a polynomial in x (or a vector containing the
coefficients of a polynomial), returns a vector containing its
roots.
proot(Poly) or proot(Vector)
Example:
proot([1,0,-2]) returns
[-1.41421356237,1.41421356237]
coeff(y^2-2, y, 1) returns 0
Example:
divis(x^2-1) returns [1 -1+x 1+x (-1+x)*(1+x)]
Example:
factors(x^4-1) returns [x-1 1 x+1 1 x2+1 1]
Example:
gcd(x^4-1, x^2-1) returns x^2-1
Example:
lcm(x^2-2*x+1,x^3-1) gives (x-1)*(x^3-1)
or
symb2poly(Expr, {Var1, Var2,…})
Example:
symb2poly(x*3+2.1) returns [3 2.1]
Example:
pcoeff({1,0,0,0,1}) returns [1 -2 1 0 0 0]
Roots to Poly Takes as argument a vector. The vector contains each root or
pole of a rational function. Each root or pole is followed by its
order, with poles having negative order. Returns the rational
function in x that has the roots and poles (with their orders)
specified in the argument vector.
fcoeff(Vector) where Vector has the form [Root1,
Oder1, Root2, Order2, …])
Example:
fcoeff([1,2,0,1,3,-1]) returns (x-1)^2*x*(x-3)^-
1
Example:
randpoly(t, 8, -1..1) returns a vector of 9 random
integers, all of them between –1 and 1.
Example:
pmin([[1,0],[0,1]],x) gives x-1
Algebra
Quotient Returns a vector containing the coefficients of the Euclidean
quotient of two polynomials. The polynomials may be written
as a list of coefficients or in symbolic form.
quo(List1, List2, [Var])
or
quo(Poly1, Poly2, [Var])
Example:
quo({1, 2, 3, 4}, {-1, 2}) returns [-1 -4 -11]
or
rem(Poly1, Poly2, [Var])
Example:
rem({1, 2, 3, 4}, {-1, 2}) returns [26]
Example:
degree(x^3+x) gives 3
Example:
factor_xn(x^4-1) gives x^4*(1-x^-4)
Coef. GCD Returns the greatest common divisor (GCD) of the coefficients
of a polynomial.
content(Poly,[Var])
Example:
content(2*x^2+10*x+6) gives 2
Zero Count If a and b are real, this returns the number of sign changes in
the specified polynomial in the interval [a,b]. If a or b are non-
real, it returns the number of complex roots in the rectangle
bounded by a and b. If Var is omitted, it is assumed to be x.
sturmab(Poly[,Var],a,b)
Examples:
sturmab(x^2*(x^3+2),-2,0) returns 1
sturmab(n^3-1,n,-2-i,5+3i) returns 3
Chinese Given two matrices whose two rows each contain the
Remainder coefficients of polynomials, returns the Chinese remainder of
the polynomials, also written as a matrix.
chinrem(Matrix1,Matrix2)
Example:
1 2 0, 1 1 0
chinrem
returns
1 0 1 1 1 1
[[2 2 1] [1 1 2 1 1]]
Example:
cyclotomic(20) gives [1 0 –1 0 1 0 –1 0 1]
Example:
gbasis([x^2-y^3,x+y^2],[x,y]) returns [y^4-
y^3,x+y^2]
Example:
greduce(x*y-1,[x^2-y^2,2*x*y-y^2,y^3],[x,y])
returns 1/2*y^2-1
Example:
hermite(3) gives 8*x^3-12*x
or
X1 X2 ...
lagrange
Y1 Y2 ...
Example:
lagrange([1,3],[0,1]) gives (x-1)/2
Example:
laguerre(4) returns 1/24*a^4+(-1/6)*a^3*x+5/
12*a^3+1/4*a^2*x^2+(-3/2)*a^2*x+35/24*a^2+(-
1/6)*a*x^3+7/4*a*x^2+(-13/3)*a*x+25/12*a+1/
24*x^4+(-2/3)*x^3+3*x^2-4*x+1
Example:
legendre(4) returns 35
4 15
------- ⋅ x + ------- ⋅ x + --3-
2
8 4 8
Example:
tchebyshev1(3) gives 4*x^3-3*x
Example:
tchebyshev2(3) gives 8*x^3-4*x
Example:
plotfunc(3*sin(x)) draws the graph of y=3*sin(x)
App menu
Press D to open the
Toolbox menus (one of which
is the App menu). App
functions are used in HP
apps to perform common
calculations. For example, in
the Function app, the Plot
view Fcn menu has a
function called SLOPE that calculates the slope of a given
function at a given point. The SLOPE function can also be
used from the Home view or a program to give the same
results. The app functions described in this section are
grouped by app.
AREA Area under a curve or between curves. Finds the signed area
under a function or between two functions. Finds the area
under the function Fn or below Fn and above the function Fm,
from lower X-value to upper X-value.
AREA(Fn,[Fm,]lower,upper)
Example:
AREA(-X,X2-2,-2,1) returns 4.5
ROOT Root of a function. Finds the root of the function Fn (if one
exists) that is closest to the X-value guess.
ROOT(Fn,guess)
Example:
ROOT(3-X2,2) returns 1.732…
SOLVE Solve. Solves an equation for one of its variables. Solves the
equation En for the variable var, using the value of guess as
the initial value for the value of the variable var. If En is an
expression, then the value of the variable var that makes the
expression equal to zero is returned.
SOLVE(En,var,guess)
Example:
SOLVE(X2-X-2,X,3)returns 2
This function also returns an integer that is indicative of the
type of solution found, as follows:
0—an exact solution was found
1—an approximate solution was found
2—an extremum was found that is as close to a solution
as possible
3—neither a solution, an approximation, nor an
extremum was found
functionName(input,[optional
parameters])
Input is the input list for the function. This can be a cell range
reference, a simple list or anything that results in a list of
values.
For example:
=STAT1(A25:A37)
produces the following
default output, based on the
numerical values in cells
A25 through A37.
Mode defines how to treat the input. The valid values are:
x Σ Σ² s s² σ
( xi – x )
2
σ² serr n min q1
med q3 max
Notes:
The STAT1 f function only updates the content of the
destination cells when the cell that contains the formula is
calculated. This means that if the spreadsheet view contains
at the same time results and inputs, but not the cell that
contains the call to the STAT1 function, updating the data will
not update the results as the cell that contains STAT1 is not
recalculated (since it is not visible).
The format of cells that receive headers is changed to have
Show " " set to false.
The STAT1 function will overwrite the content of destination
cells, potentially erasing data.
Examples:
STAT1(A25:A37)
STAT1(A25:A37,”h n x σ”).
REGRS(Input range,[model],
["configuration"])
HypZ1prop(x,n,π0,α,mode,
[”configuration”]) where x is the success count of the
sample
HypZ2prop(x1,x2,n1,n2,α,mode,
[”configuration”]) where x1 and x2 are the success
counts of the two samples)
ConfZ1prop(x,n,C,[”configuration”])
ConfZ2prop(x1,x2,n1,n2,C,[”configuration”])
ConfT1mean( x ,s,n,C,[”configuration”])
SetFreq Set frequency. Sets the frequency for one of the statistical
analyses (H1-H5) defined in the Symbolic view of the
Statistics 1Var app. The frequency can be either one of the
columns D0-D9, or any positive integer. Hn must be one of the
Statistics 1Var app Symbolic view variables H1-H5. If used,
Dn must be one of the column variables D0-D9; otherwise,
value must be a positive integer.
SetFreq(Hn,Dn)
or
SetFreq(Hn,value)
Example:
SetFreq(H2,D3) sets the Frequency field for the H2
analysis to use the list D3.
SetSample Set sample data. Sets the sample data for one of the statistical
analyses (H1-H5) defined in the Symbolic view of the
Statistics 1Var app. Sets the data column to one of the column
variables D0-D9 for one of the statistical analyses H1-H5.
SetSample(Hn,Dn)
Example:
SetSample(H2,D2) sets the Independent Column
field for the H2 analysis to use the data in the list D2.
PredX Predict X. Uses the fit from the first active analysis (S1-S5)
found to predict an x-value given the y-value.
PredX(value)
PredY Predict Y. Uses the fit from the first active analysis (S1-S5)
found to predict a y-value given the x-value.
PredY(value)
Resid Residuals. Returns the list of residuals for the given analysis
(S1-S5), based on the data and a fit defined in the Symbolic
view for that analysis.
Resid(Sn) or Resid()
Resid() looks for the first defined analysis in the Symbolic view
(S1-S5).
SetDepend Set dependent column. Sets the dependent column for one of
the statistical analyses S1-S5 to one of the column variables
C0-C9.
SetDepend(Sn,Cn)
Example:
SetDepend(S1,C3) sets the Dependent Column field
for the S1 analysis to use the data in list C3.
HypZ1mean The one-sample Z-test for a mean. Returns a list containing (in
order):
• 0 or 1 to reject or fail to reject the null hypothesis
• The test Z-value
• The input x value
• The upper-tail probability
• The upper critical Z-value associated with the input α-level
• The critical value of the statistic associated with the
critical Z-value
HypZ1mean( x , n,μ0,σ,α,mode)
HYPZ2mean The two-sample Z-test for means. Returns a list containing (in
order):
HypT1mean The one-sample t-test for a mean. Returns a list containing (in
order):
HypT2mean The two-sample T-test for means. Returns a list containing (in
order):
Example:
ConfZ1mean(0.461368, 50, 0.2887, 0.95) returns {-
1.9599…, 0.3813…, 0.5413…}
Example:
ConfZ2mean(0.461368, 0.522851, 50, 50, 0.2887,
0.2887, 0.95) returns {-1.9599…,
-0.1746…, 0.0516…)}
Example:
ConfZ1prop(21, 50, 0.95) returns {-1.9599…,
0.2831…, 0.5568…}
Example:
ConfZ2prop(21, 26, 50, 50, 0.95) returns
{-1.9599…, -0.2946…, 0.0946…)}
Example:
ConfT1mean(0.461368, 0.2776, 50, 0.95) returns
{49, -.2009…, 0.5402…}
Example:
ConfT2mean(0.461368, 0.522851, 0.2887, 0.2887,
50, 50, 0.95,0) returns {98.0000…, -1.9844, -
0.1760…, 0.0531…)}
Example:
Chi2GOF({10,10,12,15,10,6},{.24,.2,.16,.14,.1
3,.13},0) returns {10.1799..., 0.07029..., 5}
Example:
Chi2TwoWay([[30,35,30],[11,2,19],[43,35,35]])
returns {14.4302..., 0.0060..., 4}
LinRegrTConf- The linear regression confidence interval for the slope. Given
Slope a list of explanatory variable data (X), a list of response
variable data (Y), and a confidence level, returns a list
containing the following values in the order shown:
• C: the given confidence level
• Critical T: the value of t associated with the given
confidence level
• DF: the degrees of freedom
• β1: the slope of the linear regression equation
• serrSlope: the standard error of the slope
• Lower: the lower bound of the confidence interval for the
slope
• Upper: the upper bound of the confidence interval for the
slope
LinRegrTConfSlope(List1, List2, C-value)
Example:
LinRegrTConfSlope({1,2,3,4},{3,2,0,-2},0.95)
returns {0.95, 4.302..., 2, -1.7, 0.1732...,
-2.445..., -0.954...}
Example:
LinRegrTConfInt({1, 2, 3, 4}, {3, 2, 0, -
2},0.95) returns {0.95, 4.302..., 2, 5,
0.474..., 2.959..., 7.040...}
Example:
LinRegrTPredInt({1, 2, 3, 4}, {3, 2, 0, -2},
2.5, 0.95) returns {2.5, 0.95, 4.302..., 2,
0.75, 0.433..., −1.113..., 2.613...}
CalcIPYR Solves for the interest rate per year of an investment or loan.
CalcIPYR(NbPmt,PV,PMTV,FV[,PPYR,CPYR,
BEG])
Example:
CalcIPYR(360, 150000, -948.10, -2.25) returns
6.50
DoFinance Calculate TVM results. Solves a TVM problem for the variable
TVMVar. The variable must be one of the Finance app's
Numeric view variables. Performs the same calculation as
tapping in the Numeric view of the Finance app with
TVMVar highlighted.
DoFinance(TVMVar)
LinSolve Solve linear system. Solves the 2x2 or 3x3 linear system
represented by matrix.
LinSolve(matrix)
Example:
LinSolve([[A, B, C], [D, E,F]]) solves the linear system:
ax+by=c
dx+ey=f
DoSolve Solves the current problem in the Triangle Solver app. The
Triangle Solver app must have enough data entered to ensure
a successful solution; that is, there must be at least three values
entered, one of which must be a side length. Returns a list
containing the unknown values in the Numeric view, in their
order of appearance in that view (left to right and top to
bottom).
DoSolve()
SolveForYIntercept
Solve for y-intercept. Takes as input the coordinates of a point
(x, y), and a slope m, and returns the y-intercept of the line
with the given slope that contains the given point.
SolveForYIntercept(x, y, m)
Example:
SolveForYIntercept(2,3,-1) returns 5
Example:
DELTA(1,0,-4) returns 16
Ctlg menu
The Catlg menu brings
together all the functions and
commands available on the
HP Prime. However, this
section describes the
functions and commands
that can only be found on
the Catlg menu. The
functions and commands that are also on the Math menu are
described in “Keyboard functions” on page 101. Those that
are also on the CAS menu are described in “CAS menu” on
page 116. The functions and commands specific to the
Geometry app are described in “Geometry functions and
Example:
6! returns 720
Example:
%(20,50) returns 10
Example:
%CHANGE(20,50) returns 150
Example:
%TOTAL(20,50) returns 250
Example:
[[1,2],[3,4]].*[[3,4],[5,6]] gives
[[3,8],[15,24]]
Example:
A:=3 stores the value 3 in the variable A
<= Less than or equal inequality test. Returns 1 if the left side of
the inequality is less than the right side or if the two sides are
equal, and 0 otherwise. Note that more than two objects can
be compared. See comment above regarding <.
== Equality test. Returns 1 if the left side and right side are equal,
and 0 otherwise.
>= Greater than or equal inequality test. Returns 1 if the left side
of the inequality is greater than the right side or if the two
sides are equal, and 0 otherwise. Note that more than two
objects can be compared. See comment above regarding <.
Example:
a2q([[1,2],[4,4]],[x,y]) returns x^2+6*x*y+4*y^2
Example:
abcuv(x^2+2*x+1,x^2-1,x+1) returns [1/2 -1/2]
additionally(n>5);
Example:
algvar(sqrt(x)+y) gives y
x
Example:
3 +1==4 AND 4 < 5 returns 1
or
append(Vector, Element)
Example:
append([1,2,3],4) gives [1,2,3,4]
Example:
apply(x→x^3,[1 2 3]) gives [1 8 27]
Example:
assume(n, integer)
Example:
basis([[1,2,3],[4,5,6],[7,8,9],[10,11,12]])
gives [[-3,0,3],[0,-3,-6]]
Example:
canonical_form(2*x^2-12*x+1) gives 2*(x-3)^2-
17
Example:
cat("aaa",c,12*3) gives "aaac36"
Example:
cFactor(x^2*y+y) gives (x+i)*(x-i)*y
Example:
Example:
chrem([2,3],[7,5]) returns [-12,35]
col Given a matrix and an integer n, returns the nth column of the
matrix as a vector.
col(Matrix, Integer)
1 2 3
col 4 5 6 , 2 returns [2,5,8]
7 8 9
Example:
1 2 3
colDim returns 3
4 5 6
Example:
comDenom(1/x+1/y^2+1) gives (x*y^2+x+y^2)/
(x*y^2)
Example:
companion(x^2+5x-7,x) returns 0 7
1 –5
Example:
compare(1,2) gives 1
Example:
complexroot(x^3+8, 0.01) returns
–2 1
contains Given a list or vector and an element, returns the index of the
first occurrence of the element in the list or vector; if the
element does not appear in the list or vector, returns 0.
contains((List, Element) or contains(Vector,
Element)
Example:
contains({0,1,2,3},2) returns 3
CopyVar Copies the first variable into the second variable without
evaluation.
CopyVar(Var1,Var2)
Example:
1 2
33
correlation 1 1 returns -------------------
6 ⋅ 31
4 7
count There are two uses for this function, in which first argument is
always a mapping of a variable onto an expression. If the
expression is a function of the variable, the function is applied
to each element in the vector or matrix (the second argument)
and the sum of the results is returned; if the expression is a
Examples:
count(x→x2,[1 2 3]) returns 14
Example:
1 2
11
covariance 1 1 returns -------
3
4 7
Example:
1 2
11 33
covariance_correlation 1 1 returns ------- -------------------
3 6 ⋅ 31
4 7
Example:
1 1
x
--------------- --- ---
cpartfrac
-
returns 2 -
2 - – ------------
2 – -----------
4 – x x–2 x+2
(-4+14*i)*x+8-4*i) returns 3 +i
----------- 2 ⋅ i 1 + i
2
Example:
cumSum([0,1,2,3,4]) returns [0,1,3,6,10]
delcols Given a matrix and an integer n, deletes the nth column from
the matrix and returns the result. If an interval of two integers
is used instead of a single integer, deletes all columns in the
interval and returns the result.
delcols(Matrix, Integer) or delcols(Matrix,
Intg1..Intg2)
Example:
1 2 3 1 3
delcols 4 5 6 , 2 returns 4 6
7 8 9 7 9
delrows Given a matrix and an integer n, deletes the nth row from the
matrix and returns the result. If an interval of two integers is
used instead of a single integer, deletes all rows in the interval
and returns the result.
delrows(Matrix, Integer) or delrows(Matrix,
Intg1..Intg2)
Example:
1 2 3
delrows 4 5 6 , 2..3 returns 1 2 3
7 8 9
Example:
deltalist([1,4,8,9]) gives [3,4,1]
Example:
Dirac(1) gives 0
Example:
egcd((x-1)^2,x^3-1) gives [-x-2,1,3*x-3]
Example:
–2 –2 1
eigenvals – 2 1 –2 returns [3 -3 -3]
1 –2 –2
Example:
–2 –2 1 1 –3 –3
eigenvects – 2 1 –2 returns – 2 0 – 3
1 –2 –2 1 3 –3
Example:
eval(2+3) returns 5
Example:
1 x i⋅y
evalc ------------------ returns ------------------
- – -------------------
x+y⋅i 2 2 2 2
x +y x +y
Example:
evalf(2/3) gives 0.666666666667
Example:
exact(1.4141) gives 14141/10000
Example:
exp(0) gives 1
Example:
1.0 2.0
exponential_regression 0.0 1.0 returns
4.0 7.0
1.60092225473,1.10008339351
Examples:
expr("2+3") returns 5
Example:
ezgcd(x^2-2*x-x*y+2*y,x^2-y^2) returns x-y
Example:
x
f2nd -------------- returns 1 x
x⋅ x
Example:
fMax(-x^2+2*x+1,x) gives 1
Example:
fMin(x^2-2*x+1,x) gives 1
Example:
format(9.3456,"s3") returns 9.35
Example:
fracmod(41,121) gives 2/3
Example:
5 4 3
froot x--------------------------------------
– 2 ⋅ x + x - returns [0 3 1 2 3 -1]
x–3
Example:
fsolve(cos(x)=x,x,-1..1,bisection_solver)
gives [0.739085133215]
Example:
function_diff(sin) gives (_x)→cos(_x)
Example:
gauss(x^2+2*a*x*y,[x,y]) gives (a*y+x)^2+(-
y^2)*a^2
Example:
GF(5,9) gives GF(5,k^9-k^8+2*k^7+2*k^5-k^2+2*k-
2,[k,K,g],undef)
1
gramschmidt 1 1 + x , ( p, q ) → p ⋅ q dx
returns
–1
1 1+x–1
------- ----------------------
2 6
-------
3
Example:
halftan_hyp2exp(sin(x)+sinh(x)) returns
x 1
2 ⋅ tan --- exp ( x ) – -----------------
2 exp ( x )-
-------------------------------- + -----------------------------------------
x 2 2
tan --- + 1
2
Example:
hamdist(0x12,0x38) gives 3
Example:
has(x+y,x) gives 1
Example:
head(1,2,3) gives 1
Example:
Heaviside(1) gives 1
Example:
1
exp ( x ) + -----------------
exp ( x )-
hyp2exp(cosh(x)) returns -----------------------------------------
2
iabcuv Returns [u,v] such that au+bv=c for three integers a, b, and c.
Note that c must be a multiple of the greatest common divisor
of a and b for there to be a solution.
iabcuv(Intgra, Intgrb, Intgrc)
Example:
iabcuv(21,28,7) gives [-1,1]
ibasis Given two matrices, interprets them as two vector spaces and
returns the vector basis of their intersection.
ibasis(Matrix1, Matrix2)
Example:
ibasis 1 0 0 , 1 1 1 returns [-1,-1,0]
0 1 0 0 0 1
Example:
icontent(24x^3+6x^2-12x+18) gives 6
Example:
id([1 2], 3, 4) returns [[1 2] 3 4]
Example:
1 0 0
identity(3) returns 0 1 0
0 0 1
Example:
iegcd(14, 21) returns [-1, 1, 7]
Examples:
igcd(24, 36) returns 12
Example:
interval2center(2..5) returns 7/2
Example:
inv(9/5) returns 5/9
iPart Returns a real number without its fractional part or a list of real
numbers each without its fractional part.
iPart(Real) or iPart(List)
Example:
iPart(4.3) returns 4
Example:
iquorem(63, 23) returns [2, 17]
Example:
jacobi_symbol(132,5) gives -1
Example:
laplacian(exp(z)*cos(x*y),[x,y,z]) returns
–x^2*cos(x*y)*exp(z)-
y^2*cos(x*y)*exp(z)+cos(x*y)*exp(z)
Example:
lcoeff(-2*x^3+x^2+7*x) returns -2
Example:
legendre(4) gives 35*x^4/8+-15*x^2/4+3/8 while
legendre(4,2) returns 443/8 after simplification
Example:
length([1,2,3]) gives 3
Example:
lgcd([45,75,20,15]) gives 5
Example:
lin((exp(x)^3+exp(x))^2) gives
exp(6*x)+2*exp(4*x)+exp(2*x)
Example:
linear_interpolate([[1,2,6,9],[3,4,6,7]],1,9,
1) returns
[[1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0,9.0],
[3.0,4.0,4.5,5.0,5.5,6.0,6.33333333333,6.6666
6666667,7.0]
Example:
1.0 2.0
linear_regression 0.0 1.0 returns [1.53…, 0.769…]
4.0 7.0
1
list2mat({1,8,4,9},1) returns 8
4
9
Example:
lname(exp(x)*2*sin(y)) gives [x,y]
Example:
lnexpand(ln(3*x)) gives ln(3)+ln(x)
Example:
1.0 1.0
logarithmic_regression 2.0 4.0 returns
3.0 9.0
4.0 9.0
[6.3299…, 0.7207…]
Example:
logb(5,2) gives ln(5)/ln(2) which is approximately
2.32192809489
Example:
lvar(e^(x)*2*sin(y) + ln(x)) returns [e^(x)
sin(y) ln(x)]
map There are two uses for this function, in which the second
argument is always a mapping of a variable onto an
expression. If the expression is a function of the variable, the
function is applied to each element in the vector or matrix (the
first argument) and the resulting vector or matrix is returned; if
the expression is a Boolean test, each element in the vector or
matrix is tested and the results are returned as a vector or
matrix. Each test returns either 0 (fail) or 1 (pass).
map(Matrix, Var → Function) or map(Matrix, Var → Test)
Examples:
map([1 2 3], x→x3) returns [1 8 27]
Example:
mat2list([[1 8],[4 9]]) gives [1 8 4 9]
matpow Given a matrix and an integer n, returns the nth power of the
matrix by jordanization.
matpow(Matrix, Integer)
MAXREAL Returns the maximum real number that the HP Prime calculator
is capable of representing in Home and CAS views:
In the CAS, MAXREAL=1.79769313486*10308
In Home view, MAXREAL=9.99999999999E499
Example:
mean([1,2,3],[1,2,3]) gives 7/3
Example:
median([1,2,3,5,10,4]) gives 3.0
member Given a list or vector and an element, returns the index of the
first occurrence of the element in the list or vector; if the
element does not appear in the list or vector, returns 0. Similar
to contains, except that the element comes first in the
argument order.
member(( Element, List) or contains(Element,
Vector)
Example:
member(2, {0,1,2,3}) returns 3
Example:
modgcd(x^4-1,(x-1)^2) gives x-1
Example:
1 2 12 24
mRow 12, 3 4 , 1 returns 3 4
5 6 5 6
Example:
1 1 ⋅ ( 3 + 2 ⋅ –i )
mult_c_conjugate ------------------- returns ---------------------------------------------------------
3+2⋅i ( 3 + 2 ⋅ i ) ⋅ ( 3 + 2 ⋅ –i )
Example:
nDeriv(f(x),x,h) returns (f(x+h)-(f(x-h)))*0.5/h
Example:
normal(2*x*2) gives 4*x
Example:
normalize(3+4*i) gives (3+4*i)/5
Example:
odd(6) gives 0
Example:
3 +1==4 OR 8 < 5 returns 1
Example:
pa2b2(17) gives [4 1]
Example:
2
– 3 ⋅ x – 24 ⋅ x – 60
pade(exp(x), x, 5, 3) returns ------------------------------------------------------------
3 2
-
x – 9 ⋅ x + 36 ⋅ x – 60
PI Inserts π.
Case1 if Test1
PIECEWISE Case2 if Test2
...
Example:
– x if x < 0
PIECEWISE 2
x if x ≥ 0
Note that the syntax varies if the Entry setting is not set to
Textbook:
PIECEWISE(Case1, Test1, ...[ Casen, Testn])
polar_point Given the radius and angle of a point in polar form, returns
the point with rectangular coordinates in complex form.
polar_point(Radius, Angle)
Example:
pole Given a circle and a line, returns the point for which the line
is polar with respect to the circle.
pole(Crcle,Line)
Example:
pole(circle(0, 1), line(1+i, 2)) returns
point(1/2,1/2)
Example:
POLYCOEF({-1, 1}) returns {1, 0, -1}
Example:
POLYEVAL({1,0,-1},3) returns 8
Example:
polygon(GA,GB,GD) draws ΔABD
Example:
1 2 3
polygonplot 2 0 1 draws two figures, each with three
–1 2 3
points connected by segments.
Example:
1 2 3
polygonscatterplot 2 0 1 draws two figures, each
–1 2 3
with three points connected by segments.
Example:
polynomial_regression({1, 2, 3, 4}, {1, 4, 9,
16},3) returns [0 1 0 0]
Example:
POLYROOT([1 0 -1]) returns {-1, 1}
Example:
potential([2*x*y+3,x^2-4*z,-4*y],[x,y,z])
returns x2*y+3*x-4*y*z
Example:
power_regression({1, 2, 3, 4}, {1, 4, 9, 16})
returns [2 1]
powerpc Given a circle and a point, returns the real number d2–r2,
where d is the distance between the point and the center of
the circle, and r is the radius of the circle.
powerpc(Circle, Point)
Example:
powerpc(circle(0,1+i),3+i) gives 8
Example:
prepend([1,2],3) gives [3,1,2]
Example:
primpart(2x^2+10x+6) gives x^2+5*x+3
Example:
product(n,n,1,10,2) gives 945
Example:
propfrac(28/12) gives 2+1/3
Example:
ptayl(x^2+2*x+1,1) gives x^2+4*x+4
Example:
q2a(x^2+2*x*y+2*y^2,[x,y]) returns 1 1
1 2
Example:
quantile([0,1,3,4,2,5,6],0.25) returns 1
Example:
quartile1([1,2,3,5,10,4]) gives 2
quartile3 Given a list or vector, returns the third quartile of the elements
of the list or vector. Given a matrix, returns the third quartile
of the columns of the matrix.
quartile3(List) or quartile3(Vector) or
quartile3(Matrix)
Example:
quartile3([1,2,3,5,10,4]) returns 5
Example:
1
2
quartiles([1,2,3,5,10,4]) returns 3
5
10
Examples:
quorem(x^3+2*x^2+3*x+4,-x+2) returns [-x^2-4*x-
11, 26]
Example:
randperm(4) returns a random permutation of the elements of
the vector [0 1 2 3]
Example:
x –1 2 x+1
- returns -------------------------
ratnormal ---------------
3 x – 1 2
x +x+1
Example:
2 -------
rectangular_coordinates([1, π/4]) returns ------- 2
2 2
[[− 1 0]]
0 1 2 1 2 −1
1 y + 2 ⋅ x − 1 + −i ⋅ − 2 ⋅ x ⋅ x + i ⋅ x x − 4 4 0.1 x + 2 ⋅ x − 2 ⋅ y + 1 − 1 + ( −i ) ⋅ 2 ⋅ x ⋅ x + (i ) ⋅ x
− 1 0
Example:
1 2
--- –
ref 3 1 – 2 returns 1 3 3
------
3 2 2
0 1 2
Examples:
remove(5,{1,2,5,6,7,5}) returns {1,2,6,7}
Example:
reorder(x2+2*x+y2,[y,x]) gives y2+x2+2*x
Example:
residue(1/z,z,0) returns 1
Example:
revlist([1,2,3]) returns [3,2,1]
Example:
romberg(exp(x^2),x,0,1) gives 1.46265174591
Example:
1 2 3
row 4 5 6 , 2 returns [4 5 6]
7 8 9
rowAdd Given a matrix and two integers, returns the matrix obtained
from the given matrix after the row indicated by the second
integer is replaced by the sum of the rows indicated by the
two integers.
rowAdd(Matrix, Integer1, Integer2)
Example:
1 2 1 2
rowAdd 3 4 , 1, 2 returns 4 6
5 6 5 6
Example:
rowDim 1 2 3 gives 2
4 5 6
Example:
1 2 3 4
rowSwap 3 4 , 1, 2 returns 1 2
5 6 5 6
Example:
rsolve(u(n+1)=2*u(n)+n,u(n),u(0)=1) returns
[-n+2*2n-1]
Example:
select(x→x>=5,[1,2,6,7]) returns [6,7]
Example:
seq(2k,k=0..8) gives [1,2,4,8,16,32,64,128,256]
Example:
seqsolve(2x+n,[x,n],1) gives -n-1+2*2n
Example:
shift_phase(sin(x)) gives -cos((pi+2*x)/2)
Example:
signature([2 1 4 5 3]) returns –1
Example:
simult 3 1 , – 2 returns – 2
3 2 2 4
Example:
sincos(exp(i*x)) gives cos(x)+(i)*sin(x)
Example:
spline({0,1,2},{1,3,0},x,3) returns
5 3 13
–------ 5 3
--- ⋅ ( x – 1 ) + –
15- 2 1
⋅ x + ------- ⋅ x + 1 --------- ⋅ ( x – 1 ) – --- ⋅ ( x – 1 ) + 3
4 4 4 4 2
Example:
sqrt(50) gives 5*sqrt(2)
Example:
6
stddev({1,2,3}) returns -------
3
Example:
stddevp({1,2,3}) gives 1
Example:
1 2
subMat 3 4 , 2, 1, 3, 2 returns 3 4
5 6
5 6
suppress Given a list and an element, deletes the first occurrence of the
element in the list (if there is one) and returns the result.
suppress(List, Element)
Example:
suppress([0 1 2 3 2],2) returns [0 1 3 2]
Example:
surd(8,3) gives 2
Example:
1 0 –1 0 0
0 1 0 –1 0
sylvester(x2-1,x3-1,x) gives 0 0 1 0 –1
1 0 0 –1 0
0 1 0 0 –1
Example:
tail([3 2 4 1 0]) gives [2 4 1 0]
Example:
tan2cossin2(tan(x)) gives (1-cos(2*x))/sin(2*x)
Example:
tan2sincos2(tan(x)) gives sin(2*x)/(1+cos(2*x)
Example:
transpose 1 2 returns 1 3
3 4 2 4
Example:
trunc(4.3) gives 4
Example:
tsimplify(exp(2*x)+exp(x)) gives
exp(x)^2+exp(x)
Example:
type("abc") gives DOM_STRING
Example:
unapply(2*x^2,x) gives (x)→2*x^2
Example:
valuation(x^4+x^3) gives 3
Example:
variance({3, 4, 2}) returns 2/3
Example:
vpotential([2*x*y+3,x2-4*z,-2*y*z],[x,y,z])
1 3
returns 0 –2 ⋅ x ⋅ y ⋅ z 4 ⋅ x ⋅ z – --- ⋅ x + 3 ⋅ y
3
XOR Exclusive or. Returns 1 if the first expression is true and the
second expression is false or if the first expression is false and
the second expression is true. Returns 0 otherwise.
Expr1 XOR Expr2
Example:
zip('+',[a,b,c,d], [1,2,3,4]) returns [a+1 b+2
c+3 d+4]
π Inserts pi.
≠ Inequality test. Returns 1 if the left and right sides are not
equal and 0 if they are equal.
1. Press Sd (Define).
2. In the Name field, enter
a name for the
function—for example,
SINCOS—and tap
.
3. In the Function field,
enter the function.
eAA>+fAB>AC
New fields appear
below your function, one
for each variable used in
defining it. You need to
decide which ones are
to be input arguments
for your functions and
which ones are global
variables whose values
are not input within the function. In this example, we’ll
make A and B input variables, so our new function takes
two arguments. The value of C will be provided by global
variable C (which by default is zero).
4. Make sure that A and B are selected and C is not.
Variables
Variables are objects that have names and contain data.
They are used to store data, either for later use or to
control settings in the Prime system. There are four types of
variables, all of which can be found in the Vars menu by
pressing a:
• Home variables
• CAS variables
• App variables
• User variables
The Home and app
variables all have names
reserved for them. They
are also typed; that is, they can contain only certain types
of objects. For example, the Home variable A can only
contain a real number. You use Home variables to store
data that is important to you, such as matrices, lists, real
numbers, etc. You use app variables to store data in apps
or to change app settings. You can accomplish these
same tasks via the user interface of an app, but app
variables give you a quick way of doing these tasks, either
from Home or within a program. For example, you can
store the expression “SIN(X)” in the Function app
variable F1 in Home View, or you could open the Function
app, navigate to F1(X), and enter SIN(X) in that field.
CAS and user variables can be created by the user and
they have no particular type. Their names may be of any
length as well. Thus, diff(t2,t) returns 2*t and
diff((bt)2, bt) returns 2*bt for the CAS variables
t and bt. Further evaluation of 2*bt will only return
2*bt, unless an object has been stored in bt. For
example, if you enter bt:={1,2,3} and then enter
diff((bt)2, bt), the CAS will still return 2*bt. But if
Variables 215
you evaluate that result (using the EVAL command), the
CAS will now return {2,4,6}.
User variables are explicitly created by the user. You
create user variables either in a program or by assignment
in Home view. User variables created in a program are
either declared as local or exported as global. User
variables created by assignment or exported from a
program will show up in the Vars User menu. Local
variables exist only within their own program.
The following sections describe the various processes
associated with variables, such as creating them, storing
objects in them, and retrieving their contents. The rest of
the chapter contains tables that list all the Home and app
variable names.
216 Variables
Working Example 2: Create a variable called ME and assign π2
with user to it.
variables 1. Press H to display Home view.
2. Assign π2 to ME:
Szj AQAcE
3. A message appears asking if you want to create a
variable called ME. Tap or press E to
confirm your intention.
You can now use that variable in subsequent
calculations: ME*3 will yield 29.6…, for example.
Example 3: You can also store objects in variables
using the assignment operator: Name:=Object. In this
example, we’ll store {1,2,3} in the user variable YOU.
1. Assign the list to the variable using the assignment
operator:=.
AAxotwAS.
Sq 1o 2 o3 E
2. A message appears asking if you want to create a
variable called YOU. Tap or press E to
confirm your intention.
The variable YOU is created and contains the list
{1,2,3}. You can now use that variable in
subsequent calculations: For example, YOU+60 will
return {61,62,63}.
Working Just as you can assign values to Home and user variables,
with app you can assign values to app variables. You can modify
variables Home settings on the Home Settings screen (SH).
But you can also modify a Home setting from Home view
by assigning a value to the variable that represents that
setting. For example, entering Base:=0 E in Home
view forces the Home settings field Integer (for the
integer base) to binary. A value of 1 would force it to
octal, 2 to decimal, and 3 to hex. Another example: you
can change the angle measure setting from radians to
degrees by entering HAngle :=1 E in Home view.
Variables 217
Entering HAngle:=0 E forces the setting to return
to radians.
You can see what value has been assigned to a
variable—whether Home, app, or user—by entering its
name in Home view and pressing E. You can enter
the name letter by letter, or choose the variable from the
Variables menu by pressing a.
More about Besides the four variable menus, the Vars menu contains
the Vars a toggle. If you want the value of a variable instead of its
menu name when you choose it from the Vars menu, tap
. A white dot will appear next to the menu button
label to indicate that it is active and that variable values
rather than names will be returned upon selection.
For the Home and app variables, use the Vars menu to
get help on the purpose of any of these variables. Select
the variable of interest and press W. Suppose, for
example, that you wanted to get help on the Function app
variable GridDots:
1. Press a to open the Vars menu.
2. Tap to open
the app variables
menu. (If you were
interested in a Home
variable instead, you
would tap
instead.)
3. Use the cursor keys
to navigate to the variable of interest.
4. Press W to see the
help about that
variable.
5. Tap to exit or
J to return to the
current Vars
submenu.
218 Variables
Qualifying variables
Some app variable names are shared by multiple apps.
For example, the Function app has a variable named
Xmin, but so too does the Polar app, the Parametric app,
the Sequence app, and the Solve app. Although named
identically, these variables usually hold different values. If
you attempt to retrieve the contents of a variable that is
used in more than one app by entering just its name in
Home view, you will get the contents of that version of the
variable in the current app. For example, if the Function
app is active and you enter Xmin in Home view, you will
get the value of Xmin from the Function app. If you want
the value of Xmin from, say, the Sequence app, you must
qualify the variable name. Enter Sequence.Xmin to
retrieve the value of Xmin from the Sequence app.
In the figure to the right,
the value of Xmin from
the Function app was
retrieved first (–10.4…).
The qualified variable
name entered second
retrieved the value of
Xmin from the Sequence
app (–1.8).
Note the syntax required: app_name.variable_name.
The app can be any of the 18 HP apps, or one you have
created based on a built-in app. The name of the app
variable must match a name listed in the app variables
tables below. Spaces are not allowed in an app name
and must be represented by the underscore character:
SX.
Tip Non-standard characters in variables name—such as Σ
and σ—can be entered by selecting them from the special
symbols palette (Sr) or from the characters menu
(Sa ).
Variables 219
Home variables
The Home variables are accessed by pressing a and
tapping .
Category Names
Real A to Z and θ
For example, 7.45 A
Complex Z0 to Z9
For example, 2+3×i Z1 or
(2,3) Z1 (depending on your
Complex number settings)
List L0 to L9
For example, {1,2,3} L1.
Matrix M0 to M9
Store matrices and vectors in these
variables.
For example, [[1,2],[3,4]] M1.
Graphics G0 to G9
Settings HAngle
HFormat
HDigits
HComplex
Date
Time
Language
Entry
Integer
Base
Bits
Signed
220 Variables
App variables
The app variables are accessed by pressing a and
tapping . They are grouped below by app.
Note that if you have customized a built-in app, your app
will appear on the App variables menu under the name you
gave it. You access the variables in a customized app in the
same way that you access the variables in built-in apps.
Category Names
Symbolic F1 F6
F2 F7
F3 F8
F4 F9
F5 F0
Results variables
Extremum Contains the value from the last use of the Extremum
function from the menu in the Plot view of the
Variables 221
Function app. The app function EXTREMUM does not store
results to this variable.
Isect Contains the value from the last use of the Isect function
from the menu in the Plot view of the Function app.
The app function ISECT does not store results to this
variable.
Root Contains the value from the last use of the Root function
from the menu in the Plot view of the Function app.
The app function ROOT does not store results to this
variable.
SignedArea Contains the value from the last use of the Signed Area
function from the menu in the Plot view of the
Function app. The app function AREA does not store
results to this variable.
Slope Contains the value from the last use of the Slope function
from the menu in the Plot view of the Function app.
The app function SLOPE does not store results to this
variable.
222 Variables
Spreadsheet app variables
Category Names
Symbolic E1 E6
E2 E7
E3 E8
E4 E9
E5 E0
Variables 223
Advanced Graphing app variables
Category Names
Symbolic V1 V6
V2 V7
V3 V8
V4 V9
V5 V0
224 Variables
Statistics 1Var app variables
Category Names
Results NbItem ΣX
MinVal ΣX2
[explained
below] Q1 MeanX
MedVal sX
Q3 σX
MaxVal serrX
Symbolic H1 H1Type
H2 H2Type
H3 H3Type
H4 H4Type
H5 H5Type
Numeric D1 D6
D2 D7
D3 D8
D4 D9
D5 D0
Variables 225
Results
NbItem Contains the number of data points in the current 1-
variable analysis (H1-H5).
MinVal Contains the minimum value of the data set in the current
1-variable analysis (H1-H5).
ΣX2 Contains the sum of the squares of the data set in the
current 1-variable analysis (H1-H5).
MeanX Contains the mean of the data set in the current 1-variable
analysis (H1-H5).
serrX Contains the standard error of the data set in the current
1-variable analysis (H1-H5).
226 Variables
Statistics 2Var app variables
Category Names
Results NbItem sX
[explained Corr σX
below] CoefDet serrX
sCov MeanY
σCov ΣY
ΣXY ΣY2
MeanX sY
ΣX σY
ΣX2 serrY
Symbolic S1 S1Type
S2 S2Type
S3 S3Type
S4 S4Type
S5 S5Type
Numeric C1 C6
C2 C7
C3 C8
C4 C9
C5 C0
Variables 227
Results
NbItem Contains the number of data points in the current 2-
variable analysis (S1-S5).
ΣXY Contains the sum of the X·Y products for the current 2-
variable statistical analysis (S1-S5).
228 Variables
ΣY Contains the sum of the dependent values (Y) of the
current 2-variable statistical analysis (S1-S5).
Variables 229
Category Names
230 Variables
Results
CoefDet Contains the value of the coefficient of determination.
serrInter Contains the standard error of the intercept for either the
linear t-test or the confidence interval for the intercept.
Variables 231
serrLine Contains the standard error of the line for the linear t-test.
serrSlope Contains the standard error of the slope for either the
linear t-test or the confidence interval for slope.
Slope Contains the value of the slope of the regression line for
either the linear t-test or the confidence interval for slope.
232 Variables
Parametric app variables
Category Names
Symbolic X1 X6
Y1 Y6
X2 X7
Y2 Y7
X3 X8
Y3 Y8
X4 X9
Y4 Y9
X5 X0
Y5 Y0
Variables 233
Polar app variables
Category Names
Symbolic R1 R6
R2 R7
R3 R8
R4 R9
R5 R0
Category Names
234 Variables
Linear Solver app variables
Category Names
a. Contains a vector with the last solution found by the Linear Solver
app.
Category Names
Category Names
Category Names
Variables 235
Trig Explorer app variables
Category Names
Symbolic U1 U6
U2 U7
U3 U8
U4 U9
U5 U0
236 Variables
5
Programming in HP PPL
This chapter describes the HP Prime Programming
Language (HP PPL). In this chapter you’ll learn about:
• programming commands
• writing functions in programs
• using variables in programs
• executing programs
• debugging programs
• creating programs for building custom apps
• sending a program to another HP Prime
3. Press again.
A template for your
program is then
automatically
created. The
template consists of
a heading for a
function with the
same name as the program, EXPORT
MYPROGRAM(), and a BEGIN–END; pair that will
enclose the statements for the function.
Program Editor: The buttons and keys in the Program Editor are:
buttons and keys
Sa Displays a palette of
(Chars) characters. If you display this
palette while a program is
open, you can choose a
character and it will be be
added to your program at the
cursor point. To add one
character, highlight it and tap
or press E. To
add a character without
closing the characters palette,
select it and tap .
1. To continue the
MYPROGRAM
example (which we
began on page
241), use the cursor
keys to position the
cursor where you
want to insert a
command or just tap on the desired location. In this
example, you need to position the cursor between
BEGIN and END.
2. Tap to open
the menu of common
programming
commands for
blocking, branching,
looping, variables,
and functions.
Notice that a
FOR_FROM_TO_DO
_ template is
inserted. All you
need do is fill in the
missing information.
Run a From Home view, enter the name of the program. If the
Program program takes parameters, enter a pair of parentheses
after the program name with the parameters inside them
each separated by a comma. To run the program, press
E.
From the Program Catalog, highlight the program you
want to run and tap . When a program is executed
from the catalog, the system looks for a function named
START() (no parameters).
You can also run a
program from the USER
menu (one of the Toolbox
menus):
1. Press D and tap
.
2. Tap MYPROGRAM >
to expand the menu
and select MYPROGRAM.
MYPROGRAM appears on the entry line.
3. Tap E and the program executes, displaying a
message box.
END;
EXPORT NAME2( )
BEGIN
END;
Now note that when you select your program from the
Program Catalog and tap or , a list with
NAME1 and NAME2 appears.
2. Tap .
If there is more than
one EXPORT function
in a file, a list
appears for you to
choose which
function to debug.
While debugging a
program, the title of the program or intra-program
function appears at the top of the display. Below that
is the current line of the program being debugged.
The current value of each variable is visible in the
main body of the screen. The following menu buttons
are available in the debugger:
: Skips to the next line or block of the program
The FOR loop starts and the top of the display shows
the next line of the program (the MSGBOX
command).
4. Execute the MSGBOX command.
Copy a You can use the global Copy and Paste commands to
program or copy part or all of a program. The following steps illustrate
part of a the process:
Delete the You can clear the contents of a program without deleting
contents of a the program. The program then just has a name and
program nothing else.
1. Open the Program Catalog.
Sx
2. Tap the program to open it.
3. Press SJ (Clear).
Qualifying The HP Prime has many system variables with names that
the name of a are apparently the same. For example, the Function app
variable has a variable named Xmin, but so too does the Polar
app, the Parametric app, the Sequence app, and the
Solve app. In a program, and in the Home view, you can
refer to a particular version of these variables by
qualifying its name. This is done by entering the name of
the app (or program) that the variable belongs to,
followed by a dot (.), and then the actual variable name.
For example, the qualified variable Function.Xmin
refers to the value of Xmin within the Function app.
Similarly, the qualified variable Parametric.Xmin
refers to the value of Xmin in the Parametric app. Despite
having the same name—Xmin—the variables could have
different values. You do likewise to use a local variable in
a program: specify the name of the program, followed by
the dot, and then the variable name.
Functions, You can define your own functions in a program, and data
their can be passed to a function using parameters. Functions
arguments, can return a value (using the RETURN statement) or not.
When a program is executed from Home view, the
and program will return the value returned by the last statement
parameters that was executed.
Furthermore, functions can be defined in a program and
exported for use by other programs, in much the same
way that variables can be defined and used elsewhere.
In this section, we will create a small set of programs, each
illustrating some aspect of programming in the HP Prime.
Each program will be used as a building block for a
custom app described in the next section, App Programs.
EXPORT ROLLDIE(N)
BEGIN
RETURN 1+RANDINT(N-1);
END;
The first line is the heading of the function. Execution of the
RETURN statement causes a random integer from 1 to N
to be calculated and returned as the result of the function.
Note that the RETURN command causes the execution of
the function to terminate. Thus any statements between the
RETURN statement and END are ignored.
In Home view (in fact, anywhere in the calculator where a
number can be used), you can enter ROLLDIE(6) and a
random integer between 1 and 6 inclusive will be
returned.
Key names The first line of a program that re-assigns a key must
specify the key to be reassigned using its internal name.
The table below gives the internal name for each key.
Note that key names are case-sensitive.
Key Name S A AS
+ key + key + key
Key Name S A AS
+ key + key
+ key
Key Name S A AS
+ key + key
+ key
S – – – –
App programs
An app is a unified collection of views, programs, notes,
and associated data. Creating an app program allows
you to redefine the app’s views and how a user will
interact with those views. This is done with (a) dedicated
program functions with special names and (b) by
redefining the views in the View menu.
RESET Resets or
initializes an app
Redefining The View menu allows any app to define views in addition
the View to the standard seven views shown in the table above. By
menu default, each HP app has its own set of additional views
contained in this menu. The VIEW command allows you to
redefine these views to run programs you have created for
an app. The syntax for the VIEW command is:
VIEW "text", function()
By adding VIEW "text", function() before the
declaration of a function, you will override the list of views for
the app. For example, if your app program defines three
views—"SetSides", "RollDice" and "PlotResults"—when you
press V you will see SetSides, RollDice, and PlotResults
instead of the app’s default view list.
Program commands
This section describes each program command. The
commands under the menu are described first. The
commands under the menu are described in
“Commands under the Cmds menu” on page 274.
Block
The block commands determine the beginning and end of
a sub-routine or function. There is also a Return
command to recall results from sub-routines or functions.
Branch
In what follows, the plural word commands refers to both
a single command or a set of commands.
Loop
FOR Syntax: FOR var FROM start TO finish DO commands END;
Sets variable var to start, and for as long as this variable
is less than or equal to finish, executes the sequence of
commands, and then adds 1 (increment) to var.
FOR STEP Syntax: FOR var FROM start TO finish [STEP increment]
DO commands END;
Sets variable var to start, and for as long as this variable
is less than or equal to finish, executes the sequence of
commands, and then adds increment to var.
Example 2: This program
draws an interesting
pattern on the screen.
EXPORT
DRAWPATTERN()
BEGIN
LOCAL
xincr,yincr,co
lor;
STARTAPP("Function");
FOR DOWN Syntax: FOR var FROM start DOWNTO finish DO commands
END;
Sets variable var to start, and for as long as this variable
is more than or equal to finish, executes the sequence of
commands, and then subtracts 1 (decrement) from var.
FOR DOWN STEP Syntax: FOR var FROM start DOWNTO finish [STEP
increment] DO commands END;
Sets variable var to start, and for as long as this variable
is more than or equal to finish, executes the sequence of
commands, and then subtracts increment from var.
LOCAL Local.
Syntax: LOCAL var1,var2,…varn;
Makes the variables var1, var2, etc. local to the program
in which they are found.
Function
These commands enable you to control the visibility of a
user-defined function.
EXPORT Export.
Syntax: EXPORT FunctionName(Parameters) or
Export Var{:=Val) or Export Var1[:=Val1],
Var2[:=Val2], ...)
In a program, declares the functions or variables to export
globally. The exported functions appear in the Toolbox
User menu and the exported variables appear in the Vars
CAS, App, and User menus.
For an exported function, there are two uses of EXPORT.
Forward function declaration:
EXPORT function(params);
Normal function declaration:
EXPORT function[(params)]
BEGIN
//Function definition goes here
END;
Examples:
EXPORT X2M1(X);
EXPORT ratio:=0.15;
Strings
A string is a sequence of characters enclosed in double
quotes (""). To put a double quote in a string, use two
consecutive double quotes. The \ character starts an
escape sequence, and the character(s) immediately
following are interpreted specially. \n inserts a new line
and two backslashes insert a single backslash. To put a
new line into the string, press E to wrap the text at
that point.
String Result
STRING(2/3) 0.666666666667
BLIT_P
DIMGROB_P
GETPIX_P
GROBH_P
INVERT_P
LINE_P
PIXOFF_P
PIXON_P
RECT_P
SUBGROB_P
TEXTOUT_P
TRIANGLE Syntax: TRIANGLE_P([G], x1, y1, x2, y2, x3, y3, c1,
[c2, c3], [Alpha], ["ZString", z1, z2, z3])
TRIANGLE_P([G], {x1, y1, [c1], [z1]}, {x2, y2,
[c2], [z2]},{x3, y3, [c3], [z3]}, ["ZString"])
TRIANGLE_P([G],points_definition,
triangle_definitions, rotation_matrix or
{rotation_matrix or -1, ["N"], [{eye_x, eye_y,
eye_z} or -1], [{3Dxmin, 3Dxmax, 3Dymin,
3Dymax, 3Dzmin, 3Dzmax}]}, [zstring])
TRIANGLE_P([G],pre_rotated_points,
triangle_definitions, [zstring])
TRIANGLE_P([G])
The basic form of TRIANGLE draws one triangle between
the specified pixel coordinates in the graphic using the
specified color and transparency (0 ≤ Alpha ≤ 255). If
three colors are specified, it blends the colors in between
the vertices.
The advanced form of TRIANGLE_P allows multiple
triangles to be rendered at the same time with a potential
3D transformation of the triangles’ vertices.
This is mostly used if you have a set of vertices and
triangles and want to display them all at once (faster).
points_definition is either a list or a matrix of point
definition. Each point is defined by two to four numbers:
x, y, z, and color. A valid point definition can have
multiple forms. Here are a couple of example: [x, y, z, c],
{x, y, z, c}, {x, y, #c}, {(x, y), c}, (x,y)... You can use a
vector of points instead of a list; in this case, the points can
be expressed as complex numbers.
triangle_ definitions is either a list or a matrix of triangle
definitions. Each triangle is defined by three to five
numbers: p1, p2, p3, color and alpha. p1, p2 and p3 are
the index in the points_definition of the 3 points that
define the triangle. Color is used to override the per point
color definition. If you need to provide an Alpha, but not
a color, use -1 for the color.
App Functions
These commands allow you to launch any HP app, bring
up any view of the current app, and change the options in
the View menu.
Starts the app with name. This will cause the app
program’s START function to be run, if it is present. The
app’s default view will be started. Note that the START
function is always executed when the user taps in
the Application Library. This also works for user-defined
apps.
Example: STARTAPP("Function") launches the Function
app.
Integer
BITAND Syntax: BITAND(int1, int2, … intn)
Returns the bitwise logical AND of the specified integers.
Example: BITAND(20,13) returns 4.
I/O
I/O commands are used for inputting data into a
program, and for outputting data from a program. They
allow users to interact with programs.
0 1 3 4
Keys 0–13
{ 5
6
11
7
2
12
8 9
13
10
Keys 14–19
Keys 20–25
Keys 26–30
Keys 31–35
Keys 36–40
Keys 41–45
Keys 46–50
EXPORT AREACALC()
BEGIN
LOCAL radius;
INPUT(radius, "Radius of Circle","r =
","Enter radius",1);
MSGBOX("The area is " +π*radius^2);
END;
If the user enters 10 for
the radius, the message
box shows this:
PRINT("The
area is "
+π*radius^2);
END;
Xtick Sets the distance between tick marks for the horizontal axis.
In Plot Setup view, enter a value for X Tick.
In a program, type:
n Xtick where n > 0
Ytick Sets the distance between tick marks on the vertical axis.
In Plot Setup view, enter a value for Y Tick.
In a program, type:
n Ytick where n > 0
Ymin/Ymax Sets the minimum and maximum vertical values of the plot
screen.
In Plot Setup view, enter the values for Y Rng.
In a program, type:
n1 Ymin
n2 Ymax
where n 1 < n 2
Alpha Sets the alpha level for the hypothesis test. From the
Numeric view, set the value of Alpha.
In a program, type:
n Alpha
where 0 < n < 1
Conf Sets the confidence level for the confidence interval. From
Numeric view, set the value of C.
In a program, type:
n Conf
where 0 < n < 1
Mean2 For a 2-mean test or interval, sets the value of the mean of
the second sample. From Numeric view, set the value of
x2 .
In a program, type:
n Mean2
Pooled Determine whether or not the samples are pooled for tests
or intervals using the Student’s T-distribution involving two
means. From the Numeric view, set the value of Pooled.
In a program, type:
0 Pooled—for not pooled (default).
1 Pooled—for pooled.
Xlist Contains the list of explanatory data (X) for the regression
tests and intervals. In Numeric view, enter your data in
Xlist.
Xval For the confidence interval for the mean response and
prediction interval for a future response, contains the value
of the explanatory variable (X) under scrutiny. Enter a
value when prompted by the wizard.
Ylist Contains the list of response data (Y) for the regression
tests and intervals. In Numeric view, enter your data in
Ylist.
IPYR Interest per year. Sets the annual interest rate for a cash
flow. From the Numeric view of the Finance app, enter a
value for I%YR.
In a program, type:
n IPYR
where n > 0
GSize Group size. Sets the size of each group for the
amortization table. From the Numeric view of the Finance
app, enter a value for Group Size.
In a program, type:
n GSize
Linear Solver The following variables are used by the Linear Solver app.
app They correspond to the fields in the app's Numeric view.
variables
LSystem Contains a 2x3 or 3x4 matrix which represents a 2x2 or
3x3 linear system. From the Numeric view of the Linear
Solver app, enter the coefficients and constants of the
linear system.
In a program, type:
matrixLSystem
SideA The length of Side a. Sets the length of the side opposite
the angle A. From the Triangle Solver Numeric view, enter
a positive value for a.
In a program, type:
n SideA
where n > 0
SideB The length of Side b. Sets the length of the side opposite
the angle B. From the Triangle Solver Numeric view, enter
a positive value for b.
In a program, type:
n SideB
where n > 0
SideC The length of Side c. Sets the length of the side opposite
the angle C. From the Triangle Solver Numeric view, enter
a positive value for c.
In a program, type:
n SideC
where n > 0
HAngle Sets the angle format for the Home view. In Home
Settings, choose Degrees or Radians for angle
measure.
In a program, type:
0 HAngle—for Degrees.
1 HAngle—for Radians.
HDigits Sets the number of digits for a number format other than
Standard in the Home view. In Home Settings, enter a
value in the second field of Number Format.
In a program, type:
n HDigits, where 0 < n < 11 .
HFormat Sets the number display format used in the Home view. In
Home Settings, choose Standard, Fixed,
Scientific, or Engineering in the Number
Format field.
In a program, store one of the following the constant
numbers (or its name) into the variable HFormat:
0 Standard
1 Fixed
2 Scientific
3 Engineering
Integer
Signed Returns the status of, or sets a flag, indicating that the
integer wordsize is signed or not. In Home Settings,
check or uncheck the ± field to the right of Integers. In a
program, enter:
0 Signed—for unsigned
1 Signed—for signed
Index 327
common 171 I
creating your own 213 I/O commands, programming 292,
Finance app 166–168 294
Function app 139 inference
geometric 39–68 confidence intervals 84–88
hyperbolic 109 hypothesis tests 77–83
Inference app 157–162 One-Proportion Z-Interval 85
integer 129–131 One-Proportion Z-Test 79
keyboard 101–104 One-Sample T-Interval 87
Linear Explorer 170 One-Sample T-Test 81
Linear Solver 168 One-Sample Z-Interval 84
number 105–106 One-Sample Z-Test 77
plot 138–?? Two-Proportion Z-Interval 86
polynomial 131–137 Two-Proportion Z-Test 80
probability 109–114 Two-Sample T-Interval 87
rewrite 124–129 Two-Sample T-Test 82
solve 122–124 Two-Sample Z Test 78
Solve app 140 Two-Sample Z-Interval 84
spreadsheet 140–154 Inference app 69–88
Statistics 1Var 154–155 confidence intervals 84–88
Statistics 2Var 156–157 functions 157–162
Triangle Solver 168–170 hypothesis tests 77–83
importing statistics 74
G variables
geometric objects ??–30 Numeric 314
geometric transformations 33–37 Results 231
Geometry app 5–68 summary of 229
commands 39–68 integer commands, programming 292
creating objects integer functions 129–131
in Plot view 12
in Symbolic view 19 K
functions 39–68 keyboard
objects, types of ??–30 customizing 256
Plot view, menu buttons 16 functions on 101–104
transforming objects 33–37 keys
variables, summary of 222 internal name of 258
global variables 252 user defined 256
graphics
storing and recalling 277
L
variables 220
Linear Explorer app
functions 170
H Linear Solver
Home settings 220 functions 168
hyperbolic functions 109 variables
hypothesis tests 71, 77–83, 157–160 Numeric 319
hypothesis, alternative 72 summary of 235
lines 25
lists
328 Index
variables 220 defined in Geometry app 30
local variables 252 functions 138–??
logarithmic Plot view
functions 102 in Geometry app 12
loop commands 269, 270–272 menu buttons 16
variables 303–307
M points 24
Math menu 105–115 Polar app
matrices variables 234
commands 289–290 polygons 26
swap row 290 polynomial functions 131–137
variables 220 probability functions 109–114
menu program
App 99 commands
CAS 116–?? app functions 290
Catlg 172–213 block 268
Math 105–115 branch 268
User 99 drawing 277–286
menu buttons function 273
in Plot view I/O 292, 294
Geometry app 16 integer 292
menus loop 269
display format of 100 matrix 289
mode other 299–301
user 256 strings 274
variable 273
N commenting in 238
names, in Geometry app 13 create 241
natural logarithm 102 debug 247
negation 104 run 246
Normal Z-distribution, confidence inter- samples 254–256, 264–267
vals 84 structure of 238
number functions 105–106 programming 237–326
projection 35
O
objects
Q
geometric ??–30 qualify, variables 253
One-Proportion Z-Interval 85 quotes in strings 274
One-Proportion Z-Test 79
One-Sample T-Interval 87 R
One-Sample T-Test 81 real variables 220
One-Sample Z-Interval 84 rewrite functions 124–129
One-Sample Z-Test 77
S
P sample programs 254–256, 264–267
Parametric app Sequence app
variables 233 variables 236
plot settings 220
Index 329
Solve app Finance app 234
functions 140 Function app 221
variables, summary of 223 Geometry 222
solve functions 122–124 global 252
Spreadsheet app graphics 220
functions 140–154 Home 220
variables 223 Home settings 220
Statistics 1Var in programming 301
functions 154–155 Inference app 229
variables, summary of 225 Linear Solver 235
Statistics 2Var list 220
functions 156–157 local 252
variables, summary of 227 matrix 220
Symbolic view Numeric view 312
in Geometry app 19 Parametric app 233
system-wide settings 220 Plot view 303
Polar app 234
T qualifying 253
Toolbox menus 99 real 220
transformations, geometric 33–37 Sequence apps 236
Triangle Solver app Solve app 223
functions 168–170 Spreadsheet app 223
variables Statistics 1Var 225
Numeric 320 Statistics 2Var 227
summary of 235 Symbolic view 308–311
trigonometric Triangle Solver 235
functions 108 types of in programming 301
Two-Proportion Z-Interval 86 Views menu 261
Two-Proportion Z-Test 80
Two-Sample T-Interval 87 Z
Two-Sample T-test 82 Z-Intervals 84–86
Two-Sample Z-Interval 84
Two-Sample Z-Test 78
U
Upper-Tail Chi-Square probability 111
user defined
keys 256
variables 253
user keyboard 256
User menu 99
user modes 256
V
variables
Advanced Graphing app 224
app 303–326
complex 220
330 Index