Edition1 Part Number NW280-200X Legal Notices This manual and any examples contained herein are provided "as is" and are subject to change without notice. Hewlett-Packard Company makes no warranty of any kind with regard to this manual, including, but not limited to, the implied warranties of merchantability, non- infringement and fitness for a particular purpose.
Page 9
Getting Started with the Finance app........263 Cash flow diagrams ............265 Time value of money (TVM) ..........266 TVM calculations: Another example........267 Calculating amortizations............. 268 18 Triangle Solver app Getting started with the Triangle Solver app ......271 Choosing triangle types ............
Page 10
Linear Solver app functions ..........334 Triangle Solver app functions ........... 335 Linear Explorer functions ..........336 Quadratic Explorer functions ..........336 Geometry app function ............ 337 Common app functions............ 337 Ctlg menu................338 Creating your own functions ..........371 21 Variables Home variables ..............
Page 11
26 Programming The Program Catalog ............438 Creating a new program ............. 441 The Program Editor ............441 The HP Prime programming language ........450 The User Keyboard: Customizing key presses ....455 App programs ............... 459 Program commands ............464 Commands under the Tmplt menu ........
Page 12
Base functions ..............518 28 Limiting functionality Exam configurations ............519 Modifying the default configuration........520 Creating a new configuration ........... 521 Activating Exam Mode ............522 Cancelling exam mode............ 524 Modifying configurations............524 To change a configuration ..........524 Deleting configurations ............
Page 13
Preface Manual conventions The following conventions are used in this manual to represent the keys that you press and the menu options that you choose to perform operations. A key that initiates an unshifted function is • represented by an image of that key: , etc.
Page 14
1994–1995, 1999–2000, 2003–2006, 2010–2013 Hewlett-Packard Development Company, L.P. The programs that control your HP Prime are copyrighted and all rights are reserved. Reproduction, adaptation, or translation of those programs without prior written permission from Hewlett-Packard Company is also prohibited.
(CAS) for symbolic calculations. In addition to an extensive library of functions and commands, the calculator comes with a set of HP apps. A HP app is a special application designed to help you explore a particular branch of mathematics or to solve a problems of a particular type.
To reduce potential safety risks, only use the AC • adapter provided with the calculator, a replacement AC adapter provided by HP, or an AC adapter purchased as an accessory from HP. On/off, cancel operations To turn on Press to turn on the calculator.
The Home View Home view is the starting point for many calculations. Most mathematical functions are available in the Home view. Some additional functions are available in the computer algebra system (CAS). A history of your previous calculation is retained and you can re-use a previous calculation or its result.
Sections of the display Title bar History Entry line Menu buttons Home view has four sections (shown above). The title bar shows either the screen name or the name of the app you are currently using—Function in the example above. It also shows the time, a battery power indicator, and a number of symbols that indicate various calculator settings.
Page 19
Annunciator Meaning (Continued) The Shift key is active. The function [Cyan] shown in blue on a key will be activated when a key is pressed. Press to cancel shift mode. You are working in CAS view, not [White] Home view. The Alpha key is active.
Meaning (Continued) Battery-charge indicator. Navigation The HP Prime offers two modes of navigation: touch and keys. In many cases, you can tap on an icon, field, menu, or object to select (or deselect) it. For example, you can open the Function app by tapping once on its icon in the Application Library.
Number Feature LCD and touch-screen: 320 × 240 pixels Context-sensitive touch-button menu HP Apps keys Home view and preference settings Common math and science functions Alpha and Shift keys On, Cancel and Off key...
Page 22
Number Feature Menu (and Paste) key CAS (and CAS preferences) key View (and Copy) key Escape (and Clear) key Help key Rocker wheel (for cursor movement) Getting started...
Context-sensitive menu A context-sensitive menu occupies the bottom line of the screen. The options available depend on the context, that is, the view you are in. Note that the menu items are activated by touch. There are two types of buttons on the context-sensitive menu: menu button: tap to display a pop-up menu.
Page 24
Keys Purpose (Continued) For entering a negative number. For example, to enter –25, press 25. Note: this is not the same operation that is performed by the subtraction key ( Math template: Displays a palette of pre-formatted templates repre- senting common arithmetic expres- sions.
Keys Purpose (Continued) Cursor keys: Moves the cursor <>=\ around the display. Press move to the end of a menu or screen, or to move to the start. Displays all the available characters. To enter a character, use the cursor keys to highlight it, and then tap .
Adding text The text you can enter directly is shown by the orange characters on the keys. These characters can only be entered in conjunction with the keys. Both uppercase and lowercase characters can be entered, as explained in the following. Keys Effect Makes the next character upper-...
Page 27
To calculate SIN(10), press 10 and Example 1: press . The answer displayed is –0,544… (if your angle measure setting is radians). To find the square root of 256, press Example 2: 256 and press . The answer displayed is 16. Notice that the key initiates the operator represented in blue on the next key pressed (in this case √...
Page 28
> 4. Press to display the result: 9.813… The template palette can save you a lot of time, especially with calculus calculations. You can display the palette at any stage in defining an expression. In other words, you don’t need to start out with a template.
Page 29
1°22′ 30″ . Press again to return to the decimal representation. The HP Prime will produce the best approximation in cases where an exact result is not possible. Enter to see the decimal approximation: 2.236… Press to see 2°14′...
Page 30
you enter 10°25′ 26″ , the whole value is squared, not just the seconds component. The result in this case is 108°39′ 26.854445″ . EEX key 7 – Numbers like are expressed in 3.21 10 (powers of scientific notation, that is, in terms of powers of ten. This is simpler to work with than 50 000 or 0.000 000 321.
Menus A menu offers you a choice of items. As in the case shown at the right, some menus have sub- menus and sub-sub- menus. To select from a There are two techniques for selecting an item from a menu menu: direct tapping and •...
Toolbox menus The Toolbox menus ( ) are a collection of menus offering functions and commands useful in mathematics and programming. The Math , and Catlg menus offer over 400 functions and commands. The items on these menus are described in detail in chapter 20, “Functions and commands”, starting on page 283).
Reset input To reset a field to its default value, highlight the field and form fields press . To reset all fields to their default values, press (Clear). System-wide settings System-wide settings are values that determine the appearance of windows, the format of numbers, the scale of plots, the units used by default in calculations, and much more.
Page 34
Page 1 Setting Options Degrees: 360 degrees in a circle. Angle Measure Radians: 2 radians in a circle. The angle mode you set is the angle setting used in both Home view and the current app. This is to ensure that trigonometric calculations done in the current app and Home view give the same result.
Page 35
Setting Options (Continued) Entry : An expression is Textbook entered in much the same way as if you were writing it on paper (with some arguments above or below or others). In other words, your entry could be two-dimensional. Algebraic : An expression is entered on a single line.
Page 36
Page 2 Setting Options Font Size Choose between small, medium, and large font for general display. Calculator Enter a name for the calculator. Name Textbook If selected, expressions and results Display are displayed in textbook format (that is, much as you would see in textbooks).
519. Page 4 Page 4 of the input form is for Home Settings configuring your HP Prime to work on a wireless network. Visit www.hp.com/support for further information. Specifying a Home setting This example demonstrates how to change the number format from the default setting—Standard—to Scientific...
(see “Menus” on page 25). –499 Note that the HP Prime represents 1 × 10 (as well as all numbers smaller than this) as zero. The largest number displayed is 9.99999999999 × 10 .
menus) in an expression you are entering in Home view, and use functions from the menu (another of the Math Toolbox menus) in an expression you are entering in CAS view. Choosing an entry type The first choice you need to make is the style of entry. The three types are: Textbook •...
in Textbook format or not. This refers to the appearance of your calculations in the history section of both Home view and CAS view. This is a different setting to the Entry setting discussed above. Entering expressions The examples that follow assume that the entry mode is Textbook.
Page 41
>s Algebraic The HP Prime calculates according to the following order precedence of precedence. Functions at the same level of precedence are evaluated in order from left to right. 1. Expressions within parentheses. Nested parentheses are evaluated from inner to outer.
10. Equals (=). Negative It is best to press to start a negative number or to numbers insert a negative sign. Pressing instead will, in some situations, be interpreted as an operation to subtract the next number you enter from the last result. (This is explained in “To reuse the last result”...
Page 43
To retrieve an expression and place it on the entry line for editing, either: tap twice on it or its result, or • use the cursor keys to highlight the expression and • then either tap on it or tap To retrieve a result and place it on the entry line, use the cursor keys to highlight it and then tap .
Page 44
the entry line as the first component of the new calculation. For example, to multiply the last answer by 13, you could enter S+ s . But the first two keystrokes are unnecessary. All you need to enter The variable Ans is always stored with full precision whereas the results in history will only have the precision determined by the current Number Format setting (see page 28).
Storing a value in a variable You can store a value in a variable (that is, assign a value to a variable). Then when you want to use that value in a calculation, you can refer to it by the variable’s name. You can create your own variables, or you can take advantage of the built-in variables in Home view (named A to Z and ) and in the CAS (named a to z, and a few others).
. For example, to store 2+3i in variable Z6: > Sharing data As well as giving you access to many types of mathematical calculations, the HP Prime enables you to Getting started...
Page 47
HP Primes. Whenever you encounter a screen with as a menu item, you can select an item on that screen to send it to another HP Prime. You used the supplied USB cable to send objects from one HP...
and will be sent to the connected calculator when is tapped. What happens on the receiving calc? Online Help Press to open the online help. The help initially provided is context-sensitive, that is, it is always about the current view and its menu items. For example, to get help on the Function app, press select Function, and press From within the help system you can navigate to other help...
Reverse Polish Notation (RPN) The HP Prime provides you with three ways of entering objects in Home view: Textbook • An expression is entered in much the same way was if you were writing it on paper (with some arguments above or below or others).
The same entry-line editing tools are available in RPN mode as in algebraic and textbook mode: Press to delete the character to the left of the cursor. • Press to delete the character to the right of the • cursor. Press to clear the entire entry line.
bottom. In RPN mode, your history is ordered chronologically by default, but you can change the order of the items in history. (This is explained in “Manipulating the stack” on page 47.) Re-using There ate two ways to re-use a result in history. Method 1 results deselects the copied result after copying;...
Page 52
(each separated by a space) or they can be in history. For example, to multiply by 3, you could enter: on the entry line and then enter the operator ( ). Thus your entry line would look like this before entering the operator: However, you could also have entered the arguments separately and then, with a blank entry line, entered the operator ( Your history would look like this before entering the operator:...
Suppose further that you want to determine the minimum of just the numbers on stack levels 1, 2, and 3. You choose the MIN function from the MATH menu and complete the entry as MIN(3). When you press , the minimum of just the last three items on the stack is displayed.
Page 54
Swap You can swap the position of the objects on stack level 1 with those on stack level 2. Just press . The level of other objects remains unchanged. Note that the entry line must not be active at the time, otherwise a comma will be entered. Stack Tapping displays further stack-manipulation tools.
Page 55
2. Press Delete all To delete all items, thereby clearing the history, press items Reverse Polish Notation (RPN)
HOME view or by an aplet, are numerical calculations and are often approximations limited by the precision of the calculator (to – in the case of the HP Prime). For example, yields -- - -- - the approximate answer .619047619047 in Home view (with...
: applies common simplification rules to reduce an • expression to its simplest form. For example, a + LN(b*e c ) ) yields b * EXP(a)* EXP(c). simplify(e : copies a selected entry ion history to the entry • line : displays the selected entry in full-screen mode, •...
The function proot() appears on the entry line. 2. Between the parentheses, enter: ASsj+ ASsw 3. Press Example 2 To find the area under the graph of 5x – 6 between x =1 and x = 3: 1. With the CAS menu open, select Calculus and then Integrate.
Page 60
Setting Purpose (Cont.) Number Format Select the number format for dis- (first drop-down played solutions: list) Standard or Scientific or Engineering Number Format Select the number of digits to dis- (second drop- play in approximate mode (man- down list) tissa + exponent). Integers (drop- Select the integer base: down list)
Page 61
Setting Purpose (Cont.) Use i If checked, the calculator is in complex mode and complex solu- tions will be displayed when they exist. If not checked, the calculator is in real mode and only real solu- tions will be displayed. For exam- ple, factors(x –1) yields (–1+x),(1+x),(i+x),(–i+x) in com-...
Page 62
Setting Purpose (Cont.) Epsilon Any number smaller than the value specified for epsilon will be shown as zero. Probability Specify the maximum probability of an answer being wrong for non-deterministic algorithms. Set this to zero for deterministic algo- rithms. Newton Specify the maximum number of iterations when using the Newto- nian method to find the roots of a...
Page 63
The highlighted item is copied to the cursor point in CAS. To use a Home You can access Home variables from within the CAS. Home variable in CAS variables are assigned uppercase letters; CAS variables are assigned lowercase letters. Thus SIN(x) and SIN(X) will yield different results.
An introduction to HP apps Much of the functionality of the HP Prime is provided in packages called HP apps. The HP Prime comes with 18 HP apps: 10 dedicated to mathematical topics or tasks, three specialized Solvers, three function Explorers, a spreadsheet, and an app for recording data streamed to the calculator from an external sensing device.
Page 66
You can also save a version of the app with a name you give it and then use the original app for another problem or purpose. See “Creating an app” on page 97 for more information about customizing and saving apps. An introduction to HP apps...
With one exception, all the apps mentioned above are described in detail in this user guide. The exception is the DataStreamer app. A brief introduction to this app is given in the HP Prime Quick Start Guide. Full details can be found in the HP...
3. From the Sort Apps list, choose the option you want. To delete an The apps that come with the HP Prime are built-in and cannot be deleted, but you can delete an app you have created. To delete an app: 1.
Note that the DataStreamer app is not covered in this chapter. See HP StreamSmart 410 User Guide for information about this app. Symbolic view The table below outlines what is done in the Symbolic view of each app.
Use the Polar view to: Advanced Plot and explore the open sentences Graphing selected in Symbolic view. Finance Display an amortization graph. Function Plot and explore the functions selected in Symbolic view. Geometry Create and manipulate geometric constructions. An introduction to HP apps...
Plot Setup view The table below outlines what is done in the Plot Setup view of each app. Use the Polar view to: Advanced Modify the appearance of plots and the Graphing plot environment. Finance Not used An introduction to HP apps...
The table below outlines what is done in the Numeric view of each app. Use the Numeric view to: Advanced View a table of numbers generated by the Graphing open sentences selected in Symbolic view. An introduction to HP apps...
Page 73
Numeric view is the primary view for this app. Statistics 1Var Enter data for analysis. Statistics 2Var Enter data for analysis. Triangle Solver Enter known data about a triangle and solve for the unknown data. Trig Explorer Not used An introduction to HP apps...
Symbolic view, and set the zoom factor. Solve Not used Spreadsheet Format cells, rows, columns, or the entire spreadsheet. Statistics 1Var Not used Statistics 2Var Not used Triangle Solver Not used An introduction to HP apps...
The angle measure for this app is set in the Symbolic Setup view. Symbolic Setup view 4. Press 5. Select Radians from the Angle Measure menu. An introduction to HP apps...
Page 76
Suppose you want to see just whole numbers for ; in other words, you want the increment between consecutive values in the column to be 1. You set this up in the Numeric Setup view. An introduction to HP apps...
1. Highlight an empty field you want to use, either by tapping on it or scrolling to it. 2. Enter your definition. If you need help, see “Definitional building blocks” on page 72. 3. Tap or press when you have finished. An introduction to HP apps...
Page 78
Thus you could have a definition that +Q. (Q is on the Real sub-menu of the reads F1(X)=X Home menu.) Home variables are discussed in detail in chapter 28, “Troubleshooting”, beginning on page 507. From app variables • An introduction to HP apps...
Page 79
+Statistics_2Var.PredY(6). From the Catlg menu • Some of the functions on the Catlg menu can be incorporated into a definition. The Catlg menu is one of the Toolbox menus ( ). The following definition incorporates An introduction to HP apps...
Page 80
. (Do likewise if you want to re-select a deselected function.) Choose a color for plots Each function and open sentence can be plotted in a different color. If you want to change the default color of a plot: An introduction to HP apps...
Page 81
Delete a definition To delete a single definition: 1. Tap once on it (or highlight it using the cursor keys). 2. Press To delete all the definitions: 1. Press 2. Tap or press to confirm your intention. An introduction to HP apps...
Displays the selected definition in full- screen mode. See “Large results” on page 36 for more information. Evaluates dependent definitions. See “Evaluate a dependent definition” on page 74. Common operations in Symbolic Setup view An introduction to HP apps...
Plot view functionality that is common to many apps is described in detail in this section. Functionality that is available only in a particular app is described in the chapter dedicated to that app. Press to open Plot view. An introduction to HP apps...
Plot view • the Views menu ( • Zoom keys There are two zoom keys: pressing zooms in and pressing zooms out. The extent of the scaling is determined by the settings (explained above). ZOOM FACTOR An introduction to HP apps...
Page 85
Multiplies the vertical scale only, using the Y Zoom setting. Square Changes the vertical scale to match the horizontal scale. This is useful after you have done a box zoom, X zoom or Y zoom. An introduction to HP apps...
Page 86
The screen fills with the area you specified. To return to the default view, tap and select Decimal. Views menu The most commonly used zoom options are also available on the Views menu. These are: Autoscale • Decimal • Integer • Trig. • An introduction to HP apps...
Page 87
Note that there is an Unzoom option on the Zoom menu. Use this to return a plot to its pre-zoom state. If the Zoom menu is not shown, tap Zoom In Shortcut: press An introduction to HP apps...
Page 88
Zoom Out Shortcut: press X In X In X Out X Out Y In Y In Y Out Y Out An introduction to HP apps...
Page 89
Notice that in this example, the plot on left has had a X In zoom applied to it. The Decimal zoom has reset the default values for the x-range and y- range. Integer Integer Trig Trig An introduction to HP apps...
4. If you pressed to see the definition of a plot, the menu at the bottom of the screen will be closed. Tap to re- open it. 5. Tap 6. Enter 25 and tap 7. Tap An introduction to HP apps...
Page 91
The value of F1(X) when X is 25 us shown at the bottom of the screen. . This is one of many ways the HP Prime provides for you to evaluate a function for a specific independent variable. You can also evaluate a function in Numeric view (see page 92).
[Scope: Advanced Graphing, Function, Parametric, Polar, Sequence, Statistics 1 Var, Statistics 2Var] The Plot Setup view is used to configure the appearance of Plot view and to set the method by which graphs are plotted. The An introduction to HP apps...
Page 93
[Stats 1 Var only] Sets the range of values to be included in a HRNG [Stats 1 Var histogram. Note that here are two fields: only] one for the minimum and one for the maximum value. An introduction to HP apps...
Page 94
Draws a horizontal and vertical grid line at GRID LINES each integer x-value and y-value. Sets the appearance of the trace cursor: CURSOR standard, inverting, or blinking. Connects the data points with straight CONNECT [Stats 2 Var segments. only] An introduction to HP apps...
Explained below. Graphing methods The HP Prime gives you the option of choosing one of three graphing methods. The methods are described below, with each applied to the function f(x) = 9*sin(e adaptive: this gives very •...
0.4, zooming in will further divide that interval by four smaller intervals. So instead of x-values of 10, 10.4, 10,8, 1 1.2 etc., the x-values will be 10, 10.1, 10.2, 10.3, 10.4, etc. (Zooming out An introduction to HP apps...
Page 97
Zoom keys There are two zoom keys: pressing zooms in and pressing zooms out. The extent of the scaling is determined by the setting (explained above). NUMZOOM Zoom menu In Numeric view, tap tap an option. An introduction to HP apps...
F1(X) as (X – 1) – 3. Suppose further that you want to know what the value of that function is when X is 625. 1. Open Numeric view ( 2. Anywhere in the independent column—the left-most column—enter 625. An introduction to HP apps...
To delete one row of data in your custom table, place the cursor data in that row and press To delete all the data in your custom table: 1. Press 2. Tap or press to confirm your intention. An introduction to HP apps...
Only visible if is set to NUMTYPE BuildYourOwn. See “Custom tables” on page 93. Toggles the display between medium and large font. Toggles between showing the value of the cell and the definition that generated the value. An introduction to HP apps...
Modifying Numeric Setup Select the field you want to change and either specify a new value, or if you are choosing a type of table for Numeric view—automatic or build-your-own—choose the appropriate option from the menu. NUMTYPE An introduction to HP apps...
Note Catalog. It can only be accessed when the app is open. An app note remains with the app if the app is sent to another calculator. To add a note to an app: 1. Open the app. An introduction to HP apps...
4. To exit the note screen, press any key. Your note is automatically saved. Creating an app The apps that come with the HP Prime are built in and cannot be deleted. They are always available (simply by pressing However, you can create any number of customized instances of most apps.
Page 104
5. You are now ready to use this app just as you would the built-in Sequence app. Tap on the icon of your new app to An introduction to HP apps...
Sequence app—see chapter 16, “Sequence app”, beginning on page 257. As well as cloning a built-in app—as described above—you can modify the internal workings of a customized app using the HP Prime programming language. See “Customizing an app” on page 460.
Page 106
You can qualify the name of any app variable so that it can be variables accessed from anywhere on the HP Prime. For example, both the Function app and the Parametric app have an variable named Xmin. If the app you last had open was the Parametric app and enter Xmin in Home view, you will get the value of Xmin from the Parametric app.
Function app by stepping you through an example. More- complex functionality is described in chapter 4, “An introduction to HP apps”, beginning on page 59. Getting started with the Function app The Function app uses the customary app views: Symbolic, Plot and Numeric described in chapter 4.
Page 110
Open the 1. Open the Function Function app app. Select Function Recall that you can open an app just by tapping its icon. You can also open it by using the cursor keys to highlight it and then pressing The Function app starts in Symbolic view. This is the defining view.
Page 111
5. Decide if you want to: give one or more function a custom color when it – is plotted evaluate a dependent function – deselect a definition that you don’t want to – explore incorporate variables, math commands and CAS –...
Page 112
Trace a 8. By default, the trace functionality is active. This graph enables you to move a cursor along the contour of a plot. If more than two plots are shown, the plot that is the highest in the list of functions in Symbolic view is the plot that will be traced by default.
Page 113
Use the Plot Setup view to specify the exact x-range • (XRNG) and y-range (YRNG) you want. Use options on the Zoom menu to zoom in or out, • horizontally or vertically, or both, etc. Use options on the View menu ( ) to select a pre- •...
Page 114
decreases the increment; zooming out increases the increment. This is further explained in “Zoom” on page 90. You can also choose whether the table of data in Numeric view is automatically populated or whether it is populated by you typing in the particular x-values you are interested in.
expressions selected in Symbolic view: 1–x and –3. You can also scroll through the columns (x–1) of the dependant variables (labeled F1 and F2 in the illustration above). To go directly to a 18. Place the cursor is in value the X column and type the desired value.
Page 116
you have more than one function plotted, you may need to choose the function of interest beforehand. Display the The Function menu is a sub-menu of the Plot view menu. Plot view First, display the Plot view menu: menu To find a root of the Suppose you want to find the root of the quadratic quadratic function equation defined earlier.
Page 117
Note the button. If you tap this, one or two dotted lines pick out the point of interest (in this case a root). If, while this button is active, you tap elsewhere on the screen, a set of dotted lines appears on the screen. The dotted lines intersect the currently selected plot closest to the point you tapped.
Page 118
The coordinates of the intersection are displayed at the bottom of the screen. on the screen near the other intersection, and repeat from step 2. The coordinates of the intersection nearest to where you tapped are displayed at the bottom of the screen. To find the slope of We will now find the slope of the quadratic function at the the quadratic...
Page 119
4. Select the other function as the boundary for the integral. (If F1(X) is the currently selected function, you would choose F2(X) here, and vice versa.) 5. Specify the end value for x: and press 2 The cursor jumps to x = 2.3 and the area between the two functions is...
The coordinates of the extremum are displayed at the bottom of the screen. N O T E The ROOT INTERSECTION, and EXTREMUM operations return only one value even if the function in question has more than one root, intersection, or extremum. The app will only return values that are closest to the cursor.
Page 121
For example, in Home view or the CAS you could select SignedArea from the Vars menus, press get the current value of SignedArea multiplied by three. Function variables can also be made part of a function’s definition in Symbolic view. For example, you could define a function as x –x–Root.
Summary of FCN operations Operation Description Select Root to find the root of the Root current function nearest to the tracing cursor. If no root is found, but only an extremum, then the result is labeled Extremum instead of Root. The cursor is moved to the root value on the x-axis and the resulting x-value is saved in a variable named...
Advanced Graphing app The Advanced Graphing app enables you to define and explore the graphs of symbolic open sentences in x, y, both or neither. You can plot conic sections, polynomials in standard or general form, inequalities, and functions. The following are examples of the sorts of open sentences you can plot: 1.
Example 3 Example 4 Example 5 Example 6 Getting started with the Advanced Graphing app The Advanced Graphing app uses the customary app views: Symbolic, Plot, and Numeric described in chapter 4. For a description of the menu buttons available in this app, see: “Symbolic view: Summary of menu buttons”...
Page 125
Open the 1. Open the Advanced Graphing app: Select Advanced Graphing The app opens in the Symbolic view. Define the 2. Define the open sentence: open > sentence > + > > + 10 < 0 >w Note that < can be easily selected from the relations palette: 3.
Page 126
4. Display Plot Setup view: (Setup) For this example, you can leave the plot settings at their default values. If your settings do not match those in the illustration at the right example, press (Clear) to restore the default values. See “Common operations in Plot Setup view”...
Page 127
7. Tap . The definition as you entered it in Symbolic view appears at the bottom of the screen. 8. Tap The definition is now editable. 9. Change the < to = and Notice that the graph changes to match the new definition.
Page 128
You can also zoom in or out on the X variable or Y variable (thereby decreasing or increasing the increment between consecutive values). This and other options are explained in “Common operations in Numeric view” on page 90. Set up 13.
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.
Page 130
Preparation 1. Press 2. On the screen set the number format to Home Setting Fixed and the number of decimal places to 3. Open the app 3. Press and select Geometry and plot the If there are objects showing that you don’t need, press graph and confirm your intention by tapping 4.
Page 131
Add a tangent 8. We will now add a tangent to the curve, making point B the point of tangency: > More > Tangent 9. Tap on point B, press and then press A tangent is drawn through point B. (Depending on where you placed point B, your illustration might be...
Page 132
point B, and its y coordinate (that is, its ordinate) to always equal the slope of the derivative at that point. 16. To define a point in terms of the attributes of other geometric objects, you need to go to Symbolic view: Note that each object you have so far created...
Page 133
20.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. 21. Press If you can’t see point D, pan until it comes into view.
Page 134
27. Press 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.
35. Press to return to Numeric view. 36.Select each calculation in turn and tap . All calculations should now be deselected. 37. Press to return to Plot view. 38.Press and select point GD. 39. Tap and select More > Trace 40.Press and select point GB.
Page 136
of your object to be, and Hit Point 1 means tap at the location of the first point you want to add. You can draw any number of geometric objects in Plot view. See “Geometric objects” on page 141 for a list of the objects you can draw.
Page 137
You can rename an object. See “Renaming an object” on page 137. Selecting an To select an object, just tap on it. The color of a selected item object changes to cyan. To select a point in Plot view, just press .
Page 138
Note that for object with closed contours (such as a circle or polygon) it is the fill color that is changed. Filling objects An object with closed contours (such as a circle or polygon) can be filled with color. 1. Press 2.
Page 139
If you tap when no object is selected, a list of objects appears. Tap on the one you want to delete, and to confirm your intention. If you don’t want to delete an object, press to close the list. Note that points you add to an object once the object has been defined are cleared when you clear the object.
Button or Purpose (Continued) Tools for creating various types of curves and plots. See “Curve” on page 146 Tools for geometric transformations of vari- ous kinds. See “Geometric transformations” on page 148. Deletes a selected object (or the character to the left of the cursor if the entry line is active).
Page 141
: A toggle option to hide (or reshow) the names of Labels • the geometric objects (A, B, C, etc.) in Plot view. Function Labels • toggle option to hide (or reshow) the expression that generated a plot with the plot. These should not be confused with calculation labels.
Result in Plot view (Continued) Undo. 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 ). The name is the name for it you see in Plot view, but prefixed by “G”.
Page 143
Another example: to draw aline through points P and Q, enter line(GP,GQ) in Symbolic view and press . When you return to Plot view, you will see a line passing through points P and Q. The object-creation commands available in Symbolic view can be seen by tapping .
Note that a name must be a single string of characters (that is, it must contain no spaces). Also, the G prefix must be retained. Highlight the definition of the object you want to rename. Make your change and tap .
Page 145
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”...
Page 146
Listing all When you are creating a objects new calculation in Numeric view, the menu item appears. Tapping gives you a list of all the objects in your Geometry workspace. These are also grouped according to their type, with each group given its own menu. If you are building a calculation, you can select an object from one of these variables menus.
To delete all calculations, press . Note that deleting a calculation does not delete any objects from Plot or Symbolic view. Geometric objects The geometric objects discussed in this section are those that can be created in Plot view. Objects can also be created in Symbolic view—more, in fact, than in Plot view—but these are discussed in “Geometry functions and commands”...
Page 148
Point On Tap the object where you want the new point to be and press . 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.
Page 149
menu of trace points appears so that you can choose which one to untrace. Untrace does not erase any existing trace lines. It merely prevents any further tracing should the point be moved again. Erase Trace Erases all trace lines, but leaves the definition of the trace points in Symbolic view.
Page 150
Vector Tap where you want one endpoint to be and press Tap where you want the other endpoint to be and press . A vector is drawn between the two end points. Angle bisector Tap the point that is the vertex of the angle to be bisected (A) and press .
Page 151
Altitude Tap on a vertex (A) and press . tap on the line opposite the vertex and press . A line is drawn through A that crosses segment BC at right angles. Polygon The Polygon menu provides tools for drawing various polygons.
Page 152
Curve Circle Tap at the center of the circle and press . Tap at point on the circumference and press . A circle is drawn about the center point with a radius equal to the distance between the two tapped points. Keyboard shortcut: You can also create a circle by first defining in Symbolic view.
Page 153
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 after each tap.
, select , and Plot 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/...
Page 155
5. Tap the object to be moved and press The object is moved the same length as the vector and in the same direction. The original object is left in place. Reflection Reflection is a transformation in which a copy of an object is made and every point on the new object is the same distance from a symmetry...
Page 156
to each new point will be twice the distance to the original point (since the scale factor is 2). 1. Tap and select Dilation 2. Tap the point that is to be the center of dilation and press 3. Enter the homothetic ratio (that is, the scale factor) and press 4.
3. Enter the inversion ratio (r) and press 4. Tap on a line where you want the inversion point (B) to be and press In the example at the right, the inversion ratio is 6 and the inversion point was a point tapped on line AB.
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: •...
Page 159
inter(Curve,Curve,[Pnt]) isobarycenter isobarycenter(A,B,C,...) draws the isobarycenter of the n points A,B,C,... midpoint midpoint(A,B) draws the midpoint of the segment AB midpoint((Pnt or Cplx),(Pnt or Cplx)) orthocenter Shows the orthocenter of a triangle or of the triangle made with 3 points. orthocenter((Pnt or Cplx),(Pnt or Cplx),(Pnt or Cplx)) point...
Page 160
altitude Draws a line through A that crosses segment BC at right angles. altitude(A,B,C) bisector Draws the bisector of the angle (AB,AC) given by 3 points A,B,C. bisector((Pnt(A) or Cplx),(Pnt(B) or Cplx),(Pnt(C) or Cplx)) exbisector Draws the exterior bisector of the angle (AB,AC) given by 3 points A,B,C.
Page 161
parallel(Pnt or Line,Line or Plan,[Line]) perpen_bisector perpen_bisector(A,B) draws the bisection (line or plane) of the segment AB. perpen_bisector((Pnt or Cplx),(Pnt or Cplx)) perpendicular perpendicular(A,line(B,C)) or perpendicular(A,B,C) draws the orthogonal line of line BC through A and perpendicular(d,plane(B,C,D)) draws the orthogonal plane of plane(B,C,D) through the line d.
Page 162
isosceles_triangle Draws the isosceles triangle ABC AB=AC and angle(AB,AC)=t (or in the plane ABP angle(AB,AC)=angle(AB,AP) or angle(AB,AC)=t). isosceles_triangle((Pnt(A) or Cplx),(Pnt(B) or Cplx),(Angle(t) or Pnt(P) or Lst(P,t)),[Var(C)] ) isopolygon Draws a regular polygon having abs(n) vertices, given by 2 vertices (or 2 vertices and 1 point of the plane) if n>0 and by its center and 1 vertex (or its center, 1 vertex and 1 point of the plane) if n<0.
Page 163
rhombus Returns and draws the rhombus ABCD such as the angle (AB,AD)=a (or in the plane ABP angle(AB,AD)=angle(AB,AP) or such that angle(AB,AD)=a). rhombus(Pnt(A)||Cplx,Pnt(B)||Cplx,Angle(a)||P nt(P)||Lst(P,a)),[Var(C)],[Var(D)]) right_triangle Draws the A_rectangular triangle ABC with AC=k*AB (or in the plane ABP AC=AP or AC=k*AB). right_triangle((Pnt(A) or Cplx),(Pnt(B) or Cplx),(Real(k) or Pnt(P) or Lst(P,k)),[Var(C)])
Page 164
circumcircle circumcircle(A,B,C)=circumcircle of the triangle ABC. circumcircle((Pnt or Cplx),(Pnt or Cplx),((Pnt or Cplx)) conic Defines a conic by its equation with x,y as default variables and draws it. conic(Expr,[LstVar]) ellipse ellipse(F1,F2,M)=ellipse focus F1,F2 through M or such as MF1+MF2=2*a (geo2d) and ellipse(p(x,y)) draws the conic if deg(p)=2.
Page 165
parabola parabola(F,A)=focus F, top A (in the plane ABP) or (parabola(A,c) of equa. y=yA+c*(x-xA)^2 c=1/(2*p) and FA=p/2 geo2d) and parabola(P(x,y)) draws the conic if deg(P)=2. parabola(Pnt(F)||Pnt(xA+i*yA),Pnt(A)||Real(c) [Pnt(P)]) Transform homothety homothety(C,k,A)=point A1 such as vect(C,A1)=k*vect(C,A) i.e in 2-d it is the similarity center C, coeff abs(k) and angle arg(k).
similarity similarity(B,k,a1,A)=transformation of A in the similarity (center B or axis d, coeff k,angle a1) (or also homothety(B,k*exp(i*a1),A)). similarity(Pnt or Dr3,Real,Angle,Pnt) translation translation(B-A,C) (resp translation([a,b,c],C)) is the translation of C in the translation of vector AB (resp [a,b,c]). translation(Vect, Pnt(C)) Numeric view: Cmds menu Measure abscissa...
Page 167
area(Polygon) area(Expr,x=a..b,[n],[Method]) coordinates Returns the list (resp matrix) of the abscissa and of the ordinate of a point or a vector (resp of points or vectors). coordinates(Pnt or Cplx or Vect) distance Calculates the distance between 2 points or a point and a curve distance((Pnt or Cplx),(Pnt or Cplx or Curve)) distance2...
Page 168
ordinate(Pnt or Vect) parameq parameq(C) returns the complex number=parametric equation of the curve C parameq(GeoObj ) perimeter Perimeter of a polygon (e.g. triangle, square, ...) perimeter(Polygon) radius radius(C) gives the radius of the circle C radius(Crcle) Test is_collinear Returns 1 if the points are aligned,2 if the points are the same and 0 otherwise.
Page 169
is_equilateral Returns 1 if the 3 points (or the object) build an equilateral triangle and 0 otherwise. is_equilateral(Pnt||Cplx,Pnt||Cplx,Pnt||Cplx) is_isoceles Returns 1, 2 or 3 if the 3 points (or the object) build an isosceles triangle with vertices 1, 2, or 3, returns 4 if the 3 points (or the object) build an equilateral triangle and 0 otherwise.
is_square Returns 1 if the 4 points build a square and 0 otherwise. is_square(Pnt,Pnt,Pnt,Pnt) Other Geometry functions The following functions are not available from a menu in the Geometry app, but are available from the Catlg menu. angleat angleat(A,B,C,z0) displays at point(z0) the value of the measure of the angle made by AB and AC along with a legend.
Page 171
convexhull(Lst) cube Draws the direct cube with vertices A,B with a face in the plan (A,B,C). cube(Pnt(A),Pnt(B),Pnt(C)) cylinder Draws a cylinder with axis (A,v), with radius r [and with altitude h]. cylinder(Pnt(A),Vect(v),Real(r),[Real(h)]) display Draws an geometrical object with color (black=0 red=1 green=2 yellow=3 blue=4).
Page 172
harmonic_division Returns the 4 points (resp lines) and affects the last argument, such as the 4 points (resp lines) are in a harmonic division. harmonic_division(Pnt or Line,Pnt or Line,Pnt or Line,Var) icosahedron Draws an icosahedron with center A, vertex B and such that the plane ABC contains one vertex among the 5 nearest vertices from B.
Page 173
LineHorz(A) line_segments Returns the list of the line_segments (1 line=segment) of the polyhedron P line_segments(Polygon or Polyedr(P)) LineVert Draws the vertical line x=a. LineVert(Expr(a)) octahedron Draws an octahedron with center A, vertex B and such that the plane ABC contains 4 vertices. octahedron(Pnt(A),Pnt(B),Pnt(C)) open_polygon Returns and draws the polygonal line where its vertices are the...
Page 174
perimeteratraw(Polygon, Pnt||Cplx(z0)) plane plane(A,B,C) or plane(A,line(B,C)) (resp plane(a*x+b*y+c*z+d=0)) draws the plane ABC (resp of equation a*x+b*y+c*z+d=0) in the 3-D space. plane(Pnt or Eq, [Pnt or Line],[Pnt]) polar Returns the line of the conjugated points of A with respect to the circle. polar(Crcle,Pnt or Cplxe(A)) polar_coordinates Returns the list of the norm and of the argument of the affix of...
Page 175
pyramid Draws the regular direct pyramid ABCD with vertices A,B and a face in the plan (A,B,C) when there are 3 arguments, and the pyramid ABCD when there are 4 arguments. pyramid(Pnt(A),Pnt(B),Pnt(C),[Pnt(D)]) radical_axis Returns the line of points with same powerpc with respect to the 2 circles.
Page 176
vector(Pnt,Pnt || Pnt,Vect) vertices Returns the list of the vertices of the polygon or polyhedron P. vertices(Polygon or Polyedr(P)) vertices_abca Returns the closed list [A,B,...A] of the vertices of the polygon or polyhedron P. vertices_abca(Polygon or Polyedr(P) Geometry...
Spreadsheet The Spreadsheet app provides a grid of cells for you to enter content (such as numbers, text, expressions, and so on) and to perform certain operations on what you enter. To open the Spreadsheet app, press and select Spreadsheet. You can create any number of customized spreadsheets, each with its own name (see “Creating an app”...
Page 178
3. Enter PRICE and tap . You have named the entire first column PRICE. 4. Select column B. Either tap on B or use the cursor keys to highlight the B cell. 5. Enter a formula for your commission (being 10% of the price of each item sold): PRICE Because you entered the...
Page 179
1 1. To delete the dummy values, select cell A1, tap press until all the dummy values are selected, and then press 12. Select cell C1. 13. Enter a label for your takings: TAKINGS S.AN Notice that text strings, but not names, need to be enclosed within quotation marks.
Page 180
23. Enter a label for your fixed costs: COSTS S.AN 24.In cell C5, enter 100. This is what you have to pay the landowner for renting the space for your stall. 25. Enter the label PROFIT in cell C7. 26. In cell D7, enter a formula to calculate your profit: You could also have named D3 and D5—say, TOTCOM and COSTS respectively.
(by tapping the row number). You can also select the entire spreadsheet: just tap on the unnumbered cell at the top- left corner of the spreadsheet. (It has the HP logo in it.) A block of cells can be selected by pressing down on a cell that will be a corner cell of the selection and, after a second, dragging your finger to the diagonally opposite cell.
Cell references You can refer to the value of a cell in formulas as if it were a variable. A cell is referenced by its column and row coordinates, and references can be absolute or relative. An absolute reference is written as $C$R (where C is the column number and R the row number).
The following is a more complex example involving the naming of an entire column. 1. Select cell A (that is the header cell for column A). 2. Enter COST and tap 3. Select cell B (that is the header cell for column B). 4.
Page 184
You do this by placing the formula in the cell at the top left (the cell with the HP logo in it). To see how this works, suppose you want to generate a table of powers (squares, cubes, and so on) starting with the squares: 1.
Page 185
The column is filled with the data from the statistics app, starting with the cell selected at step 1. Any data in that data will be overwritten by the data being imported. You can also export data from the Spreadsheet app to a statistics app.
Copy and paste To copy one or more cells, select them and press SV (Copy). Move to the desired location and press ( SZ (Paste). You can choose to paste either the value, formula, format, both value and format, or both formula and format. External references You can refer to data in a spreadsheet from outside the...
Referencing variables Any variable can be inserted in a spreadsheet cell. This includes Home variables, App variables, CAS variables and user variables. Variables can be referenced or entered. For example, if you have assigned 10 to P in Home view, you could enter =P*5 in a spreadsheet cell, press and get 50.
Page 188
these variables is provided in chapter 21, “Variables”, beginning on page 373. Spreadsheet...
Buttons and keys Button or key Purpose Activates the entry line for you to edit the object in the selected cell. (Only visible if the selected cell has content.) Converts the text you have entered on the entry line to a name. (Only visible when the entry line is active.) Forces the calculation to be handled by the CAS.
Button or key Purpose (Continued) Clears the spreadsheet. Formatting options The formatting options appear when you tap . They apply to whatever is currently selected: a cell, block, column, row, or the entire spreadsheet. The options are: displays an input Name •...
Page 191
: show quote marks around strings in the body of show “ • the spreadsheet—Auto, Yes, No : display formulas in textbook format—Auto, Yes, Textbook • : turn this option on to speed up calculations in Caching • spreadsheets with many formulas; only available if you have selected the entire spreadsheet Format Each format attribute is represented by a parameter that can be...
Parameter Attribute Result (Continued) foreground color contents color As well as retrieving format attributes, you can set a format attribute (or cell content) by specifying it in a formula in the relevant cell. For example, wherever it is placed g5(1):=6543 enters 6543 in cell g5.
Statistics 1Var app The Statistics 1Var app can store up to ten data sets at one time. It can perform one-variable statistical analysis of one or more sets of data. The Statistics 1Var app starts with the Numeric view which is used to enter data.
Page 194
3. Find the mean of the sample. to see the statistics calculated from the sample data in D1. The mean (x ) is 170. There are more statistics than can be displayed on one screen. Thus you may need to scroll to see the statistic you are after.
Page 195
represent the data in Plot view: Histogram, Box and Whisker, Normal Probability, Line, Bar, or Pareto. Symbolic view: menu items The menu items you can tap on in Symbolic view are: Menu item Purpose Copies the column variable (or vari- able expression) to the entry line for editing.
Page 196
Height (cm) Frequency 6. Tap on to the right of H1 (or press > Freq highlight the second H1 field). 7. Enter the name of the column that you will contain the frequencies (in this example, D2): 8. If you want to choose a color for the graph of the data in Plot view, see “Choose a color for plots”...
12. Recalculate the statistics: The mean height now is approximately 167.631 cm. 13. Configure a histogram plot for the data. ((Setup) Enter parameters appropriate to your data. Those shown at the right will ensure that all the data in this particular example is displayed in Plot view.
Page 198
Go to Home view and copy the data from a the • Spreadsheet app. For example, suppose the data of interest is in A1:A10 in the Spreadsheet app and you want to copy it into column D7. With the Statistics 1Var app open, return to Home view and enter Spreadsheet.A1:A10 Whichever method you use, the data you enter is...
Page 199
Item Purpose (Continued) Calculates statistics for each data set selected in Symbolic view. See “Computed statistics” on page 194. Edit a data In Numeric view, highlight the data to change, type a new value, and press . You can also highlight the data, to copy it to the entry line, make your change, and press Delete data...
(such as in Home view). If F happened to be 5, column D2 is populated with {–4, 4, 20, 44, 76}. Sort data values 1. In Numeric view, place the highlight in the column you want to sort, and tap 2.
example, for the data set {3,5,7,8,15,16,17}only the first three items—3, 5, and 7—are used to calculate Q1, and only the last three terms—5, 16, and 17—are used to calculate Q3. Plotting You can plot: Histograms • Box-and-Whisker plots • Normal Probability plots •...
Plot types Histogram The first set of numbers below the plot indicate where the cursor is. In the example at the right, the cursor is between 5 and 6 but not including 6), and the frequency for that range is 6. The data set is as defined by H3 in Symbolic view.
Bar graph The bar graph shows the value of a data point as a vertical bar placed along the x-axis at the row number of the data point. Pareto chart A pareto chart places the data in descending order and displays each with its percentage of the whole.
Page 204
Plot view: buttons menu items The menu items you can tap on in Plot view are: Button Purpose Displays the Zoom menu. Turns trace mode on or off. See “Zoom” on page 90.) Displays the definition of the current statistical plot. Shows or hides the menu.
Statistics 2Var app The Statistics 2Var app can store up to ten data sets at one time. It can perform two-variable statistical analysis of one or more sets of data. The Statistics 2Var app starts with the Numeric view which is used to enter data.
Page 206
Open the 1. Open the Statistics Statistics 2Var 2Var app: Select Statistics 2Var. Enter data 2. Enter the advertising minutes data in column C1: 3. Enter the resulting sales data in column C2: 1400 1 100 2265 2890 2200 Choose data In Symbolic view, you can define up to five analyses of columns and fit two-variable data, named S1 to S5.
Page 207
5. Select a fit: From the Type 1 field select a fit. In this example, select Linear. 6. If you want to choose a color for the graph of the data in Plot view, see “Choose a color for plots” on page 74. 7.
Page 208
10. Find the mean sales ( ). The mean sales, is approximately $1,796. Press return to Numeric view. Setup plot 1 1. Change the plotting range to ensure that all the data points are plotted (and to select a different data-point indicator, if you wish).
Page 209
(m) of the regression line is 425.875 and the y- intercept (b) is 376.25. Predict values Let’s now predict the sales figure if advertising were to go up to 6 minutes. 14. Return to the Plot view: The trace option is active by default.
reads 2931.5. Thus the model predicts that sales would rise to $2,931.50 if advertising were increased to 6 minutes. T i p You could use the same tracing technique to predict—although roughly—how many minutes of advertising you would need to gain sales of a specified amount.
Numeric view menu items The buttons you can tap on in Numeric view are: Button Purpose Copies the highlighted item to the entry line. Inserts a new cell above the highlighted cell (and gives it a value of 0). Opens an input form for you to choose to sort the data in various ways.
If you just want to add more data to the data set and it is not important where it goes, select the last cell in the data set and start entering the new data. Sort data values 1. In Numeric view, place the highlight in the column you want to sort, and tap 2.
Page 213
Fit models Twelve fit models are available: Fit model Meaning (Default.) Fits the data to a Linear straight line: y = mx+b. Uses a least-squares fit. Fits the data to a logarithmic Logarithmic curve: y = m lnx + b. Fits the data to a power curve: y Power = bx...
To define your 1. Press to display the Symbolic view. own fit 2. For the analysis you are interested in (S1 through S5), select the Type field. 3. Tap the field again to see a menu of fit types. 4. Select User Defined from the menu. 5.
Page 215
Statistic Definition (Continued) Sample covariance of independent sCOV and dependent data columns. Population covariance of independent and dependent data columns. Sum of all the individual products of XY of x and y. The statistics displayed when you tap are: Statistic Definition Mean of x- (independent) values.
Plotting statistical data Once you have entered your data, selected the data set to analyze and specified your fit model, you can plot your data. You can plot up to five scatter plots at a time. 1. In Symbolic view, select the data sets you want to plot.
Press to see the equation of the regression line in Symbolic view. If the equation is too wide for the screen, select it and press The example above shows that the slope of the regression line (m) is 425.875 and the y-intercept (b) is 376.25. Plot view: menu items The menu items in Plot view are: Button...
Plotting mark Page 1 of the Plot Setup view has fields namedS1MARK through S5MARK. These fields enable you to specify one of five symbols to use to represent the data points in each data set. This will help you distinguish data sets in Plot view if you have chosen to plot more than one.
You can type PredX and PredY directly on the entry line, or select them from the App functions menu (under the Statistics 2Var category). The App functions menu is one of the Toolbox menus ( H I N T In cases where more than one fit curve is displayed, the PredX and PredY functions use the first active fit defined in the Symbolic view.
Inference app The Inference app enables you to calculate confidence intervals and undertake hypothesis tests based on the Normal Z-distribution or Student’s t-distribution. Based on statistics from one or two samples, you can test hypotheses and find confidence intervals for the following quantities: mean •...
The table below summarizes the options available in Symbolic view for the two inference methods: hypothesis test and confidence interval. Hypothesis Test Confidence Interval Z-Test: 1 , the Z- Z-Int: 1 , the confidence Test on one mean interval for one mean, based on the Normal distribution Z-Test: ...
Page 223
In this section, we will conduct a Z-Test on one mean on the example data to illustrate how the app works. Select the 2. Hypothesis Test inference is the default inference method. If it is not method selected, tap on the Method field and select it.
Page 224
Field Definition (Continued) name Sample size Assumed population mean Population standard deviation Alpha level for the test We’ll leave the data as it is for now, but the Numeric view is where you add the data you are particularly interested Display the 6.
Importing statistics The Inference app can calculate confidence intervals and test hypotheses based on data in the Statistics 1Var and Statistics 2Var apps. The following example illustrates the process. A series of six experiments gives the following values as the boiling point of a liquid: 82.5, 83.1, 82.6, 83.7, 82.4, and 83.0 Based on this sample, we want to estimate the true boiling point at the 90% confidence level.
Page 226
The statistics calculated will now be imported into the Inference app. 5. Tap to close the statistics window. Open the 6. Open the Inference Inference app and clear the current settings. Select Inference Select 7. Tap on the Method inference field and select Confidence method and...
1 1. From the App field select the statistics app that has the data you want to import. 12. In the Column field specify the column in that app where the data is stored. (D1 is the default.) 13. Tap 14.
The tests are based on statistics of samples of the populations. The HP Prime hypothesis tests use the Normal Z-distribution or the Student’s t-distribution to calculate probabilities. One-Sample Z-Test Menu name Z-Test: 1 On the basis of statistics from a single sample, this test measures the strength of the evidence for a selected hypothesis against the null hypothesis.
Results The results are: Result Description Test Z Z-test statistic Test Value of associated with the test Z-value Probability associated with the Z-Test statistic Critical Z Boundary value(s) of Z associated with the level that you supplied Critical Boundary value(s) of required by the ...
Field name Definition (Continued) Population 1 standard deviation Population 2 standard deviation Significance level Results The results are: Result Description Test Z Z-Test statistic Test Difference in the means associ- x ated with the test Z-value Probability associated with the Z-Test statistic Critical Z...
Inputs The inputs are: Field name Definition Number of successes in the sample Sample size Population proportion of successes Significance level Results The results are: Result Description Test Z Z-Test statistic Test Proportion of successes in the sample p ˆ...
Page 232
Inputs The inputs are: Field name Definition Sample 1 success count Sample 2 success count Sample 1 size Sample 2 size Significance level Results The results are: Result Description Test Z Z-Test statistic Test Difference between the p ˆ proportions of successes in the two samples that is associated with the test Z-value...
One-Sample T-Test Menu name T-Test: 1 This test is used when the population standard deviation is not known. On the basis of statistics from a single sample, this test measures the strength of the evidence for a selected hypothesis against the null hypothesis. The null hypothesis is that the sample mean has some assumed value, ...
Result Description (Continued) Critical T Boundary value(s) of T associated with the level that you supplied Critical Boundary value(s) of required by the value that you supplied Two-Sample T-Test Menu name T-Test: – This test is used when the population standard deviation is not known.
Critical Difference in the means associated with the level you supplied x 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: ...
Field Definition name Sample size Population standard deviation Confidence level Results The results are: Result Description Confidence level Critical Z Critical values for Z Lower Lower bound for Upper Upper bound for Two-Sample Z-Interval Menu name Z-Int: –...
Field Definition name Confidence level Results The results are: Result Description 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 This option uses the Normal Z-distribution to calculate a confidence interval for the proportion of successes in a population for the case in which a sample of size n has a number of successes x.
Result Description Upper Upper bound for Two-Proportion Z-Interval Menu name Z-Int: – This option uses the Normal Z-distribution to calculate a confidence interval for the difference between the proportions of successes in two populations. Inputs The inputs are: Field Definition name...
for the case in which the true population standard deviation, , is unknown. Inputs The inputs are: Field Definition name Sample mean Sample standard deviation Sample size Confidence level Results The results are: Result Description Confidence level Degrees of freedom Critical T Critical values for T Lower...
Page 240
Result Definition Sample 1 standard deviation Sample 2 standard deviation Sample 1 size Sample 2 size Confidence level Whether or not to pool the samples Pooled based on their standard deviations Results The results are: Result Description Confidence level Degrees of freedom Critical T Critical values for T Lower...
Solve app The Solve app enables you to define up to ten equations or expressions each with as many variables as you like. You can solve a single equation or expression for one of its variables, based on a seed value. You can also solve a system of equations (linear or non-linear), again using seed values.
Page 242
+2AD. where V = final speed, U = initial speed, A = acceleration needed, and D = distance. Open the 1. Open the Solve app. Solve app Select Solve The Solve app starts in Symbolic view, where you specify the equation to solve.
Page 243
Here you specify the values of the known variables, highlight the variable that you want to solve for, and 5. Enter the values for the known variables. 1 0 0 N O T E Some variables may already have values against them when you display the Numeric view.
Page 244
independent variable by selecting it in Numeric view. So in this example make sure that A is highlighted. The current equation is V +2AD. The plot view will plot two equations, one for each side of the equation. One of these is Y = V , with V = 27.78, making Y = 771.7284.
Several equations You can define up to ten equations and expressions in Symbolic view and select those you want to solve together as a system. For example, suppose you want to solve the system of equations consisting of: = 16 and •...
You cannot plot equations if more than one is selected in Symbolic view. The HP Prime will not alert you to the existence of multiple solutions. If you suspect that another solution exists close to a particular value, repeat the exercise using that value as a seed.
Page 247
displays a message giving you some information about the solutions found (if any). Tap to clear the message. Message Meaning The Solve app found a point where both Zero sides of the equation were equal, or where the expression was zero (a root), within the calculator's 12-digit accuracy.
Page 248
Message Meaning (Continued) The initial guess lies outside the domain of the equation. Therefore, the solution was Guess(es) not a real number or it caused an error. The value of the equation is the same at Constant? every point sampled. Solve app...
(and z in three-equation sets). The HP Prime will alert you if no solution can be found, or if there is an infinite number of solutions.
Page 250
N o t e If the last time you used the Linear Solver app you solved for two equations, the two-equation input form is displayed. To solve a three-equation set, tap ; now the input form displays three equations. Define and solve 2.
Solve a two-by- If the three-equation two system input form is displayed and you want to solve a two- equation set, tap N o t e You can enter any expression that resolves to a numerical result, including variables. Just enter the name of a variable.
Parametric app The Parametric app enables you to explore parametric equations. These are equations in which both x and y are defined as functions of t. They take the forms f t g t Getting started with the Parametric app The Parametric app uses the customary app views: Symbolic, Plot and Numeric described in chapter 4.
Page 254
The graphical and numerical data you see in Plot view and Numeric view are derived from the symbolic functions defined here. Define the There are 20 fields for defining functions. These are functions labelled X1(T) through X9(T) and X0(T), and Y1(T) through Y9(T) and Y0(T).
Page 255
Set the angle Set the angle measure to degrees: measure (Settings) 6. Tap the Angle Measure field and select Degrees. You could also have set the angle measure on the Home Settings screen. However, Home settings are system-wide. By setting the angle measure in an app rather than Home view, you are limiting the setting just to that app.
Page 256
Explore the The menu button gives you access to common tools for graph exploring plots: : displays a range of zoom options. (The keys can also be used to zoom in and out.) : when active, enables a tracing cursor to be moved along the contour of the plot (with the coordinates of the cursor displayed at the bottom of the screen).
Page 257
Display the 15. Display the numeric view Numeric view: 16. With the cursor in the T column, type a new value and . The table scrolls to the value you entered. You can also zoom in or out on the independent variable (thereby decreasing or increasing the increment between consecutive values).
Getting started with the Polar app The Polar app uses the six standard app views described in chapter 4, “An introduction to HP apps”, beginning on page 59. That chapter also describes the menu buttons used in the Polar app.
Page 260
>> fd > j Notice how the key enters whatever variable is relevant to the current app. In this app the relevant variable is . 4. If you wish, choose a color for the plot other than its default. You do this by selecting the colored square to the left of the function set, tapping , and selecting a color from the color-picker.
Page 261
8. Set up the plot by specifying appropriate graphing options. In this example, set the upper limit of the range of the independent variable to 4: Select the 2nd Rng field and enter 4 ( There are numerous ways of configuring the appearance of Plot view.
Page 262
If only one polar equation is plotted, you can see the equation that generated the plot by tapping If there are several equations plotted, move the tracing cursor to the plot you are interested—by pressing —and then tap For more information on exploring plots in Plot view, see “Common operations in Plot view”...
You can define a sequence by specifying just the first term and the rule for generating all subsequent terms. However, you will have to enter the second term if the HP Prime is unable to calculate it automatically. Typically if the nth term in the sequence depends on n –2, then you must...
Open the 1. Open the Sequence Sequence app app: Select Sequence The app opens in Symbolic view. Define the 2. Define the Fibonacci sequence: expression – – In the U (1) field, specify the first term of the sequence: In the U1(2) field, specify the second term of the sequence: In the U1(N) field,...
Page 265
6. Select Stairstep from the Seq Plot menu. 7. Set the X Rng maximum, and the maximum, to Y Rng 8 (as shown at the right). Plot the 8. Plot the Fibonacci sequence sequence: 9. Return to Plot Setup view ( ) and select Cobweb, from menu.
Page 266
Display 1 1. Display Numeric Numeric view: view 12. With the cursor anywhere in the column, type a new value and tap The table of values scrolls to the value you entered. You can then see the corresponding value in the sequence. The example at the right shows that the 25th value in the Fibonacci sequence is 75,025.
Set up the The Numeric Setup view table of provides options common to most of the values graphing apps. See “Common operations in Numeric Setup view” on page 95 for more information. Another example: A table of cubes In the following example, a table of cubes is created.
Finance app The Finance app enables you to solve time-value-of-money (TVM) and amortization problems. You can use the app to do compound interest calculations and to create amortization tables. Compound interest is accumulative interest, that is, interest on interest already earned. The interest earned on a given principal is added to the principal at specified compounding periods, and then the combined amount earns interest at a certain rate.
Page 270
3. In the I%/YR field, type 5.5—the interest rate—and press 4. In PV field, type 19500 3000 and press . This is the present value of the loan, being the purchase price less the deposit. 5. Leave P/YR and C/YR both at 12 (their default values).
The PV value is calculated as 15,705.85, this being the maximum you can borrow. Thus, with your $3,000 deposit, you can afford a car with a price tag of up to $18,705.85. Cash flow diagrams TVM transactions can be represented in cash flow diagrams.
The following cash flow diagram shows a loan from the lender's point of view: Cash flow diagrams also specify when payments occur rela- tive to the compound- ing periods.The diagram to the right shows lease pay- ments at the begin- ning of the period.
The nominal annual interest rate (or I%YR investment rate). This rate is divided by the number of payments per year (P/YR) to compute the nominal interest rate per compounding period. This is the interest rate actually used in TVM calculations. The present value of the initial cash flow.
1. Start the Finance app: Select Finance 2. Return all fields to their default values: 3. Enter the known TVM variables, as shown in the figure. 4. Highlight PMT and . The PMT field shows –984.10. In other words, the monthly payments are $948.10. 5.
Page 275
1. Start the Finance app. 2. Specify the number of payments per year (P/YR). 3. Specify whether payments are made at the beginning or end of periods. 4. Enter values for I%YR, PV, PMT, and FV. 5. Enter the number of payments per amortization period in the Group Size field.
Page 276
3. Scroll down the table to payment group 10. Note that after 10 years, $22,835.53 has been paid off the principal and $90,936.47 paid in interest, leaving a balloon payment due of $127,164.47. Amortization graph Press to see the amortization schedule presented graphically.
In each case, the app will calculate the remaining values. The HP Prime will alert you if no solution can be found, or if you have provided insufficient data. If you are determining the lengths and angles of a right-...
Page 278
2. If there is unwanted data from a previous calculation, you can clear it all by pressing (Clear). Set angle Make sure that your angle measure mode is appropriate. measure By default, the app starts in degree mode. If the angle information you have is in radians and your current angle measure mode is degrees, change the mode to degrees before running the solver.
Solve for the 4. Tap . The unknown values app displays the values of the unknown variables. As the illustration at the right shows, the length of the unknown side in our example is 3.22967… The other two angles have also been calculated.
Page 280
In this case, the button is displayed (as in this example). You can to display the second solution and tap again to return to the first solution. No solution with If you are using the given data general input form and you enter more than 3 values, the values might not be...
The Explorer apps There are three explorer apps. These are designed for you to explore the relationships between the parameters of a function and the shape of the graph of that function. The explorer apps are: Linear Explorer • For exploring linear functions Quadratic Explorer •...
Page 282
form of the equation being explored at the top and, below it, the current equation of that form. The keys you can use to manipulate the graph or equation appear below the equation. The x- and y-intercepts are given at the bottom. There are two types (or levels) of linear equation available for you to explore: y = ax and y = ax + b.
Equation mode to enter equation mode. A dot will appear on the Eq button at the bottom of the screen. In equation mode, you use the cursor keys to move between parameters in the equation and change their values, observing the effect on the graph displayed. Press to decrease or increase the value of the selected parameter.
Page 284
Open the app Press and select Quadratic Explorer. The left half of the display shows the graph of a quadratic function. The right half shows the general form of the equation being explored at the top and, below it, the current equation of that form. The keys you can use to manipulate the graph or equation appear below the equation.
Page 285
Equation mode to move to equation mode. In equation mode, you use the cursor keys to move between parameters in the equation and change their values, observing the effect on the graph displayed. Press to decrease or increase the value of the selected parameter. Press to select >...
Trig Explorer app The Trig Explorer app can be used to investigate the behavior of the graphs as the values of a, b, c and d change. The menu items available in this app are: : toggles between graph mode and •...
Page 287
Graph mode The app opens in graph mode. In graph mode, you manipulate a copy of the graph by pressing the cursor keys. All four keys are available. The original graph—converted to dotted lines—remains in place for you to easily see the result of your manipulations.
Page 288
Test mode to enter test mode. In test mode you test your skill at matching an equation to the graph shown. Test mode is like equation mode in that you use the cursor keys to select and change the value of one or more parameters in the equation.
Functions and commands Many mathematical functions are available from the calculator’s keyboard. These are described in “Keyboard functions” on page 285. Other functions and commands are collected together in the Toolbox menus ( ). There are five Toolbox menus: Math •...
Page 290
used in the Matrix Editor – used in the List Editor – and some additional functions and commands – See “Ctlg menu” on page 338. Some functions can be chosen from the math template (displayed by pressing ). See “Math template” on page 21.
RatFrac: a rational fraction Fnc: a function Var: a variable LstVar: a list of variables 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 to evaluate the expression.
Page 292
Common logarithm. Also accepts complex numbers. (value) Example: (100) returns 2 Common exponential (antilogarithm). Also accepts complex numbers. value Example: 3 returns 1000 Sine, cosine, tangent. Inputs and outputs depend on the current angle format: degrees or radians. SIN(value) COS(value) TAN(value) Example: TAN(45) returns 1 (degrees mode)
Page 293
Example: ATAN(1) returns 45 (degrees mode) Square. Also accepts complex numbers. value Example: returns 324 Square root. Also accepts complex numbers. value Example: 320 returns 17.88854382 x raised to the power of y. Also accepts complex numbers. value power Example: 8 returns 256 The nth root of x.
(value) ((x+y*i)) (matrix) For a complex number, ABS((x+y*i)) returns . For a matrix, ABS returns the Frobenius norm of the matrix. Example: ABS(–1) returns 1 ABS((1,2)) returns 2.2360679775 Math menu Press to open the Toolbox menus (one of which is the Math menu). The functions and commands available on the Math menu are listed as they are...
Fractional part. FP(value) Example: returns FP (23.2) Round Rounds value to decimal places. Also accepts complex numbers. ROUND(value,places) ROUND can also round to a number of significant digits if places is a negative integer (as shown in the second example below).
Page 296
returns MAX(8/3,11/4) 2.75 Note that in Home view a non-integer result is given as a decimal fraction. If you want to see the result as a vulgar fraction, press . This opens the computer algebra system. If you want to return to Home view to make further calculations, press Minimum Minimum.
CONJ(x+y*i) Example: returns CONJ(3+4*i) (3-4*i) Real Part Real part x, of a complex number, (x+y*i). RE(x+y*i) Example: returns RE(3+4*i) Imaginary Part Imaginary part, y, of a complex number, (x+y*i). IM(x+y*i) Example: returns IM(3+4*i) Unit Vector Sign of value. If positive, the result is 1. If negative, –1. If zero, result is zero.
ACSC Arc cosecant. ACSC(value) Secant: 1/cosx. SEC(value) ASEC Arc secant. ASEC(value) Cotangent: cosx/sinx. COT(value) ACOT Arc cotangent. ACOT(value) Hyperbolic The hyperbolic trigonometry functions can also take complex numbers as arguments. SINH Hyperbolic sine. SINH(value) –1 ASINH Inverse hyperbolic sine: sinh ASINH(value) COSH Hyperbolic cosine...
Page 299
5! returns Combination The number of combinations (without regard to order) of n things taken r at a time. COMB(n,r) Example: Suppose you want to know how many ways five things can be combined two at a time. returns COMB(5,2) Permutation Number of permutations (with regard to order) of n things taken r at a time.
Page 300
Density Normal probability density function. Computes the Normal 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. ...
Page 301
Poisson Poisson probability mass function. Computes the probability of k occurrences of an event during a future interval given the mean of the occurrences of that event during that interval in the past. For this function, k is a non-negative integer and is a real number.
Page 302
returns FISHER_CDF(5,5,2) 0.76748868087. Binomial Cumulative binomial distribution function. Returns the probability of k or fewer successes out of n trials, with a probability of success, p for each trial. Note that n and k are integers with BINOMIAL_CDF(n,p,k) Example: Suppose you want to know the probability that during 20 tosses of a fair coin you will get either 0, 1, 2, 3, 4, 5, or 6 heads.
CHISQUARE_ICDF(n,p) Example: returns CHISQUARE_ICDF(2,0.952641075609) 6.1. Inverse cumulative Fisher distribution function. Returns the value x such that the Fisher lower-tail probability of x, with numerator n and denominator d degrees of freedom, is p. FISHER_ICDF(n,d,p) Example: returns FISHER_ICDF(5,5,0.76748868087) Binomial Inverse cumulative binomial distribution function. Returns the number of successes, k, out of n trials, each with a probability of p, such that the probability of k or fewer successes is q.
Gamma Returns the value of the gamma function ( for a number a. Gamma(a) 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) Returns the floating point value of the error function at x=a.
Algebra Simplify Returns an expression simplified. simplify(Expr) Collect Returns a polynomial or list of polynomials factorized over the field of the coefficients. collect(Poly LstPoly) Expand Returns an expression expanded. expand(Expr) Factor Returns a polynomial factorized. factor(Poly) Substitute Returns the solution when a value is substituted for a variable in an expression.
Page 306
variable as arguments, returns the derivative or partial derivative of the expression with respect to the variable. With one expression and more than one variable as arguments, returns the derivative of the expression with respect to the derivation in the second argument onwards. in the arguments can be followed by $k (k is an integer) to indicate the number of times the expression should be derived with respect to the variable.
Page 307
sum(Expr,Var,VarMin(a),VarMax(b)) Differential Curl Returns the rotational curl of a vector field, defined by: curl([A,B,C],[x,y,z])=[dC/dy-dB/dz,dA/dz-dC/dx,dB/dx- dA/dy]. curl(Lst(A,B,C),Lst(x,y,z)) Divergence Returns the divergence of a vector field, defined by: divergence([A,B,C],[x,y,z])=dA/dx+dB/dy+dC/dz. divergence(Lst(A,B,C),Lst(x,y,z)) Gradient Returns the gradient of an expression. With a list of as second argument, returns the vector of partial derivatives for all .
Limits Returns in the neighbourhood of n=+∞ an equivalent of the Riemann Sum sum of Xpr(var1,var2) for var2 from var2=1 to var2=var1 when the sum is looked at as a Riemann sum associated with a continuous function defined on [0,1]. sum_riemann(Expr(Xpr),Lst(var1,var2)) Taylor Returns the Taylor series expansion of an expression.
Page 309
Zeros With an expression as argument, returns the zeros (real or complex according to the mode) of the expression. With a list of expressions as argument, returns the matrix where the lines are the solutions of the system (i.e. expression1=0, expression2=0,...,).
Rewrite lncollect Returns an expression rewritten with the logarithms collected. (applies ln(a)+n*ln(b)->ln(a*b^n) for integers n). lncollect(Expr) powexpand Returns an expression with a power of sum rewritten as a product of powers. powexpand(Expr) tExpand Returns a transcendental expression in expanded form. tExpand(Expr) Exp &...
Page 311
Cosine acosx → asinx Returns an expression with arccos(x) rewritten as pi/2- arcsin(x). acos2asin(Expr) acosx → atanx Returns an expression with arccos(x) rewritten as pi/2- arctan(x/sqrt(1-x^2)). acos2atan(Expr) cosx → sinx/tanx Returns an expression with cos(x) rewritten as sin(x)/tan(x). cos2sintan(Expr) Tangent atanx →...
trigtan(Expr) atrig2ln Returns an expression with inverse trigonometric functions rewritten as logarithmic functions. atrig2ln(Expr) tlin Returns a trigonometric expression with the products and integer powers linearized. tlin(ExprTrig) tCollect Returns a trigonometric expression linearized and with any sine and cosine of the same angle put together. tCollect(Expr) trigexpand Returns a trigonometric expression in expanded form.
Nth Prime Returns the nth prime number less than 10000. ithprime(Intg(n)) Next Prime Returns the next prime or pseudo-prime after an integer. nextprime(Intg(a)) Previous Prime Returns the prime or pseudo-prime number closest to but smaller than an integer. prevprime(Intg(a)) Euler Compute’s Euler's totient for an integer.
Page 314
divis(Poly LstPoly) Factor List Returns the list of prime factors of a polynomial or a list of polynomials. Each factor is followed by its multiplicity. factors(Poly LstPoly) Returns the greatest common divisor of two polynomials of several . gcd(Poly,Poly) Returns the lowest common multiple of two polynomials of several .
Page 315
Minimum With only a matrix as argument, returns the minimal polynomial in x of a matrix written as a list of its coefficients. With a matrix and a variable as arguments, returns the minimum polynomial of the matrix written in symbolic form with respect to the variable.
Page 316
Chinese Returns the Chinese remainder of the polynomials written as Remainder lists of coefficients or in symbolic form. chinrem([Lst||Expr,Lst||Expr],[Lst||Expr ,Lst||Expr]) Special Cyclotomic Returns the list of coefficients of the cyclotomic polynomial of an integer. cyclotomic(Int) Groebner Basis Returns the Groebner basis of the ideal spanned by a list of polynomials.
Plot Function Plots the graph of an expression of one or two with superposition. plotfunc(Expr,[Var(x)],[Intg(color)]) plotfunc(Expr,[VectVar],[Intg(color)]) Implicit Plots the graph of the implicit equation f(Var1,Var2)=0. plotimplicit(Expr,Var1,Var2) Density Plots the graph of the function z=f(x,y) in the plane where the values of z are represented by different colors. plotdensity(Expr,[x=xrange,y=yrange],[z] ,[xstep],[ystep]) Slopefield...
App menu Press 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.
ISECT(Fn,Fm,guess) Example: ISECT(X,3-X,2) returns 1.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: ,2) returns 1.732… ROOT(3-X SLOPE Slope of a function. Returns the slope of the function Fn at the X-value (if value exists).
3—neither a solution, an approximation, nor an extremum was found See chapter 12, “Solve app”, beginning on page 235, for more information about the types of solutions returned by this function. Spreadsheet functions The spreadsheet functions can be selected from the App Toolbox menu ( >...
Page 321
For example: =STAT1(B1,”H ”,A25:A37) produces the x following output. Calculates the sum of a range of numbers. SUM([input]) For example, AVERAGE)B7:B23) returns the arithmetic mean of the numbers in the range B7 to B23. You can also specify a block of cells, as in AVERAGE(B7:C23). An error is returned if a cell in the specified range contains a non-numeric object.
Page 322
configuration codes are listed below. Add H as a prefix to have a heading generated for that information. h – This column contains the row headers S – This column contains the start of the period E – This column contains the end of the period HB,HI P –...
Page 323
Note that many of the characters representing statistics—for example, x and —can be selected from the symbol palette ( Input is the can be a cell range reference, a simple list or • anything that results in a list of values. Mode is optional and defines what to calculate the mean •...
Page 324
3 exponential 4 power 5 inverse 6 logistic 7 quadratic 8 cubic 9 quartic 10 trigonometric Important: If px or py are specified, their opposite value must be one of the input values. For example, if px is specified in the configuration string then the y-value must be an input parameter and vice versa for py.
Page 325
tZ = Test Z tM = Test Mean prob = Probability cZ = Critical Z cx1 = Critical xbar 1 cx2 = Critical xbar 2 std = Standard deviation Input list is the list of input (see Input Parameters below). •...
Page 326
"" will default to show all in default order including headers. h = if present the header cells will be created acc = Accept/Reject tZ = Test Z tM = Test Mean prob = Probability cZ = Critical Z cx1 = Critical xbar 1 cx2 = Critical xbar 2 std = Standard deviation Input list is the list of input (see Input Parameters below).
Page 327
from vertical to horizontal if the range is wider than it is tall. Configuration is a string that controls what results are • shown and what order they appear in. An empty string "" will default to show all in default order including headers.
Page 328
Output is a reference to where you would like the output • to be placed. Note if a range is specified it will limit the size of the output, but can also change the orientation from vertical to horizontal if the range is wider than it is tall.
Page 329
HypT1mean(ouput, "configuration", SampMean, SampStdDev, SampSize, NullPopProp, SigLevel, Mode) Output is a reference to where you would like the output • to be placed. Note if a range is specified it will limit the size of the output, but can also change the orientation from vertical to horizontal if the range is wider than it is tall.
Page 330
Syntax: HypT2mean(ouput, "configuration", input list) HypT2mean(ouput, "configuration", SampMean1, SampMean2,SampStdDev1, SampStdDev2,SampSize1, SampSize2, pooled, SigLevel, Mode) Output is a reference to where you would like the output • to be placed. Note if a range is specified it will limit the size of the output, but can also change the orientation from vertical to horizontal if the range is wider than it is tall.
Page 331
SigLevel: Mode: Specifies how to calculate the statistic 1 = Less than 2 = Greater than 3 = Not Equal Example: XXXXX ConfZ1mean The ConfZ1mean calculates the confidence interval for a one- sample Z-test. Syntax: ConfZ1mean(ouput, "configuration", input list) ConfZ1mean(ouput, "configuration", SampMean, SampSize, PopStdDevm ConfLevel) Output is a reference to where you would like the output •...
Page 332
ConfZ2mean The ConfZ2mean calculates the confidence interval for a two- sample Z-test. Syntax: ConfZ2mean(ouput, "configuration", input list) ConfZ2mean(ouput, "configuration", SampMean1, SampMean2, SampSize1, SampSize2, PopStdDev1,PopStdDev2 ConfLevel) Output is a reference to where you would like the output • to be placed. Note if a range is specified it will limit the size of the output, but can also change the orientation from vertical to horizontal if the range is wider than it is tall.
Page 333
ConfZ1prop The ConfZ1prop calculates the confidence interval for a one- proportion Z-test. Syntax: ConfZ1prop(ouput, "configuration", input list) ConfZ1prop(ouput, "configuration", SuccCount, SampSize, ConfLevel) Output is a reference to where you would like the output • to be placed. Note if a range is specified it will limit the size of the output, but can also change the orientation from vertical to horizontal if the range is wider than it is tall.
Page 334
ConfZ2prop(ouput, "configuration", SuccCount1, SuccCount2, SampSize1, SampSize2,ConfLevel) Output is a reference to where you would like the output • to be placed. Note if a range is specified it will limit the size of the output, but can also change the orientation from vertical to horizontal if the range is wider than it is tall.
Page 335
Output is a reference to where you would like the output • to be placed. Note if a range is specified it will limit the size of the output, but can also change the orientation from vertical to horizontal if the range is wider than it is tall.
from vertical to horizontal if the range is wider than it is tall. Configuration is a string that controls what results are • shown and what order they appear in. An empty string "" will default to show all in default order including headers.
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 column D0-D9, or any positive integer. Hn must be one of the Statistics 1Var app Symbolic view H1-H5.
and stores the results in the appropriate Statistics 2Var app results . Sn must be one of the Statistics 2Var app Symbolic view S1-S5. Do2VStats(Sn) SetDepend Set dependent column. Sets the dependent column for one of the statistical analyses S1-S5 to one of the column C0-C9. SetDepend(Sn,Cn) SetIndep Set independent column.
HypZ1mean HypZ2mean HypZ1prop HypZ2prop HypT1mean HypT2mean ConfZ1mean ConfZ2mean ConfZ1Prop ConfZ2Prop ConfT1mean ConfT2mean Finance app functions The Finance App uses a set of functions that all reference the same set of Finance app . There are 5 main TVM , 4 of which are mandatory for each of these functions (except DoFinance).
CPYR—the number of compounding periods per year – (12 by default) END—payments made at the end of the period – The arguments PPYR, CPYR, and END are optional; if not supplied, PPYR=12, CPYR=PPYR, and END=1. CalcFV Solves for the future value of an investment or loan. CalcFV(NbPmt,IPYR,PV,PMTV[,PPYR,CPYR,END] CalcIPYR Solves for the interest rate per year of an investment or loan.
Solves the linear system represented by: ax+by=c dx+ey=f Solve3x3 Solves a 3x3 linear system of equations. Solve3x3(a, b, c, d, e, f, g, h, i, j, k, l) Solves the linear system represented by: ax+by+cz=d ex+fy+gz=h ix+jy+kz=l LinSolve Solve linear system. Solves the 2x2 or 3x3 linear system represented by matrix.
ASA(angle,side,angle) SAS Uses the length of two sides and the measure of the included angle to calculate the length of the third side and the measures of the other two angles. Returns all 6 values. SAS(side,angle,side) SSA Uses the lengths of two sides and the measure of a non- included angle to calculate the length of the third side and the measures of the other two angles.
Geometry app function GeoAppFunction Common app functions In addition to the app functions specific to each app, there are two functions common to the following apps: Function • Solve • Parametric • Polar • Sequence • Advanced Graphing • CHECK Checks—that is, selects—the Symbolic view variable Symbn.
Ctlg menu menu brings Catlg 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 menu. The Catlg functions and commands that are also on the...
Page 345
.^(Lst or Mtrx,Intg(n)) Stores the evaluated expression in the variable. Note that:= cannot be used with the graphics G0–G9. See the command BLIT. var:=expression < Strict inequality test. Returns 1 if the inequality is true, and 0 if the inequality is false. Note that more than two objects can be compared.
Page 346
additionally Used in programming with assume to state an additional assumption about a variable. assume(n,integer); additionally(n>5); Returns the list of the symbolic variable names used in an algvar expression. The list is ordered by the algebraic extensions required to build the original expression. algvar(Expr) alog10 Returns the solution when 10 is taken to the power of an...
Page 347
approx(Expr,[Int]) areaat Displays the algebraic area at point z0 of a circle or a polygon. A legend is provided. areaat(Polygon,Pnt||Cplx(z0)) areaatraw Displays the algebraic area at point z0 of a circle or a polygon. areaatraw(Polygone,Pnt||Cplx(z0)) –1 ASIN Arc sine: sine ASIN(value) assume Used in programming to state an assumption about a...
Page 348
breakpoint Used in programming to insert an intentional stopping or pausing point. canonical_form Returns a second degree trinomial in canonical form. canonical_form(Trinom(a*x^2+b*x+c),[Var]) Evaluates the objects in a sequence, then returns them concatenated as a string. cat(SeqObj) center Displays a circle with its center indicated. center(Crcle) cFactor Returns an expression factorized over the complex field (on...
Page 349
comDenom Rewrites a sum of rational fractions as a one rational fraction. The denominator of the one rational fraction is the common denominator of the rational fractions in the original expression. With a variable as second argument, the numerator and denominator are developed according to it. comDenom(Expr,[Var]) common_perpend Draws the common perpendicular of the lines D1 and D2.
Page 350
convert(Expr,Cmd) convexhull Returns the convex hull of a list of two-dimensional points. convexhull(Lst) CopyVar Copies the first variable into the second variable without evaluation. CopyVar(Var1,Var2) correlation Returns the correlation of the elements of a list or matrix. correlation(Lst||Mtrx) Cosine: cosx. COS(value) count Applies a function to the elements in a list or matrix and...
Page 351
cylinder Draws a cylinder with axis from A in the direction of vector v, with radius r, and, if provided, with height h. cylinder(Pnt(A),Vect(v),Real(r),[Real(h)]) DEBUG Starts the debugger for the program name you specify. In a program, DEBUG( ) will act as a breakpoint and launch the debugger at that location.
Page 352
The polynomials can be provided in symbolic form or as lists. Without a third argument, it is assumed that the polynomials are expressions of x. With a variable as third argument, the polynomials are expressions of it. egcd((Poly or Lst(A)),(Poly or Lst(B)),[Var]) Returns the sequence of eigenvalues of a matrix.
Page 353
EVAL Evaluates an expression. eval(Expr) evalc Returns an complex expression written in the form real+i*imag. evalc(Expr) evalf With one argument, returns the numerical evaluation of it. With a second argument, returns the numerical evaluation of the first argument with the number of significant figures taken from the second argument.
Page 354
returns expr("2+3") returns expr("X+10") (If the variable X has the value 90) ezgcd Uses the EZ GCD algorithm to return the greatest common divisor of two polynomials with at least two . ezgcd(Poly,Poly) f2nd Returns a list consisting of the numerator and denominator of an irreducible form of a rational fraction.
Page 355
froot Returns the list of roots and poles of a rational polynomial. Each root or pole is followed by its multiplicity. froot(RatPoly) fsolve Returns the numerical solution of an equation or a system of equations. With the optional third argument you can specify a guess for the solution or an interval within which it is expected that the solution will occur.
Page 356
halftan_hyp2exp(ExprTrig) halt Used in programming to go into step-by-step debugging mode. hamdist Returns the Hamming distance between two integers. hamdist(Intg,Intg) harmonic_ Returns the harmonic conjugate of three points or of three conjugate parallel or concurrent lines, or returns the line of conjugates of a point with respect to two lines.
Page 357
hyperbola With three points (F1, F2, and M) as arguments, draws an hyperbola with foci at F1 and F2 that passes though M. With two points and a real (F1, F2, and a) as arguments, draws an hyperbola with foci at F1 and F2 that passes through point M such that |MF1–MF2|=2a.
Page 358
IFTE(Cond,Expr1,Expr2) igcd Returns the greatest common divisor of two integers or two rationals or two polynomials of several . igcd((Intg(a) or Poly),(Intg(b) or Poly)) ilaplace Returns the inverse Laplace transform of a rational fraction. ilaplace(Expr,[Var],[IlapVar]) incircle Draws the incircle of triangle ABC. incircle((Pnt or Cplx(A)),(Pnt or Cplx(B)),(Pnt or Cplx(C))) inter...
Page 359
With three points and n<0, draws a regular polygon with center at the first point, vertex at the second point and the third point is a point in the plane of the polygon. isopolygon(Pnt,Pnt,[Pnt],Intg(n)) isosceles_triangle Draws the isosceles triangle ABC. With an angle (t) as the third argument, it is equal to angle AB-AC.
Page 360
linear_interpolate Takes a regular sample from a polygonal line defined by a matrix of two rows. linear_interpolate(Mtrx,xmin,xmax,xstep) linear_regression Returns the coefficients a and b of y=a*x+b, where y is the line that best approximates the points whose coordinates are the elements in two lists or the rows of a matrix. linear_regression(Lst||Mtrx(A),[Lst]) LineHorz Draws the horizontal line y=a.
Page 361
Calculates the nth power of a matrix by jordanization matpow(Mtrx,Intg(n)) MAXREAL Returns the maximum real number that the HP Prime is capable of representing: 9.99999999999E499. mean Returns the arithmetic mean of a list (with the second argument as pound) or of the columns of a matrix.
Page 362
Draws the midpoint of the line segment AB. midpoint((Pnt or Cplx(A)),(Pnt or Cplx(A))) MINREAL Returns the minimum real number that the HP Prime is capable of representing: 1E4–99. MKSA Converts a unit object into a unit object written with the compatible MKSA base unit.
Page 363
Without a third argument, the value of h is set to 0.001. With a real as third argument, it is the value of h. nDeriv(Expr,Var(var),[Real(h)]) Unary minus. Enters the negative sign. normal Returns the expanded irreducible form of an expression. normal(Expr) normalize Returns a vector divided by its l...
Page 364
With a point (A) and a plane (BCD) as arguments, draws the orthogonal line of the plane that passes through the point. orthogonal(Pnt(A),(Line(BC) or Plane(BCD)) pa2b2 Takes a prime integer n congruent to 1 modulo 4 and returns [a,b] such that a^2+b^2=n. pa2b2(Intg(n)) pade Returns the Pade approximation i.e.
Page 365
perpen_bisector Draws the bisection (line or plane) of the segment AB. perpen_bisector((Pnt or Cplx(A)),(Pnt or Cplx(B))) perpendicular With a point and a line as arguments, returns the line that is orthogonal to the given line and that passes through the given point.
Page 366
plotseq(Expr(f(Var)),Var=[a,xm,xM],Intg(p)) point With a complex as argument, plots it. With the coordinates of a point in three dimensions as argument, plots it. point(Cplx||Vect) polar Returns the line of the conjugated points of A with respect to a circle. polar(Crcle,Pnt or Cplx(A)) polar_coordinates Returns the list of the norm and of the argument of the affix of a point, complex number or list of rectangular coordinates.
Page 367
polynomial_regre Returns the coefficients (an,...a1,a0) of ssion y=an*x^n+..a1x+a0), where y is the nth order polynomial which best approximates the points whose coordinates are the elements in two lists or the rows of a matrix. polynomial_regression(Lst||Mtrx(A),[Lst],Intg (n)) POLYROOT Returns the zeros of the polynomial given as argument (either as symbolic expression or as a vector of coefficients).
Page 368
projection Returns the orthogonal projection of the point on the curve. projection(Curve,Pnt) propfrac Returns a fraction or rational fraction A/B simplified to Q+r/ B, where R<B or the degree of R is less than the degree of B. propfrac(Frac or RatFrac) ptayl Returns the Taylor polynomial Q such as P(x)=Q(x–a).
Page 369
can be expressed as vectors of their coefficients or in symbolic form. quorem((Vect or Poly),(Vect or Poly),[Var]) QUOTE Returns an expression unevaluated. quote(Expr) radical_axis Returns the line which is the locus of points at which tangents drawn to two circles have the same length. radical_axis(Crcle,Crcle) randexp Returns a random real according to the exponential...
Page 370
Returns the solution to a system of linear equations written in matrix form. ref(Mtrx(M)) reflection With a line (D) and a point (C) as arguments, returns the reflection of the point across the line (i.e. the line is taken as a line of symmetry).
Page 371
right_triangle With two points (A and B) and a real (k) as arguments, draws right-angled triangle such ABC such that AC=k*AB. With three points (A, B and P) as arguments, draws the right-angled triangle ABC in the plane ABP and such that AC=AP. right_triangle((Pnt(A) or Cplx),(Pnt(B) or Cplx),(Real(k) or Pnt(P) or Lst(P,k)),[Var(C)])
Page 372
select Returns a list with only the elements that satisfy the Boolean function remaining. select(FncBool(f),Lst(l)) With an expression and two integers (a and b) as arguments, returns the sequence obtained when the expression is evaluated within the interval given by a and b. With an expression and three integers (a, b and p) as arguments, returns the sequence obtained when the expression is evaluated with step of p within the interval given by a and b.
Page 373
SIN(value) sincos Returns an expression with the complex exponentials rewritten in terms of sin and cos. sincos(Expr) single_inter With two curves or two surfaces as arguments, returns one of the intersections of the two curves or surfaces. With to curves or surfaces and a point or list of points as arguments, returns an intersection of the curves or surfaces that is nearest to the point or not in the list of points.
Page 374
stddevp Returns the population standard deviance of the elements in a list with the second argument as pound or returns the list of standard deviances of the columns of a matrix. What does the “pound” mean? stddevp(Lst||Mtrx,[Lst]) Used in prgramming to indicate the step in an iteration or the STEP step size of an incrementation.
Page 375
tan2sincos2(Expr) tangent With a curve as argument, draws the tangent line to the curve at point A. With a surface as argument, draws the tangent plane to the surface at point A. tangent(Curve or surface(C),Pnt(A)) THEN Used in programming to introduce a statement dependent on a conditional statement.
Page 376
USIMPLIFY Simplifies a unit in a unit object. usimplify(Unit) valuation Returns the valuation (degree of the term of lowest degree) of a polynomial. With only a polynomial as argument, the valuation returned is for x. With a variable as second argument, the valuation is performed for it.
zip(Fnc2d(f),Lst(l1),Lst(l2),[Val(default)]) Substitutes a value for a variable in an expression. |(Expr,Var(v1)=value(a1)[,v2=a2,...]) Returns the square of an expression. (Expr) Inserts pi. What does this one do? Inserts a template for a partial derivative expression. Inserts a template for a summation expression. ...
Page 378
1. Press (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. >+fA >A New fields appear below your function, one for each potential parameter it. will take. You need to decide which ones are to be parameters when the...
Variables Variables are placeholders for objects (such as function definitions, numbers, matrices, the results of calculations, and the like). Some are built-in and cannot be deleted. But you can also create your own. Many built-in variables are automatically assigned objects as a result of some operation (such as defining a polar function, performing a calculation, or setting an option).
Page 380
To assign an object to a built-in variable, it is important that you choose a variable that matches the type of object. For example, you cannot assign a complex number to the variables A through Z. These are reserved fro real numbers.
Page 381
degrees by entering 1 in Home HAngle view. Entering 0 forces the HAngle setting to return to radians. [What are the allowable attributes for the other settings?] Retrieving variables You can see what value has been assigned to a variable—built-in or user-defined—by entering its name in Home view and pressing .
Page 382
If you attempt to retrieve a variable that is used in more than one app by entering just its name in Home view, you will get the value that was last calculated for that variable. This might not be the value that you want. To ensure you get the right value, you need to qualify the variable with the name of the app that generated it.
Home variables The Home variables are accessed by pressing tapping Category Available names Real A to Z and For example, 7.45 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} Matrix...
App variables The app variables are accessed by pressing tapping . They are grouped below by app. (You can find then grouped by view—Symbolic, Numeric, Plot, —in “Variables and Programs” on page 492.) 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.
a. The Results variables contain the last value found by the Signed Area, Extremum, Intersection, Root, and Slope functions respectively. Geometry app variables Category Names Numeric XMin XMax YMin Modes AAngle ADigits AFormat AComplex Spreadsheet app variables Category Names Numeric ColWidth RowHeight Cell...
Page 388
Results NbItem Contains the number of data points in the current 1- variable analysis (H1-H5). Contains the minimum value of the data set in the current 1-variable analysis (H1-H5). Contains the value of the first quartile in the current 1- variable analysis (H1-H5).
Page 390
Corr Contains the correlation coefficient from the latest calculation of summary statistics. This value is based on the linear fit only, regardless of the fit type chosen. CoefDet Contains the coefficient of determination from the latest calculation of summary statistics. This value is based on the fit type chosen.
Y2 Contains the sum of the squares of the dependent values (Y) of the current 2-variable statistical analysis (S1-S5). Contains the sample standard deviation of the dependent values (Y) of the current 2-variable statistical analysis (S1- S5). Y Contains the population standard deviation of the dependent values (Y) of the current 2-variable statistical analysis (S1-S5).
Page 392
CritVal1 Contains the lower critical value of the experimental variable associated with the negative TestScore value which was calculated from the input -level. CritVal2 Contains the upper critical value of the experimental variable associated with the positive TestScore value which was calculated from the input -level. Contains the degrees of freedom for the t-tests.
Units and constants Units A unit of measurement—such as inch, ohm, or Becquerel—enables you give a precise magnitude to a physical quantity. You can attach a unit of measurement to any number or numerical result. A numerical value with units attached is referred to as a measurement.
Prefixes The Units menu includes an entry that is not a unit category, namely, Prefix. Selecting this option displays a palette of prefixes. Y: yotta Z: zetta E: exa P: peta T: tera G: giga M: mega k: kilo h: hecto D: deca d: deci c: centi...
Page 399
1. If you want the result in cm, enter the centimeter measurement first. (Units) Select Length > Select cm 2. Now add 5 inches. Select Length > Select in The result is shown as 32.7 cm. If you had wanted the result in inches, then you would have entered the 5 inches...
4. Now convert the result to kilometers per hour. Select CONVERT Select 8.175_(cm/ s) in History. Select Speed > Select km/h The result is shown as 0.2943 kilometers per hour. Unit tools There are a number of tools for managing and operating on units.
USIMPLIFY Unit simplification. For example, a Joule is defined as one kg*m . Thus: USIMPLIFY(5_kg*m2/s2) returns 5_J Physical constants The values of 34 math and physical constants can be selected by name and used in calculations. These constants are grouped into four categories: math, chemistry, physics and quantum mechanics.
5. Square the speed of light and evaluate the expression. Value or You can enter just the value of a constant or the constant measurement? and its units (if it has units). If is showing on the screen, the value is inserted at the cursor point. If is showing on the screen, the value and its units are inserted at the cursor point.
Page 403
Category Name and symbol (Continued) Phyics Stefan-Boltzmann, speed of light, c permittivity, permeability, acceleration of gravity, g gravitation, G Quantum Planck, h Dirac, electronic charge, q electron mass, me q/me ratio, qme proton mass, mp mp/me ratio, mpme fine structure, ...
Lists A list consists of comma-separated real or complex numbers, expressions, or matrices, all enclosed in braces. A list may, for example, contain a sequence of real numbers such as {1,2,3}. Lists represent a convenient way to group related objects. You can do list operations in Home and in programs.
Page 406
You can also just tap on a list name. Deletes the contents of the selected list. Transmits the highlighted list to another HP Prime. (Clear) Clears all lists. Moves to the end or the beginning of the catalog. Lists...
The List Editor The List Editor is a special environment for entering data into lists. There are two ways to open the List Editor once the List Catalog is open: Highlight the list and tap • Tap the name of the list. •...
Page 408
To edit a list 1. Open the List Catalog. (List) 2. Tap on the name of the list (L1, L1,etc.). The List Editor appears. 3. Tap on the element you want to edit. (Alternatively, press until the element you want to edit is highlighted.) In this example, edit the third element so...
Select L1(2), that is, the second element in the list. Deleting lists To delete a list In the List Catalog, use the cursor keys to highlight the list and press . You are prompted to confirm your decision. Tap or press Only the contents of the list is deleted.
Page 410
To store a list You can store a list in a variable. You can do this before the list is added to History, or you can copy it from History. When you’ve entered a list in the entry line or copied it from History to the entry line, tap , enter a name for the list and press The list variable names available to you are L0 through L9.
List functions List functions are found on the Math menu. You can use them in Home and in programs. You can type in the name of the function, or you can copy the name of the function from the List category of the Math menu.
Page 412
If you prefer the Math menu to show command names instead, deselect the option on page 2 of Menu Display screen (see page 26). Home Settings Make List Calculates a sequence of elements for a new list using the syntax: MAKELIST(expression,variable,begin,end, increment) Evaluates expression with respect to variable, as variable...
Page 413
CONCAT(list1,list2) Example: CONCAT({1,2,3},{4}) returns {1,2,3,4}. Position Returns the position of an element within a list. The element can be a value, a variable, or an expression. If there is more than one instance of the element, the position of the first occurrence is returned. A value of 0 is returned if there is no occurrence of the specified element.
LIST Calculates the sum of all elements in a list. LIST(list) Example: LIST({2,3,4}) returns 9. LIST Calculates the product of all elements in list. LIST(list) Example: LIST({2,3,4}) returns 24. Finding statistical values for lists To find statistical values—such as the mean, median, maximum, and minimum of a list—you create a list, store it in a data set and then use the Statistics 1Var app.
Page 415
3. Start the Statistics 1Var app. Select Statistics 1Var Notice that your list elements are in data set D1. 4. In the Symbolic view, specify the data set whose statistics you want to find. By default, H1 will use the data in D1, so nothing further needs to be done in Symbolic view.
Matrices You can perform matrix calculations in Home view and in programs. The matrix and each row of a matrix appear in square brackets, and the elements and rows are separated by commas. For example, the following matrix: 1 2 3 4 5 6 is displayed in History as: [[1,2,3],[4,5,6]]...
Matrix Editor. You can also send a matrix to another HP Prime. To open the Matrix Catalog, press (Matrix). In the Matrix Catalog, the size of a matrix is shown beside the matrix name.
Working with matrices To open the Matrix To create or edit a matrix, go to the Matrix Catalog, and Editor tap on a matrix. (You could also use the cursor keys to highlight the matrix and then press .) The Matrix Editor opens.
Page 420
To create a matrix 1. Open the Matrix Catalog: in the Matrix Editor (Matrix) 2. If you want to create a vector, press until the matrix you want to use is highlighted, tap and then press . Continue from step 4 below. 3.
Page 421
each row of a matrix with square brackets as well. (For a pair of square brackets, press Separate each element and each row with a comma 2. When you have finished entering the elements, press . The vector or matrix is added to History (with any expressions among the elements evaluated).
To display one In Home view, enter matrixname(row,column). For element example, if M2 is [[3,4],[5,6]], then returns 4. M2(1,2) To store one In Home view, enter value, tap , and then enter element matrixname(row,column). For example, to change the element in the first row and second column of M5 to 728 and then display the resulting matrix: An attempt to store an...
Page 423
2. Enter the matrix elements: 3. Select the second matrix: (Matrix) Tap M2 or highlight it and press 4. Enter the matrix elements: 5. In Home view, add the two matrices you have just created. HA Q To multiply and For division by a scalar, enter the matrix first, then the divide by a scalar operator, then the scalar.
Page 424
To multiply a matrix by a vector, enter the matrix first, then the vector. The number of elements in the vector must equal the number of columns in the matrix. To raise a matrix to You can raise a matrix to any power as long as the power a power is an integer.
To divide the two matrices you created for the previous example, press the following keys: To invert a matrix You can invert a square matrix in Home view by typing the matrix (or its variable name) and pressing . You can also use the INVERSE command in the Matrix category of the Math menu.
Page 426
2. Create the vector of the three constants in the linear system. 3. Return to the Matrix Catalog. The size of M1 should be showing as 3. 4. Select and clear M2, and re-open the Matrix Editor: [Press select M2] 5.
An alternative method is to use the RREF function (see page 422). Matrix functions and commands Functions Functions can be used in any app or in Home view. • They are listed on the Math menu under the Matrix category. They can be used in mathematical expressions—primarily in Home view—as well as in programs.
The argument matrix can refer to either a vector or a • matrix. Matrix functions The matrix functions are available in the Matrix category on the Math menu: Select Matrix > Select a function. Transpose Transposes matrix. For a complex matrix, TRN finds the conjugate transpose.
Page 429
MAKEMAT(√2,2) returns the 2-element vector [√2,√2]. Identity Identity matrix. Creates a square matrix of dimension size × size whose diagonal elements are 1 and off- diagonal elements are zero. IDENMAT(size) Random Returns a list of size n or a n x m matrix that contains random integers in the range −99 through 99 with uniform distribution or that contains random numbers according to the law put between quote.
Page 430
Spectral Norm Spectral Norm of matrix. SPECNORM(matrix) Spectral Radius Spectral Radius of a square matrix. SPECRAD(matrix) Condition Condition Number. Finds the 1-norm (column norm) of a square matrix. COND(matrix) Rank Rank of a rectangular matrix. RANK(matrix) Pivot Performs one step of the Gauss-Jordan reduction method on an n x m matrix A using the element A[nl,nc] (0≤nl≤n and 0≤nc≤m) as pivot, and returns an equivalent matrix with zeros in all elements in column nc except that in row...
Page 431
Cholesky For a numerical symmetric matrix A, returns L matrix such that A=L*tran(L). cholesky(Mtrx) Hermite Hermite normal form of a matrix with coefficients in Z: returns U,B such that U is invertible in Z, B is upper triangular and B=U*A. ihermite(Mtrx(A)) Hessenberg Matrix reduction to Hessenberg form.
SCHUR Schur Decomposition. Factorizes a square matrix into two matrices. If matrix is real, then the result is {[[orthogonal]],[[upper-quasi triangular]]}. If matrix is complex, then the result is {[[unitary]],[[upper-triangular]]}. SCHUR(matrix) Singular Value Decomposition. Factorizes an m × n matrix into two matrices and a vector: {[[m ×...
You can also create an identity matrix using the MAKEMAT (make matrix) function. For example, entering MAKEMAT(I ≠J,4,4) creates a 4 × 4 matrix showing the numeral 1 for all elements except zeros on the diagonal. The logical operator (≠) returns 0 when I (the row number) and J (the column number) are equal, and returns 1 when they are not equal.
Page 434
The reduced row echelon matrix gives the solution to the linear equation in the fourth column. An advantage of using the RREF function is that it will also work with inconsistent matrices resulting from systems of equations which have no solution or infinite solutions.
Notes and Info The HP Prime has two text editors for entering notes: The Note Editor: opens from within the Note Catalog • (which is a collection of notes independent of apps). The Info Editor: opens from the Info view of an app.
Deletes all notes in the catalog. Sends the selected note to another HP Prime or PC. The Note Editor The Note Editor is where you create and edit notes. You can launch the Note Editor from the Notes Catalog, and also from within an app.
Page 437
2. Create a new note. 3. Enter a name for your note. In this example, we’ll call the note MYNOTE. MYNOTE 4. Write your note, using the editing keys and formatting options described in the following sections. When you are finished, exit the Note Editor by pressing...
Page 438
Button or Key Purpose Opens the text formatting menu. See “Formatting Options” on page 434. Provides bold, italic, underline, full caps, superscript and subscript options. See “Formatting Options” on page 434 A toggle button that offers three types of bullet. See “Formatting Options”...
Page 439
Button or Key Purpose (Continued) Menu for entering math commands. (Chars) Displays a palette of special characters. To type one, highlight it and tap press . To copy a character without closing the Chars menu, select it and tap Entering uppercase and lowercase characters The following table below describes how to quickly enter uppercase and lowercase characters.
Page 440
The left side of the notification area of the title bar will indicate what case will be applied to the character you next enter. Text formatting You can enter text in different formats in the Note Editor. Choose a formatting option before you start entering text. The formatting options are described in “Formatting Options”...
Page 441
7. Move the cursor to the location where you want the copied text to be pasted and open the clipboard. 8. Select the text from the clipboard and press Sharing notes You can send a note to another HP Prime. See “Sharing data” on page 40. Notes and Info...
Programming This chapter describes how to program the HP Prime. 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 •...
The Program Catalog The Program Catalog is where you run and debug programs, and send programs to another HP Prime. You can also rename and remove programs, and it is where you start the Program Editor. The Program Editor is where you create and edit programs.
Page 445
Open the Press Program Program) to open the Program Catalog. Catalog The Program Catalog displays a list of program names. The first item in the Program Catalog is a built-in entry that has the same name as the active app. This entry is the app program for the active app, if such a program exists.
Page 446
Delete selected program. deletes all Clear programs. Transmits the highlighted program to another HP Prime or to a PC. Debugs the selectedprogram. Runs the highlighted program. Moves to the beginning or end of the Program Catalog.
HOT STUFF (contains a space) and 2Cool! (starts with number and includes !) are not valid. The Program Editor Until you become familiar with the HP Prime commands, the easiest way to enter commands is to select them from the Catalog menu (...
Page 448
symbols, mathematical functions, units, or characters, use the keyboard keys. Program Editor: The buttons and keys in the Program Editor are: Entering a program buttons and keys Button or Key Meaning Checks the current program for errors. If your programs goes beyond one screen, you can quickly jump from screen to screen by tapping either side of this...
Page 449
Button or Key Meaning (Continued) Opens a menu from which you can select common programming commands. The commands are grouped under the options: Block • Branch • Loop • Variable • Function • Press to return to the main menu. The commands in this menu are described in “Commands under the Tmplt menu”,...
Page 450
Button or Key Meaning (Continued) Deletes the character to the right of the cursor. Deletes the entire program. 1. To continue the MYPROGRAM example (which we began on page 441), use the cursor keys to position the cursor where you want to insert a command.
Page 451
4. Using the cursor keys and keyboard, fill in the missing parts of the command. In this case, make the statement match the following: FOR N FROM 1 TO 3 DO 5. Move the cursor to a blank line below the FOR statement.
Page 452
What you see will differ slightly depending on where you started the program. If you start the program from the Home view, the HP Prime displays the contents of Ans (Home variable containing the last result) when the program has finished. If you start the program from the...
Page 453
BEGIN END; EXPORT NAME2( ) BEGIN END; Now note that when you tap , a list with NAME1 and NAME2 appears. Debug a You cannot run a program that contains syntax errors. If Program the program does not do what you expect it to do, or if there is a run-time error detected by the system, you can execute the program step by step, and look at the values of local variables.
Page 454
(or use the arrow keys to highlight it and press The HP Prime opens the Program Editor. The name of your program appears in the title bar of the display. The buttons and keys you can use to edit your program are listed in “Program Editor: buttons and...
Page 455
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 the process: part of a program 1. Open the Program Catalog. 2. Tap the program that has the code you want to copy. 3.
40. The HP Prime programming language Variables Variables in an HP Prime program can be used to store and visibility numbers, lists, matrices, graphics objects, and strings. The name of a variable must be a sequence of alphanumeric characters (letters and numbers), starting with a letter.
Page 457
RADIUS, the name appears on the variables menu ( and is visible globally. This feature allows for extensive and powerful interactivity among different environments in the HP Prime. Note that if another program exports a variable with the same name, the most recently exported version will be active.
Page 458
RADIUS appears on the USER GETRADIUS section of the Variables menu. Qualifying The HP Prime has many system variables with names that the name of a are apparently the same. For example, the Function app has a variable named Xmin, but so too does the Polar...
Page 459
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.
Page 460
// initialize list of frequencies MAKELIST(0,X,1,2*sides,1) FOR k FROM 1 TO n DO ROLLDIE(sides)+ROLLDIE(sides) roll; L2(roll)+1 L2(roll); END; END; By omitting the EXPORT command when a function is declared, its visibility can be restricted to the program within which it is defined.
EXPORT ROLLMANY(n,sides) BEGIN LOCAL k,roll,results; MAKELIST(0,X,1,2*sides,1) results; FOR k FROM 1 TO n DO ROLLDIE(sides)+ROLLDIE(sides) roll; results(roll)+1 results(roll); END; RETURN results; END; In Home view you would enter ROLLMANY(100,6) and the results of the simulation of 100 rolls of two six- sided dice would be stored in list L5.
Page 462
To activate persistent user mode, press . Notice that U appears in the SWSW title bar. The user keyboard will now remain active until you press again. If you are in user mode and press a key that hasn’t been re-assigned, the key’s standard operation is performed.
Page 463
The table below gives the internal name for each key. Note that key names are case-sensitive. Internal name of keys and key states Name + key + key + key KS_0 KA_0 KSA_0 KS_1 KA_1 KSA_1 KS_2 KA_2 KSA_2 KS_3 KA_2 KSA_2 KS_4...
Page 464
Internal name of keys and key states Name + key + key + key K_Ln KS_Ln KA_Ln KSA_Ln K_Log KS_Log KA_Log KSA_Log K_Minus KS_Minus KA_Minus KSA_Minus K_Neg KS_Neg KA_Neg KSA_Neg K_Num KS_Num KA_Num KSA_Num K_On KS_On KA_On KSA_On K_Plot KS_Plot KA_Plot KSA_Plot K_Plus...
Internal name of keys and key states Name + key + key + key 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.
Page 466
The Views menu allows any app to define views in the Views addition to the standard seven views shown in the table above. By default, each HP app has its own set of menu additional views contained in this menu. The VIEWS command allows you to redefine these views to run programs you have created for an app.
Page 467
It is possible to link more than one app via programs. For example, a program associated with the Function app could execute a command to start the Statistics 1Var app, and a program associated with the Statistics 1Var app could return to the Function app (or launch any other app). Example The following example illustrates the process of creating a custom app.
Page 468
start the app • specify the number of sides (that is, faces) on each • specify number of times to roll the dice • start the app again. • With that in mind, we will create the following views: START, SETSIDES, and SETNUMROLLS. The START option will initialize the app and display a note that gives the user instructions.
Page 469
Xmin; MAX(D1)+1 Xmax; Ymin; MAX(D2)+1 Ymax; STARTVIEW(1,1); END; VIEWS "Set Sides",SETSIDES() BEGIN REPEAT INPUT(SIDES,"Die Sides","N=","ENTER num sides",2); FLOOR(SIDES) SIDES; IF SIDES<2 THEN MSGBOX("Must be >= 2"); END; UNTIL SIDES >=2; END; VIEWS "Set Rolls",SETROLLS() BEGIN REPEAT INPUT(ROLLS,"Num of rolls","N=","Enter numrolls",25);...
The ROLLMANY() routine is an adaptation of the program presented earlier in this chapter. Since you cannot pass parameters to a program called through a selection from a custom Views menu, the exported variables SIDES and ROLLS are used in place of the parameters that were used in the previous versions.
Commands under the Tmplt menu 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. BEGIN END Syntax: BEGIN stmt1;stm2;…stmtN; END; Defines a command or set of commands to be executed together.
IF test1 THEN commands1 END IF test2 THEN commands2 END … [DEFAULT commands] END; Evaluates test1. If true, execute commands1 and end the CASE. Otherwise, evaluate test2. If true, execute commands2. Continue evaluating tests until a true is found. If no true test is found, execute default commands, if provided.
Page 473
Example 1: This program determines which integer from 2 to N has the greatest number of factors. EXPORT MAXFACTORS(N) BEGIN LOCAL cur, max,k,result; max;1 result; FOR k FROM 2 TO N DO SIZE(idivis(k)) cur; IF cur > max THEN max;...
Page 474
FOR Y FROM Ymin TO Ymax STEP yincr DO color := FLOOR(X^2+Y^2) MOD 4; PIXON(X,Y,color); END; END; FREEZE; END; FOR DOWN Syntax: FOR var FROM start DOWNTO finish DO commands 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.
Page 475
sum+d sum; END; END; RETURN sum==n; END; The following program displays all the perfect numbers up to 1000: EXPORT PERFECTNUMS() BEGIN LOCAL k; FOR k FROM 2 TO 1000 DO IF ISPERFECT(k) THEN MSGBOX(k+" is perfect, press OK"); END;...
Transfer execution to the start of the next iteration of a loop. Variable These commands enable you to control the visibility of a user-defined variable. LOCAL Local. Syntax: LOCAL var1,var2,…varn; Makes the variables var1, var2, etc. local to the program in which they are found.
Page 477
Syntax: asc (str) Returns a vector containing the ASCII codes of string str. Example: asc("AB") returns [65,66] CHAR Syntax: char (vector or int) Returns the string corresponding to the character codes in vector, or the single code int. Examples: char(65) returns "A"; char([82,77,72]) returns "RMH"...
Page 478
inString("vanilla","van") returns 1. inString ("banana","na") returns 3 inString("ab","abc") returns 0 LEFT Syntax: left (str,n) Return the first n characters of string str. If n dim str , returns str. If n == 0 returns the empty string. ...
Example: REPLACE("12345",3,”99”) returns "12995" Drawing There are 10 built-in graphics variables in the HP Prime, called G0–G9. G0 is always the current screen graphic. G1 to G9 can be used to store temporary graphic objects (called GROBs for short) when programming applications that use graphics.
Page 480
ARC_P(G, x, y, r [ , a1, a2, c]) Draws an arc or circle on G, centered on point x,y, with radius r and color c starting at angle a1 and ending on angle a2. G can be any of the graphics variables and is optional. The default is G0 r is given in pixels.
Page 481
N O T E Using the same variable for trgtGRB and srcGRB can be unpredictable when the source and destination overlap. DIMGROB_P DIM_GROB Syntax: DIMGROB(G, w, h [ ,c]) or DIMGROB(G [ ,line_1, line_2,…,line_h]) DIMGROB(G, w, h [ ,c]) or DIMGROB(G [ ,line_1, line_2,…,line_h]) Sets the dimensions of GROB G to w*h.
Page 482
GROBW_P GROBW Syntax: GROBW(G) GROBW_P(G) Returns the width of G. G can be any of the graphics variables and is optional. The default is G0. INVERT_P INVERT Syntax: INVERT([G, x1, y1, x2, y2]) INVERT_P([G, x1, y1, x2, y2]) Inverts a rectangle on G between points x1,y1 and x2,y2. This means that every black pixel becomes white and vice- versa.
Page 483
PIXON_P PIXON Syntax: PIXON([G], xposition, yposition [ ,color]) PIXON_P([G], xposition, yposition [ ,color]) Sets the color of the pixel G with coordinates x,y to color. G can be any of the graphics variables and is optional. The default is G0, the current graphic. Color can be 0 to 3 (0=black, 1= dark gray, 2= light gray, 3= white) and is optional.
Page 484
EXPORT BOX() BEGIN RECT(); RECT_P(40,90,0) FREEZE; END; The program below also uses the RECT_P command. In this case, the pair of arguments 0 and 3 correspond to x2 and y2. The program produces the figure below to the right. EXPORT BOX() BEGIN RECT();INVERT(G RECT_P(40,90,0,...
Page 485
TEXTOUT_P(text [ ,G], x, y [ ,font, c1, width, c2]) Draws text using color c1 on graphic G at position x, y using font. Do not draw text more than width pixels wide and erase the background before drawing the text using color c2.
sign*-1 sign; UNTIL 0; END; The program executes until the user presses to terminate. The spaces after K (the number of the term) and A (the current approximation) in the TEXTOUT_P commands are there to overwrite the previously displayed value. Matrix Some matrix commands take as their argument the matrix variable name on which the command is applied.
Page 487
EDITMAT Syntax: EDITMAT(name) Starts the Matrix Editor and displays the specified matrix. If used in programming, returns to the program when user presses . Even though this command returns the matrix that was edited, EDITMAT cannot be used as an argument in other matrix commands.
Swaps row1 and row2 in the specified matrix (name). 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 Views menu. STARTAPP Syntax: STARTAPP("name") Starts the app with name. This will cause the app program’s START function to be run, if it is present.
STARTVIEW(8), the second with STARTVIEW(9), and so on. You can also launch views that are not specific to an app by specifying a value for n that is less than 0: HomeScreen:-1 Home Modes:-2 Memory Manager:-3 Applications Library:-4 Matrix Catalog:-5 List Catalog:-6 Program Catalog:-7 Notes Catalog:-8...
Page 490
BITSR Syntax: BITRL(int1 [,int2]) Bitwise Shift Right. Takes one or two integers as input and returns the result of shifting the bits in the first integer to the right by the number places indicated by the second integer. If there is no second integer, the bits are shifted to the right by one place, Examples: BITSR(112,2) returns 28...
Sets the number of bits to represent integer. Valid values are in the range –64 to 65. If m or bits is omitted, the default value is used. Example: SETBITS(#1111,b15) returns #1111b:15 SETBASE Syntax: SETBASE(#integer[m][c]) Displays integer expressed in base m in whatever base is indicated by c, where can be 1 (for binary), 2 (for octal), or 3 (for hexadecimal).
Page 492
Gauss");ELSE PRINT("You picked Newton"); END; END; After execution of CHOOSE, the value of n will be updated to contain 0, 1, 2, or 3. The IF THEN ELSE command causes the name of the selected person to be printed to the terminal.
Page 493
Keys 0–13 Keys 14–19 Keys 20–25 Keys 26–30 Keys 31–35 Keys 36–40 Keys 41–45 Keys 46–50 Figure 26-1: Numbers of the keys INPUT Syntax: INPUT(var [,"title", "label", "help", default]); Opens a dialog box with the title text title, with one field named label, displaying help at the bottom and using the default value.
Page 494
Returns true (non-zero) if the key whose key_id is provided is currently pressed, and false (0) if it is not. MOUSE Syntax: MOUSE[(index)] Returns two lists describing the current location of each potential pointer (or empty lists if the pointers are not used).
The terminal is a program text output viewing mechanism which is displayed only when PRINT commands are executed. When visible, you can press to view the text, to erase the text and any other key to hide the terminal. Pressing stops the interaction with the terminal.
Page 496
The percentage change in going from x to y. Example: %CHANGE(20,50) returns 150. %TOTAL Syntax: %TOTAL(x,y) The percentage of x that is y. Example: %TOTAL(20,50) returns 250. Syntax: CAS(Exp.) or CAS.function(...) or CAS.variable[(...)] Evaluates the expression or variable using the CAS. EVALLIST Syntax: EVALLIST({list}) Evaluates the content of each element in a list and returns...
Page 497
In the example above, &1 indicates an element in the first list and &2 indicates the corresponding element in the second list. The plus operator between them adds the two elements until there are no more pairs. Note that numbers appended to &...
Variables and Programs The HP Prime has four types of variables: Home variables, App variables, CAS variables, and User variables. You can retrieve these variables from the Variable menu ( Home variables are used for real numbers, complex numbers, graphics, lists, and matrices among other things.
Page 499
menus in which they appears on the Variables menu see “App variables”, beginning on page 378. Plot view variables Axes Turns axes on or off. In Plot Setup view, check (or uncheck) AXES. In a program, type: Axes—to turn axes on. ...
Page 500
Hmin Hmax where Hwidth Sets the width of histogram bars. Statistics 1Var In Plot Setup View for one-variable statistics, set a value for Hwidth. In a program, type: Hwidth Labels Draws labels in Plot View showing X and Y ranges. In Plot Setup View, check (or uncheck) Labels.
Page 501
Recenter— to turn recenter on (default). Recenter— to turn recenter off. S1mark-S5mark Sets the mark to use for scatter plots. Statistics 2Var In Plot Setup view for two-variable statistics, select one of S1mark-S5marks. In a program, type: ????? SeqPlot Enables you to choose between a Stairstep or a Cobweb Sequence...
Page 502
where Tstep Sets the step size for the independent variable. Parametric In Plot Setup View, enter a value for TSTEP. In a program, type Tstep where Xtick Sets the distance between tick marks for the horizontal axis. In Plot Setup View, enter a value for Xtick.
Page 503
In Plot View, press then . Scroll to Set Factors,select it and press . Enter the value for X Zoom In a program, type: Xzoom where The default value is 4. Yzoom From Plot setup ( ), press then .
Page 504
H1...H5 Contains the data values for a 1-variable statistical Statistics 1Var analysis. For example, H1(n) returns the nth value in the data set for the H1 analysis. H1Type...H5Type Sets the type of plot used to graphically represent the Statistics 1Var statistical analyses H1 through H5.
Page 505
S1Type...S5Type Sets the type of fit to be used by the FIT operation in Statistics 2Var drawing the regression line. From Symbolic Setup view, specify the fit in the field for Type1,Type2, etc. In a program, store one of the following constant integers or names into a variable S1Type,S2Type, etc.
Page 506
0 Z-Int:1 1 Z-Int: – 2 Z-Int:1 3 Z-Int: – 4 T-Int:1 5 T-Int: – X0, Y0...X9,Y9 Can contain any expression. Independent variable is T. Parametric Example: SIN(4*T) Y1;2*SIN(6*T) U0...U9 Can contain any expression.
Page 507
NumIndep Specifies the list of independent values to be used by Function Build Your Own Table. Enter your values one-by-one Parametric in the Numeric view. Polar In a program, type: Sequence LIST NumIndep List can be either a list itself or the name of a list. NumStart Sets the starting value for a table in Numeric view.
Page 508
In a program, type: Alpha where 0 n 1 Conf Sets the confidence level for the confidence interval. From the Numeric view, set the value of Conf. In a program, type: Conf where 0 n 1 Mean1 Sets the value of the mean of a sample for a 1-mean hypothesis test or confidence interval.
Page 509
For a test or interval involving the difference of two means or two proportions, sets the size of the second sample. From the Numeric view, set the value of n2. In a program, type: 0 Sets the assumed proportion of successes for the One- proportion Z-test.
Page 510
the difference of two means or two proportions, sets the population standard deviation of the first sample. From the Numeric view, set the value of In a program, type: For a test or interval involving the difference of two means 2 or two proportions, sets the population standard deviation of the second sample.
Page 511
Determines whether interest is compounded at the beginning or end of the compounding period. From the Numeric view of the Finance app. Check or uncheck END. In a program, type: END—for compounding at the end of the period (Default) END—for compounding at the beginning of the ...
Page 512
PPYR Payments per year. Sets the number of payments made per year for a cash flow calculation. From the Numeric view of the Finance app, enter a value for P/YR. In a program, type: PPYR where Present value. Sets the present value of an investment. From the Numeric view of the Finance app, enter a value for PV.
Page 513
Triangle The following variables are used by the Triangle Solver Solver app app. They correspond to the fields in the app's Numeric view. variables 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.
Page 514
In a program, type: AngleB where AngleC The measure of angle . Sets the measure of angle . The value of this variable will be interpreted according to the angle mode setting (Degrees or Radians). From the Triangle Solver Numeric view, enter a positive value for angle ...
Page 515
HFormat Sets the number display format used in the Home view. From the Modes view, 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...
Page 516
Entry—for Algebraic Entry—for RPN Integer Base Returns or sets the integer base. In a program, enter: Base—for Binary Base—for Octal Base—for Decimal Base—for Hexadecimal Bits Returns or sets the number of bits for representing integers. In a program, enter: Bits where n is the number of bits.
AComplex—for System (default). AComplex—for ON. AComplex—for OFF. ADigits Defines the number of decimal places to use for the Fixed number format in the app’s Symbolic Setup. Affects results in the Home view. From Symbolic setup, enter a value in the second field of Number Format.
Page 518
The results variables are listed with the apps that generate them. See “App variables” on page 378. Programming...
Integer arithmetic The common number base used in contemporary mathematics is base 10. By default, all calculations performed by the HP Prime are carried out in base 10, and all results are displayed in base However, the HP Prime enables...
#1 101 1 without the b suffix. But if you wanted to enter E4 , you need to enter it with the suffix: #E4h. (The HP Prime adds any omitted base markers when the calculation is displayed in history.) Integer arithmetic...
Note that if you change the default base, any calculation in history that involves integer arithmetic for which you did not explicitly add a base marker will be resisplayed in the new base. In the example at the right, the first calculation explicitly included base markers (b for each operand).
Examples of integer arithmetic The operands in integer arithmetic can be of the same base or of mixed bases. Integer calculation Decimal equivalent #10000b+#10100b = 8 + 20 = 28 #1 100b #71o–#10100b = 57 – 20 = 37 #45o #4Dh * #1 1 101b = #8B9h 77 ×...
converted to base 10). [This seems odd. If everything is converted to base 10, why is there an integer-base setting in the CAS settings? And why is binary missing as an option in the CAS settings?] Integer manipulation The result of integer arithmetic can be further analysed, and manipulated, by viewing it in the Edit Integer dialog.
: cycles through the bases; same as pressing : toggles the wordsize between signed and unsigned : returns the one’s complement (that is, each bit in the specified wordsize is inverted: a 0 is replaced by 1 and a 1 by 0.
Limiting functionality Certain functions of the calculator can be disabled for a set period, with the disabling controlled by a password. This feature will primarily be of interest to teachers, proctors, and invigilators who want to ensure that the calculator is used appropriately by students sitting an examination.
A configuration named Default Exam appears when you first access the Exam Mode screen. This configuration has no functions disabled. If only one configuration is needed, you can simply modify the default exam configuration. If you envisage the need for a number of configurations—different ones for different examinations, for example—modify the default configuration so that it matches the settings you will most...
An expand box at the left of a function indicates that there are sub-functions that you can individually disable. (Notice that there is an expand box beside System Apps in the example shown above.) Tap on the expand box to see the sub-functions. You can then select the sub-functions individually.
2. Tap 3. Tap Exam Mode screen appears. 4. Choose a base configuration from Configuration list. If you have not created any exam mode configurations before, the only base configuration will be Default Exam. 5. Tap , select Copy from the menu and enter a name for the new configuration.
Page 529
1. tIf the Exam Mode screen is not showing, press , tap 2. If a configuration other than Default Exam is required, choose it from the Configuration list. 3. Select a time-out period from the list. Timeout Note that 8 hours is the maximum period. If you are preparing to supervise a student examination, make sure that the time-out period chosen is greater than the duration of the examination.
9. Repeat from step 7 for each calculator that needs to have its functionality limited. Cancelling exam mode If you want to cancel exam mode before the set time period has elapsed, you will need to enter the password for the current exam mode activation. 1.
Page 531
3. Tap and choose Delete. 4. When asked to confirm the deletion, tap press Limiting functionality...
Page 533
Appendix A Glossary A small application, designed for the study of one or more related topics or to solve problems of a particular type. The built-in apps are Geometry, Function, Solve, Statistics 1Var, Statistics 2Var, Inference, Parametric, Polar, Sequence, Finance, Linear Solver, Triangle Solver, Linear Explorer, Quadratic Explorer, Trig Explorer, Spreadsheet, Advanced...
Page 534
command An operation for use in programs. Commands can store results in variables, but do not display results. expression A number, variable, or algebraic expression (numbers plus functions) that produces a value. function An operation, possibly with arguments, that returns a result. It does not store results in variables.
Page 535
menu A choice of options given in the display. It can appear as a list or as a set of touch buttons across the bottom of the display. note Text that you write in the Note Editor. It can be a general, standalone note or a note specific to an app.
2. Release all keys in the reverse order. If the calculator does not turn on If the HP Prime does not turn on, follow the steps below until the calculator turns on. You may find that the calculator turns on before you have completed the procedure.
Press and hold simultaneously, then release , then release Press and hold ,and simultaneously. Release , then release , and then release Remove the batteries, press and hold for 10 seconds, then put the batteries back in and press Operating limits Operating temperature: 0...
Page 539
Message Meaning (Continued) Invalid Dimension Array argument had wrong dimensions. Invalid Statistics Need two columns with equal Data numbers of data values. Invalid Syntax The function or command you entered does not include the proper arguments or order of arguments. The delimiters (parentheses, commas, periods, and semi-colons) must also be correct.
Appendix C Product Regulatory Information Federal Communications Commission Notice This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to Part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference in a residential installation.
Page 542
For questions regarding this FCC declaration, write to: Hewlett-Packard Company P.O. Box 692000, Mail Stop 510101 Houston, TX 77269- 2000 or call HP at 281-514-3333 To identify your product, refer to the part, series, or model number located on the product.
European standards (European Norms) that are listed in the EU Declaration of Confor- mity issued by HP for this product or product family and available (in English only) either within the product docu- mentation or at the following web site: www.hp.eu/cer- tificates (type the product number in the search field).
Japanese Notice Korean Class Notice Disposal of Waste Equipment by Users This symbol on the product or on its in Private packaging indicates that this product must not be disposed of with your other Household in the household waste. Instead, it is your European Union responsibility to dispose of your waste equipment by handing it over to a...
Page 545
Chemical HP is committed to providing our customers with informa- Substances tion about the chemical substances in our products as needed to comply with legal requirements such as REACH (Regulation EC No 1907/2006 of the European Parliament and the Council). A chemical information report for this product can be found at: http://www.hp.com/go/reach...
Explorer Finance backspace Function bad argument functions bar plot 79, 471 HP Apps battery indicator Inference block commands library Boolean operators Linear Solver box-and-whisker plot open branch commands Parametric butons Polar menu...
Page 548
correlation coefficient covariance calculus functions critical value(s) displayed CAS variables catalog data set definition clearing DataStreamer an app debugging programs characters decimal display changing format clone default value, returning to memory define your own fit cobweb graph defining functions coefficient of determination definite integral command button definition of...
Page 549
DMS format syntax 414–421 drawing commands Function app Function app functions Function app variables editing results lists summary matrices functions notes programs area editors creating your own Eigen values definition of Eigen vectors intersection point element Math menu storing slope engineering number format tracing entry methods...
Page 550
settings dimension 371, 483 variables statistics data variables categories syntax Home variables inverse hyperbolic trig list of 99, 111 horizontal zoom 56–??, 56–??, hyperbolic trig keyboard 57–??, 312–313 customizing hypothesis editing keys alternative hypothesis entry keys tests inactive keys list I/O commands catalog keys implied multiplication...
Page 551
loop functions lowercase characters dot product 354–359 functions inverting mantissa matrix calculations Math functions multiplying and dividing by calculus scalar complex number multiplying by vector distribution 308–312 negating elements hyperbolic trig raised to a power list sending or receiving logical operators singular value decomposition loop Math menu summary...
Page 552
exploring the graph parametric app variables name conflict parentheses natural exponential 56, 300, 313 to close arguments natural log plus 1 to specify order of operation natural logarithm navigation pareto plot negation permutations negative numbers 331, 509 physical constants no equations checked pinch normal probability plot plot...
Page 553
reset app summary 81, 82 resetting sort apps split-screen calculator Spreadsheet app variables memory summary result square root copying to edit line stack reusing stairsteps graph reverse polish notation, See RPN standard number format statistical data root two variable Statistics 1Var 29, 31, 41 data set definition 146, 158...
Page 554
summary name storing result a value in Home view uppercase characters list element Upper-Tail Chi-Square probability matrix elements subtract Upper-Tail Normal Probability syntax of functions Upper-Tail Snedecor’s F probabil- tangent Upper-Tail Student’s t-probability template key templates user defined textbok entry regression fit variables time...
Page 555
views definition of warning symbol Where command (|) 180–183 Z-Intervals zoom examples of Index...
Comments to this Manuals
Latest comments: