Page 1
49g+/ hp 48gII graphing calculator advanced user's reference manual Edition 1 HP part number F2228-90010 Printed Date: 2005/9/17...
Page 3
Notice REGISTER YOUR PRODUCT AT: www.register.hp.com 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.
Contents Contents... 1 1. RPL Programming... 1-1 Understanding Programming ...1-1 The Contents of a Program ... 1-1 Calculations in a Program ... 1-2 Entering and Executing Programs...1-3 Viewing and Editing Programs ...1-6 Creating Programs on a Computer ...1-7 Using Local Variables...1-7 Creating Local Variables...
Page 6
FIB1 (Fibonacci Numbers, Recursive Version)... 2-1 FIB2 (Fibonacci Numbers, Loop Version) ... 2-2 FIBT (Comparing Program-Execution Time)... 2-3 Displaying a Binary Integer ... 2-5 PAD (Pad with Leading Spaces) ... 2-5 PRESERVE (Save and Restore Previous Status) ... 2-6 BDISP (Binary Display) ... 2-7 Median of Statistics Data ...
Page 7
ASINH...3-14 ASN ...3-14 ASR ...3-15 ASSUME...3-16 ATAN ...3-16 ATAN2S ...3-17 ATANH ...3-17 ATICK ...3-18 ATTACH...3-18 AUGMENT...3-19 AUTO...3-19 AXES ...3-20 AXL ...3-20 AXM ...3-20 AXQ ...3-20 BAR ...3-20 BARPLOT ...3-21 BASIS ...3-22 BAUD...3-22 BEEP ...3-22 BESTFIT ...3-22 BIN ...3-22 BINS ...3-23 BLANK...3-23 BOX ...3-23 BUFLEN ...3-24...
If you've used a calculator or computer before, you're probably familiar with the idea of programs. Generally speaking, a program is something that gets the calculator or computer to do certain tasks for you -- more than a built-in command might do. In the hp49g+/hp48gII , a program is an object that does the same thing.
Program « 1 2 » « "Hello" {A B}» « '1+2' » « '1+2' NUM» « « 1 2 + » » « « 1 2 + » EVAL » Programs can also contain structures. A structure is a program segment with a defined organization. Two basic kinds of structure are available: Local variable structure.
Entering and Executing Programs A program is an object – it occupies one level on the stack, and you can store it in a variable. To enter a program: 1. Press @%.The PRG annunciator appears, indicating program-entry mode is active. 2.
Page 30
To stop an executing program: Press −. Example: Enter a program that takes a radius value from the stack and calculates the volume of a sphere of radius r using If you were going to calculate the volume manually after entering the radius on the stack, you might press these keys: 3Q!ì*4`3/*@ï...
Page 31
Example: Enter a program SPH that calculates the volume of a spherical cap of height h within a sphere of radius R using values stored in variables H and R. In this and following chapters on programming, “stack diagrams” show what arguments must be on the stack before a program is executed and what results the program leaves on the stack.
This is the program: « '1/3*œ*H^2*(3*R-H)' NUM » Now use SPH to calculate the volume of a spherical cap of radius r = 10 and height h = 3. First, store the data in the appropriate variables. Then select the VAR menu and execute the program. The answer is returned to level 1 of the stack.
@%SPH% ˜ Press − to stop viewing. Creating Programs on a Computer It is convenient to create programs and other objects on a computer and then load them into the hp49g+/hp48gII. If you are creating programs on a computer, you can include “comments” in the computer version of the program.
then a creates local variable a = 20. ab creates local variables a = 6 and b = 20. abc crates local variables a = 10, b = 6, and c = 20. The defining procedure then uses the local variables to do calculations. Local variable structures have these advantages: The "...
When a local name is evaluated, the object stored in the corresponding variable is returned to the stack but is not evaluated.When a local variable contains a number, the effect is identical to evaluation of a global name, since putting a number on the stack is equivalent to evaluating it. However, if a local variable contains a program, algebraic expression, or global variable name —...
Compiled local variables bridge the gap between these two variable types. To programs, compiled local variables look like global variables, but to the calculator they act like local variables. This means you can create a compiled local variable in a local variable structure, use it in any other program that is called within that structure, and when the program finishes, the variable is gone.
If a program begins with a local variable structure and has a program as the defining procedure, the complete program acts like a user-defined function in two ways: it takes numeric or symbolic arguments, and takes those arguments either from the stack or in algebraic syntax. However, it does not have a derivative. (The defining program must, like algebraic defining procedures, return only one result to the stack.) There's an advantage to using a program as the defining procedure for a local variable structure: The program can contain commands not allowed in algebraic expressions.
Page 38
The comparison commands return 1. (true) or 0. (false) based on the comparison — or an expression that can evaluate to 1. or 0.. The order of the comparison is “level 2 test level 1,” where test is the comparison function. All comparison commands except SAME return the following: If neither object is an algebraic or a name, returns 1.
You can use NOT as a prefix function in algebraics. For example, 'NOT Z‰4' NUM returns 0. if Z =2. Testing Object Types The TYPE command (!°%TEST% L %TYPE%) takes any object as its argument and returns the number that identifies that object type. For example, "HELLO" TYPE returns 2, the value for a string object. See the table of object types in chapter 3, in the TYPE command, to find hp49g+/hp48gII objects and their corresponding type numbers.
Page 40
The IF … THEN … ELSE … END Structure The syntax for this structure is « … IF test-clause THEN true-clause ELSE false-clause END … » IF … THEN … ELSE … END executes either the true-clause sequence of commands if the true-clause is true, or the false-clause sequence of commands if the true-clause is false.
Page 41
To enter CASE … END in a program: 1. Press !°%BRCH% !%CASE% to enter CASE … THEN …END…END 2. For each additional test-clause, move the cursor after a test-clause END and press @%CASE% to enter THEN … END. Conditional Examples These examples illustrate conditional structures in programs.
Page 42
« x 'IFTE(x‹0,SIN(x)/x,1)' » Example: Two Conditional Actions. This program multiplies two numbers together if they're both nonzero — otherwise, it returns the string “ZERO”. Program: « n1 n2 « 'n1‹0 AND n2‹0' THEN n1 n2 * ELSE "ZERO"...
Program: « y « CASE y TYPE 2 SAME THEN y 'STR' STO y TYPE 5 SAME THEN y 'LIST' STO y TYPE 8 SAME THEN y 'PROG' STO » » Using Loop Structures You can use loop structures to execute a part of a program repeatedly. To specify in advance how many times to repeat the loop, use a definite loop.
Page 44
loop-clause START takes two numbers (start and finish) from the stack and stores them as the starting and ending values for a loop counter. Then, the loop-clause is executed. NEXT increments the counter by 1 and tests to see if its value is less than or equal to finish.
Page 45
loop-clause increment START takes two numbers (start and finish) from the stack and stores them as the starting and ending values of the loop counter. Then the loop-clause is executed. STEP takes the increment value from the stack and increments the counter by that value. If the argument of STEP is an algebraic or a name, it's automatically evaluated to a number.
Page 46
loop-clause FOR takes start and finish from the stack as the beginning and ending values for the loop counter, then creates the local variable counter as a loop counter. Then the loop-clause is executed — counter can appear within the loop-clause.
loop-clause increment FOR takes start and finish from the stack as the beginning and ending values for the loop counter, then creates the local variable counter as a loop counter. Next, the loop-clause is executed — counter can appear within the loop-clause.
Page 48
« … DO loop-clause UNTIL test-clause END … » DO… UNTIL… END executes the loop-clause sequence repeatedly until test-clause returns a true (nonzero) result. Because the test-clause is executed after the loop-clause, the loop-clause is always executed at least once. loop-clause test-clause DO starts execution of the loop-clause.
Page 49
Program: « 'c' INCR n * 's' STO+ UNTIL s 1000 > » » The WHILE … REPEAT … END Structure The syntax for this structure is « … WHILE test-clause REPEAT loop-clause END … » WHILE … REPEAT … END repeatedly evaluates test-clause and executes the loop-clause sequence if the test is true.
To enter WHILE … REPEAT … END in a program: Press !°%BRCH% ! %WHILE%. Example: The following program starts with a number on the stack, and repeatedly performs a division by 2 as long as the result is evenly divisible. For example, starting with the number 24, the program computes 12, then 6, then 3.
Using Flags You can use flags to control calculator behavior and program execution. You can think of a flag as a switch that is either on (set) or off (clear). You can test a flag's state within a conditional or loop structure to make a function instead of loops.
Because certain flags have unique meanings for the calculator, flag tests expand a program's decision- making capabilities beyond that available with comparison and logical functions. Types of Flags The hp49g+/hp48gII has two types of flags: System flags. Flags 1 through User flags.
Example: Program: « -42 FC? THEN 6.152007 ELSE 15.062007 17.05 "TEST COMPLETE" 3 LIST STOALARM » Example: User Flag. The following program returns either the fractional or integer part of the number in level 1, depending on the state of user flag 10. Program: «...
To change the current flag states: 1. Enter the flag-state argument- see below 2. Execute STOF (!°L %MODES% %FLAG% L%STOF% ). STOF sets the current states of flags based on the flag-state argument: Changes the states of only the system flags. { #n s-lower u-lower...
Here is a stack diagram and program listing for TORSV. Level 2 Program: « a b « a b TORSA b a - * 4 / » » O TORSV K Now use TORSV to calculate the volume of a torus of inner radius a = 6 and outer radius b = 8. 6 ` 8 J %TORSV% Single-Stepping through a Program It's easier to understand how a program works if you execute it step by step, observing the effect of each step.
Page 56
Example: Execute program TORSV step by step. Use a = 6 and b = 8. Select the VAR menu and enter the data. Enter the program name and start the debugging. HLT indicates program execution is suspended. @· J6 `8 `O%TORSV% !°LL%RUN% %DBUG% Display and execute the first program step.
Page 57
@·J 10 `12 O%TORSV% !°LL%RUN% %DBUG% %SST°% (4 times) %NEXT% The next step is TORSA. Single-step into TORSA, then check that you're at the first step of TORSA. %SST°% %NEXT% Press != != to complete subroutine and program execution. The following table summarizes the operations for single-stepping through a program.
Trapping Errors If you attempt an invalid operation from the keyboard, the operation is not executed and an error message appears. For example, if you execute + with a vector and a real number on the stack, the hp49g+/hp48gII returns the message + Error: Bad Argument Type and returns the arguments to the stack (if Last Arguments is enabled).
Description Causes an error. For a string in level 1, causes a user-defined error: the calculator behaves just as if an ordinary error has occurred. For a binary integer or real number in level 1, causes the corresponding built-in error.
Page 60
Program: « IFERR WHILE REPEAT …+ THEN "DONE" 1 DISP 1 FREEZE » The IFERR … THEN … ELSE … END Structure The syntax for this structure is « … IFERR trap-clause THEN error-clause ELSE normal-clause END … » The commands in the error-clause are executed only if an error is generated during execution of the trap-clause. If an error occurs in the trap-clause, the error is ignored, the remainder of the trap-clause is skipped, and program execution jumps to the error-clause.
PROMPT takes a string argument from level 1, displays the string (without the ""delimiters) in the status area, and halts program execution. Calculator control is returned to the keyboard. When execution resumes, the input is left on the stack as entered.
Page 62
1-36 RPL Programming Comments: Puts the prompting string on the stack. Displays the string in the status area, halts program execution, and returns calculator control to the keyboard. Executes TORSA using the just-entered stack arguments. Stores the program in TPROMPT.
""delimiters. The display created by DISP persists only as long as the program continues execution — if the program ends or is suspended by HALT, the calculator returns to the normal stack environment and updates the display. However, you can use FREEZE to retain the prompt display.
Using INPUT … ENTER for Input INPUT lets you use the stack area for prompting, lets you supply default input, and prevents the user from using normal stack operations or altering data on the stack. To enter INPUT in a program: 1.
Page 65
Program: « "Key in radius" "" INPUT OBJ 4 * 3 / ‡ * NUM » `OVSPH ‰ Example: Execute VSPH to calculate the volume of a sphere of radius 2.5. J %VSPH% Key in the radius and continue program execution..2.5 ` To include INPUT options: Use a list (with {} delimiters) as the command-line argument for INPUT.
Page 66
{"command-line" cursor-position operating-options } Specifies the content of the command line when the program pauses. Embedded “Command- newline characters produce multiple lines in the display. (If not included, the line” command line is blank.) Specifies the position of the cursor in the command line and its type. (If not included, Cursor- an insert cursor is at the end of the command line.) position...
Page 67
Example: The command-line string "@UPPER LIMIT@" displays @UPPER LIMIT@ command line. If you press 200 `the return string is "@UPPER LIMIT@200". When OBJ" extracts the text from the string, it strips away the @ characters and the enclosed characters, and it returns the number 200. (See "Creating Programs on a computer"...
10 ˜20 Continue program execution. Example: The following program executes INPUT to prompt for a social security number, then extracts two strings: the first three digits and last four digits. The level 1 argument for INPUT specifies: A command-line string with dashes. The replace cursor positioned at the start of the prompt string ( –1).
Page 69
To set up an input form: 1. Enter a title string for the input for the input form (use @Õ). 2. Enter a list of field specifications. 3. Enter a list of format options. 4. Enter a list of reset values (values that appear when RESET is pressed). 5.
Page 70
Program: « 'NAMES' VTYPE IF -1 == THEN{ } 'NAMES' STO WHILE "PHONELIST OPTIONS:" { "ADD A NAME" 1} { "VIEW A NUMBER" 2 } } 1 CHOOSE REPEAT c « CASE c 1 == THEN "ADD A NAME" {"NAME:"...
Program: ELSE WHILE "VIEW A NUMBER" NAMES 1 CHOOSE REPEAT STR MSGBOX » » `OPHONES ‰ You can delete names and numbers by editing the NAMES variable. To improve upon this program, create a delete name routine. Beeping to Get Attention To enter BEEP in a program: 1.
Stopping a Program for Keystroke Input A program can stop for keystroke input — it can wait for the user to press a key. You can do this with the WAIT and KEY commands. Using WAIT for Keystroke Input The WAIT command normally suspends execution for a specified number of seconds. However, you can specify that it wait indefinitely until a key is pressed.
Data Output Commands Command !°L%OUT%: PVIEW %PVIEW% TEXT %TEXT% CLLCD %CLLCD% DISP %DISP% FREEZE %FREEZ% MSGBOX %MSGBO% BEEP %BEEP% Labeling Output with Tags To label a result with a tag: 1. Put the output object on the stack. 2. Enter a tag — a string, a quoted name, or a number. 3.
Labeling and Displaying Output as Strings To label and display a result as a string: 1. Put the output object on the stack. 2. Enter the "STR command (PRG TYPE menu). 3. Enter a string to label the object (with "" delimiters). 4.
Using MSGBOX to Display Output To set up a message box: 1. Enter a message string. 2. Execute the MSGBOX command. Enter the string "HELLO, WORLD" `. Example: Execute MSGBOX (!°L %OUT% %MSGBO%). The following message appears: You must acknowledge a message box by pressing %OK% or −. Using Menus with Programs You can use menus with programs for different purposes: Menu-based input.
To specify a particular page of a menu, enter the number as m.pp, where m is the menu number and pp is the page number (such as 94.02 for page 2 of the TIME menu). If page pp doesn't exist, page 1 is displayed (94 gives page 1 of the TIME menu).
Page 77
The program uses the equation E = IZ, where E is the voltage, I is the current, and Z is the impedance. Because the voltage, current, and impedance are complex numbers, you can't use the HP Solve application to find solutions. The custom menu in EIZ assigns a direct solution to the left-shifted menu key for each variable, and assigns store and recall functions to the unshifted and right-shifted keys —...
Press (!H)%FMT% %STD% and L %MODES %ANGLE %RECT% to restore Standard and Rectangular modes. Turning Off the hp49g+/hp48gII from a Program To turn off the calculator in a program: Execute the OFF command (PRG RUN menu). The OFF command turns off the hp49g+/hp48gII . If a program executes OFF, the program resumes when the calculator is next turned on.
The examples in this chapter assume the hp49g+/hp48gII is in its initial, default condition – they assume you haven't changed any of the hp49g+/hp48gII operating modes. (To reset the calculator to this condition, see “Memory Reset” in chapter 5 of the hp49g+/hp48gII User's Guide.) Each program listing in this chapter gives the following information: A brief description of the program.
Techniques used in FIB1 IFTE (if -then-else function). The defining procedure for FIB1 contains the conditional function IFTE, which can take its argument either from the stack or in algebraic syntax. Recursion. The defining procedure for FIB1 is written in terms of FIB1, just as F and F FIB1 program listing Program:...
FIB2 program listing Program: « n « IF n 1 ‰ THEN n ELSE START NEXT SWAP DROP » » `O FIB2 K Checksum: # 23902d (press O%FIB2% !°#MEM# %BYTES%) Bytes: Example: Calculate F and F Calculate F 6 %FIB2% Calculate F 10 %FIB2% FIBT (Comparing Program-Execution Time)
Page 82
Techniques used in FIBT Structured programming. FIBT calls both FIB1 and FIB2. Programmatic use of calculator clock. FIBT executes the TICKS command to record the start and finish of each subprogram. Labeling output. FIBT tags each execution time with a descriptive message.
This section contains three programs: PAD is a utility program that converts an object to a string for right-justified display. PRESERVE is a utility program for use in programs that change the calculator's status (angle mode, binary base, and so on).
Preserving calculator flag status. PRESERVE uses RCLF (recall flags) to record the current status of the calculator in a binary integer, and STOF (store flags) to restore the status from that binary integer. Local-variable structure. PRESERVE creates a local variable structure to briefly remove the binary integer from the stack.
PRESERVE program listing Program: « RCLF f « IFERR EVAL THEN f STOF ERRN DOERR f STOF » » `OPRESERVE K Checksum: # 26834d Bytes: PRESERVE is demonstrated in the program BDISP. BDISP (Binary Display) BDISP displays a real or binary number in HEX, DEC, OCT, and BIN bases. Level 1 Comments: Recalls the list of four 64-bit...
Page 86
Techniques used in BDISP IFERR…THEN…END (error trap). To accommodate real-number arguments, BDISP includes the command R"B (real-to-binary). However, this command causes an error if the argument is already a binary integer. To maintain execution if an error occurs, the R"B command is placed inside an IFERR clause. No action is required when an error occurs (since a binary number is an acceptable argument), so the THEN clause contains no commands.
Page 87
BDISP program listing Program: « « -55 CF IFERR RB THEN n « CLLCD « BIN » « OCT » « DEC » « HEX » FOR j EVAL n STR j DISP NEXT » 3 FREEZE » PRESERVE »...
Return to the normal stack display and check the current base. − ‚ã Although the main nested program left the calculator in BIN base, PRESERVE restored DEC base. To check that BDISP also works for real numbers, try 144. 144 %BDISP% Press −...
Techniques used in %TILE FLOOR and CEIL. For an integer, FLOOR and CEIL both return that integer; for a noninteger, FLOOR and CEIL return successive integers that bracket the noninteger. SORT. The SORT command sorts the list elements into ascending order. %TILE program listing (Note: Use Approximate mode for this program and example) Program: «...
Page 90
Techniques used in MEDIAN Arrays, lists, and stack elements. MEDIAN extracts a column of data from DAT in vector form. To convert the vector to a list, MEDIAN puts the vector elements on the stack and combines them into a list. From this list the median is calculated using %TILE.
Page 91
Program: OBJ DROP n LIST 50 %TILE j ROLLD NEXT m ARRY s STO… » » `OMEDIAN K Checksum: # 50773d Bytes: Example: Calculate the median of the following data. 18 12 11 1 31 48 20 17 There are two columns of data, so MEDIAN will return a two-element vector. Enter the matrix.
Expanding and Collecting Completely This section contains two programs: MULTI repeats a program until the program has no effect on its argument. EXCO calls MULTI to completely expand and collect an algebraic. MULTI (Multiple Execution) Given an object and a program that acts on the object, MULTI applies the program to the object repeatedly until the program no longer changes the object.
MULTI is demonstrated in the next programming example. EXCO (Expand and Collect Completely) EXCO repeatedly executes EXPAN on an algebraic until the algebraic doesn't change, then repeatedly executes COLCT until the algebraic doesn't change. In some cases the result will be a number. Expressions with many products of sums or with powers can take many iterations of EXPAN to expand completely, resulting in a long execution time for EXCO.
Enter the expression. O3 * X * !Ü4 *Y+Z ™+ ! Ü 8 *X -5 *Z ™Q2 Select the VAR menu and start the program. J %EXCO% Minimum and Maximum Array Elements This section contains two programs that find the minimum or maximum element of an array: MNX uses a DO…UNTIL…END (indefinite) loop.
Page 95
MNX program listing Program: « {{ "MAX" « 10 SF CONT » } { "MIN" « 10 CF CONT » }} TMENU "Sort for MAX or MIN?" PROMPT 1 GETI ROT ROT GETI 4 ROLL DUP2 > 10 FS? XOR THEN SWAP DROP...
!² 12 `56 `˜šš 45 `1 ` 9 `14 ` Select the VAR menu and execute MNX. J %MNX% Find the maximum element. %MAX% MNX2 (Minimum or Maximum Element- Version 2) Given an array on the stack, MNX2 finds the minimum or maximum element in the array. MNX2 uses a different approach than MNX: it executes OBJ"...
Page 97
MNX2 program listing Program: « {{ "MAX" « 10 SF CONT » } { "MIN" « 10 CF CONT » }} TMENU "Sort for MAX or MIN?" PROMPT DUP OBJ SWAP OBJ DROP * 1 - FOR n DUP2 > 10 FS? XOR THEN SWAP DROP...
!² 12 `56 `˜šš 45 `1 ` 9 `14 ` Select the VAR menu and execute MNX2. J %MNX2% Find the minimum element. %MIN% Applying a Program to an Array APLY makes use of list processing to transform each element of an array according to a desired procedure. The input array must be numeric, but the output array may be symbolic.
Page 99
Program: 1 CF a DUP SIZE DUP SIZE IF 1 == THEN 1 SF 1 + SWAP OBJ OBJ DROP 1 + ROLL ELSE DROP2 a OBJ END DUP OBJ DROP * Duplicate the dimension list and compute the total SWAP OVER 2 + ROLLD LIST 1 p DOSUBS...
Program: 'm*(n-i)+i' EVAL ROLLD NEXT n LIST » END 1 CF » » `OAPLY K Checksum: # 11132d Bytes: Example: Apply the function, f(x) = Ax !Ô3†2W†4` ‚å 3 QA *7 - `J %APLY% H#DISP ˜˜ (select small stack display to see all vector elements.) Converting Between Number Bases nBASE converts a positive decimal number (x) into a tagged string representation of the equivalent value in a...
Page 101
nBASE program listing Program: « 1 CF 0 RND SWAP 0 RND RCLF b n f « STD n LOG b LOG / 10 RND IP n 0 i m k « "" 'm' EVAL b i 'k' EVAL - ^ DUP2 MOD IF DUP 0 == 'm' EVAL b Š...
Program: UNTIL 'm' EVAL 0 == IF 1 FS?C THEN "0" + WHILE i 'k' EVAL - 0 Š REPEAT "0" + 1 'k' STO+ » " base" b + n SWAP + TAG f STOF » » `OnBASE K Checksum: # 54850d Bytes: Example: Convert 1000...
Page 103
Level 1 { valid list } { invalid list } Techniques used in NAMES Nested conditionals. The outer conditional verifies that there are two objects in the list. If so, the inner conditional verifies that both objects are names. Logical functions. NAMES uses the AND command in the inner conditional to determine if both objects are names, and the NOT command to display the error message if they are not both names.
Page 104
NAMES is demonstrated in the program VFY. VFY (Verify Program Argument) VFY verifies that an argument on the stack is either a name or a list that contains exactly two names. Level 1 'name' { valid list } { invalid list } invalid object Techniques used in VFY Utility programs.
Program: argm TYPE 6. SAME THEN "Not name or list" DOERR » » `OVFYK Checksum: # 31403d Bytes: 139.5 Example: Execute VFY to test the validity of the name argument BEN. (The argument is valid and is simply returned to the stack.) OBEN ` J %VFY% Example: Execute VFY to test the validity of the list argument {BEN JEFF SARAH }.
Page 106
Techniques used in "RPN Recursion. The "RPN program calls itself as a subroutine. This powerful technique works just like calling another subroutine as long as the stack contains the proper arguments before the program calls itself. In this case the level 1 argument is tested first to be sure that it is an algebraic expression before "RPN is called again.
When the new term does not differ from the previous term to within the 12-digit precision of the calculator, the loop ends. Nested local variable structures. The outer structure is consistent with the requirements of a user-defined function.
SINTP (Converting a Plot to a Graphics Object) SINTP draws a sine curve, returns the plot to the stack as a graphics object, and stores that graphics object in a variable. Make sure your calculator is in Radians mode. Techniques used in SINTP Programmatic use of PLOT commands.
SETTS (Superimposing Taylor's polynomials) SETTS superimposes successive Taylor's polynomials on a sine curve and stores each graphics object in a list. Techniques used in SETTS Structured programming. SETTS calls SINTP to build a sine curve and convert it to a graphics object. FOR…STEP (definite loop).
TSA (Animating Taylor's Polynomials) TSA displays in succession each graphics object created in SETTS. Techniques used in TSA Passing a global variable. Because SETTS takes several minutes to execute, TSA does not call SETTS. Instead, you must first execute SETTS to create the global variable TSL containing the list of graphics objects. TSA simply executes that global variable to put the list on the stack.
Preserving calculator flag status. Before specifying Radians mode, PIE saves the current flag status in a local variable, then restores that status at the end of the program.
Page 113
Program: "Please wait... Drawing Pie Chart" 1 DISP (66,32) 20 0 6.28 PICT RCL LCD RCL… TOT / DUP 100 * prcnts « 2 ‡ NUM * * prop angle « prop SIZE OBJ DROP SWAP FOR n (66,32) prop n GET 'angle' STO+ angle COS angle SIN...
Page 114
Program: 5 < THEN (3,2) + prcnts n GET 1 RND STR "%" + 1 GROB GOR DUP PICT STO LCD NEXT { } PVIEW » » flags STOF » 0 MENU » `OPIE K Checksum: # 16631d Bytes: Example: The inventory at Fruit of the Vroom, a drive-in fruit stand, includes 983 oranges, 416 apples, and 85 bananas.
Trace Mode This section contains two programs, ENTER and ßENTER, which together provide “trace mode” for the hp49g+/hp48gII using an external printer. To turn on “trace mode,” set flag – 63 and activate User mode. To – turn off “trace mode,” clear flag 63 or turn off User mode.
Inverse-Function Solver This section describes the program ROOTR, which finds the value of x at which f(x) = y. You supply the variable name for the program that calculates f(x), the value of y, and a guess for x (in case there are multiple solutions).
Example: Find the value of x for which X"FX equals 599.5. Use a guess in the vicinity of 1. Start by keying in X"FX : @å@é x †O3.7 *x Q3 +4.5 * x Q2 +3.9 *x +5 ` Store the program in X"FX, then enter the program name, the y-value 599.5, and the guess 1, and execute ROOTR: O X"FX K O J %X²FX% `...
Page 118
Program: { # 0d # 25d } PICT OVER walk GXOR 5 MAXR FOR i i 131 MOD RB # 25d 2 LIST PICT OVER walk GXOR PICT ROT walk GXOR 0.2 WAIT 5 STEP » » `OWALK K Checksum: # 28684d Bytes: 250.0 Example: Send the small person out for a walk.
3.Full Command and Function Reference Introduction This chapter details the hp49g+/hp48gII commands and functions. These listings include the following information: a brief definition of what the command or function does additional information about how it works and how to use it the key to press to gain access to it any flags that may affect how it works a stack diagram showing the arguments it requires (if any)
Page 120
Some commands affect a calculator state — a mode, a reserved variable, a flag, or a display — without taking any arguments from the stack or returning any results to the stack. No stack diagrams are shown for these commands.
Page 121
Term [ array ] [ C-array ] date { dim } 'global' grob A real-number time or angle in hours-minutes-seconds format. { list } local [[ matrix ]] Positive integer real number (rounded if noninteger) n or m port port library { #n #m } 'name'...
ABCUV CAS: From polynomials a, b and constant c give polynomials u and v such that au+bv =c . Function Type: Description: Absolute Value Function: Returns the absolute value of its argument. ABS has a derivative (SIGN) but not an inverse. In the case of an array, ABS returns the Frobenius (Euclidean) norm of the array, defined as the square root of the sum of the squares of the absolute values of all n elements.
Input/Output: None See also: ACOS Type: Analytic Function Description: Arc Cosine Analytic Function: Returns the value of the angle having the given cosine. For a real argument x in the domain –1 x 1, the result ranges from 0 to 180 degrees (0 to radians;...
ACOS2S CAS: Transform expressions replacing acos(x) with /2–asin(x). ACOSH Type: Analytic Function Description: Inverse Hyperbolic Cosine Analytic Function: Returns the inverse hyperbolic cosine of the argument. For real arguments x < 1, ACOSH returns the complex result obtained for the argument (x, 0). The inverse of ACOSH is a relation, not a function, since COSH sends more than one argument to the same result.
lines mark the other side of the cut. The graph of the range shows where each side of the cut is mapped under the function. These graphs show the inverse relation s1*ACOSH(Z)+2* *i*n1 for the case s1 = 1 and n1 = 0. For other values of s1 and n1, the horizontal half-band in the lower graph is rotated to the left and translated up and down.
!´ Access: LIST ADD Flags: Binary Integer Wordsize (–5 through –10) Input/Output: Level 2/Argument 1 { list { list } See also: +, LIST, LIST, LIST ADDTMOD CAS: Add two expressions or values, modulo the current modulus. ADDTOREAL CAS: Add names to list of variables treated as real when Complex mode is set. ALGB CAS: Display a menu or list of CAS algebraic operations.
When the arguments are binary integers or strings, AND does a bit-by-bit (base 2) logical comparison. • An argument that is a binary integer is treated as a sequence of bits as long as the current wordsize. Each bit in the result is determined by comparing the corresponding bits (bit ) in the two arguments as shown in the following table.
!°L Access: GROB Input/Output: Ln+1.../A1 grob grob See also: BLANK, GROB Type: Command Description: Recalls the nth answer from history (algebraic mode only), where n is an integer. In RPN mode, it performs the LASTARG command. !î Access: Input/Output: See also: LAST, LASTARG APPLY Type:...
If x , ARC plots one point. If |x draws a complete circle. !°L Access: PICT ARC Flags: Angle Mode (–17 and –18). The setting of flags –17 and –18 determine the interpretation of x and x (degrees, radians, or grads). Input/Output: Level 4/Argument 1 Level 3/Argument 2 Level 2/Argument 3 Level 1/Argument 4 (x, y)
Input/Output: See also: ATAN ARIT CAS: Display a menu or list showing CAS submenus for arithmetical operations ARRY Type: Command Description: Array to Stack Command: Takes an array and returns its elements as separate real or complex numbers. Also returns a list of the dimensions of the array. If the argument is an n-element vector, the first element is returned to level n + 1 (not level nm + 1), and the nth element to level 2.
Page 131
The inverse of SIN is a relation, not a function, since SIN sends more than one argument to the same result. The inverse relation for SIN is expressed by ISOL as the general solution: The function ASIN is the inverse of a part of SIN, a part defined by restricting the domain of SIN such that: •...
Flags: Principal Solution (–1), Numerical Results (–3), Angle Mode (–17, –18) Input/Output: See also: ACOS, ATAN, ISOL, SIN ASIN2C CAS: Transform expressions replacing asin(x) with /2–acos(x). ASIN2T CAS: Transform expressions replacing asin(x) with atan(x/√(1-x^2)) ASINH Type: Analytic Function Description: Arc Hyperbolic Sine Analytic Function: Returns the inverse hyperbolic sine of the argument. The inverse of SINH is a relation, not a function, since SINH sends more than one argument to the same result.
hold key assignment indicated by “&” in the table below (where the shift is held while pressing the key). The legal values for p and f are as follows: Value of .00 or .10 Unshifted [key] … ~… Once ASN has been executed, pressing a given key in User or 1-User mode executes the user- assigned object.
…ãL Access: BIT ASR Flags: Binary Integer Wordsize (–5 through –10), Binary Integer Base (–11, –12) Input/Output: See also: SL, SLB, SR, SRB ASSUME CAS: Place assumptions on variables treated by CAS as real when Complex mode is set. ATAN Type: Analytic Function Description: Arc Tangent Analytic Function: Returns the value of the angle having the given tangent.
• each argument is sent to a distinct result, and • each possible result is achieved. The points in this restricted domain of TANH are called the principal values of the inverse relation. ATANH in its entirety is called the principal branch of the inverse relation, and the points sent by ATANH to the boundary of the restricted domain of TANH form the branch cuts of ATANH.
To use a library object, it must be in a port and it must be attached. A library object copied into RAM (such as through the PC Link) must be stored into a port using STO. Some libraries require you to ATTACH them. You can ascertain whether a library is attached to the current directory by executing LIBS.
Plot Type SCATTER AUTO does not affect 3D plots. AUTO actually calculates a y-axis display range and then expands that range so that the menu labels do not obscure the resultant plot. AUTO does not draw a plot – execute DRAW to do so. …µ...
When the plot type is BAR, the DRAW command plots a bar chart using data from one column of the current statistics matrix (reserved variable DAT). The column to be plotted is specified by the XCOL command, and is stored in the first parameter of the reserved variable PAR. The plotting parameters are specified in the reserved variable PPAR, which has the following form: For plot type BAR, the elements of PPAR are used as follows: •...
…ã Access: Flags: Binary Integer Wordsize (–5 through –10), Binary Integer Base (–11, –12) Input/Output: None See also: DEC, HEX, OCT, STWS, RCWS BINS Type: Command Description: Sort into Frequency Bins Command: Sorts the elements of the independent column (XCOL) of the current statistics matrix (the reserved variable DAT) into (n of bin 1 starts at value x BINS returns a matrix containing the frequency of occurrences in each bin, and a 2-element...
See also: ARC, LINE, TLINE BUFLEN Type: Command Description: Buffer Length Command: Returns the number of characters in the hp49g+/hp48gII ' s serial input buffer and a single digit indicating whether an error occurred during data reception. The digit returned is 1 if no framing, UART overrun, or input-buffer overflow errors occurred during reception, or 0 if one of these errors did occur.
CASCFG CAS: Restore the default CAS mode settings with the modulus value set to 13. CASCMD CAS: List CAS operations, provide descriptions and examples. CASE Type: Command Description: CASE Conditional Structure Command: Starts CASE … END conditional structure. The CASE … END structure executes a series of cases (tests). The first test that returns a true result causes execution of the corresponding true-clause, ending the CASE …...
CENTR Type: Command Description: Center Command: Adjusts the first two parameters in the reserved variable PPAR, (x and (x ), so that the point represented by the argument (x, y) is the plot center. On the hp49g+, the center pixel is in row 40, column 65 when PICT is its default size (131 × 80). On the hp48gII, the center pixel is in row 32, column 65 when PICT is its default size (131 ×...
CHINREM CAS: Solve a system of simultaneous polynomial congruences in the ring Z[x]. CHOLESKY CAS: Return the Cholesky factorization of a square matrix. CHOOSE Type: Command Description: Create User-Defined Choose Box Command: Creates a user-defined choose box. CHOOSE creates a standard single-choice choose box based on the following specifications: Variable “prompt”...
Input/Output: See also: NUM, POS, REPL, SIZE, SUB CIRC CAS: Compose two permutations. CKSM Type: Command Description: Checksum Command: Specifies the error-detection scheme. Legal values for n checksum • 1-digit arithmetic checksum. • 2-digit arithmetic checksum. • 3-digit cyclic redundancy check (default). The CKSM specified is the error-detection scheme that will be requested by KGET, PKT, or SEND.
When the hp49g+/hp48gII turns off, it automatically closes the serial port, but does not clear KERRM. Therefore, CLOSEIO is not needed to close the port, but can conserve power without turning off the calculator. Executing hp49g+/hp48gII Kermit protocol commands automatically clears the input buffer;...
CNRM Type: Command Description: Column Norm Command: Returns the column norm (one-norm) of the array argument. The column norm of a matrix is the maximum (over all columns) of the sum of the absolute values of all elements in each column. For a vector, the column norm is the sum of the absolute values of the vector elements.
Description: Delete Column Command: Deletes column n of a matrix (or element n of a vector), and returns the modified matrix (or vector) and the deleted column (or element). n is rounded to the nearest integer. !´ Access: MATRIX COL COL !Ø...
COL combines the functionality of XCOL and YCOL. The independent-variable column number x is stored as the first parameter in the reserved variable PAR (the default is 1). The xcol dependent-variable column number x variable PAR (the default is 2). COL accepts and stores noninteger values, but subsequent commands that use these two parameters in PAR will cause errors.
!´ Access: MATRIX MAKE CON !Ø CREATE CON Input/Output: Level 2/Argument 1 rows [ R-array ] [ C-array ] 'name' See also: COND Type: Command Description: Condition Number Command: Returns the 1-norm (column norm) condition number of a square matrix. The condition number of a matrix is the product of the norm of the matrix and the norm of the inverse of the matrix.
• (x ) is a complex number specifying the upper right corner of PICT (the upper right corner of the display range). The default value is (6.5,3.2) for the hp48gII and (6.5,4.0) for the hp49g+. • indep is a name specifying the independent variable, or a list containing such a name and two numbers specifying the minimum and maximum values for the independent variable (the plotting range).
See also: CONST CONST Type: Function Description: Constant Value Command: Returns the value of a constant. CONST returns the value of the specified constant. It chooses the unit type depending on flag –60: SI if clear, English if set, and uses the units depending on flag –61: units if clear, no units if set.
where is the ith coordinate value in column n is the mean of the data in column n the number of data points. …µ Access: CORR Input/Output: See also: COL , COV, PREDX, PREDY, XCOL, YCOL Type: Analytic Function Description: Cosine Analytic Function: Returns the cosine of the argument. For real arguments, the current angle mode determines the number ' s interpretation as an angle, unless the angular units are specified.
Type: Command Description: Covariance Command: Returns the sample covariance of the independent and dependent data columns in the current statistics matrix (reserved variable DAT). The columns are specified by the first two elements in reserved variable PAR, set by XCOL and YCOL respectively.
] to a three-element argument [ d !´ Access: VECTOR CROSS Input/Output: Level 2/Argument 1 [ vector ] See also: CNRM, DET, DOT, RNRM CSWP Type: Command Description: Column Swap Command: Swaps columns i and j of the argument matrix and returns the modified matrix, or swaps elements i and j of the argument vector and returns the modified vector.
Type: Command Description: Complex to Real Command: Separates the real and imaginary parts of a complex number or complex array. The result in item 1/level 2 represents the real part of the complex argument. The result in item 2/ level 1 represents the imaginary part of the complex argument. !°...
…Ó Access: TOOLS …&9 DATE Flags: Date Format (-42) Input/Output: See also: TIME DATE+ Type: Command Description: Date Addition Command: Returns a past or future date, given a date in argument 1/level 2 and a number of days in argument 2/level 1. If x range of allowable dates is October 15, 1582, to December 31, 9999.
Type: Command Description: Decimal Mode Command: Selects decimal base for binary integer operations. (The default base is decimal.) Binary integers require the prefix #. Binary integers entered and returned in decimal base automatically show the suffix d. If the current base is not decimal, then you can enter a decimal number by ending it with d.
Type: Command Description: Degrees Command: Sets Degrees angle mode. DEG clears flags –17 and –18, and displays the DEG annunciator. In Degrees angle mode, real-number arguments that represent angles are interpreted as degrees, and real-number results that represent angles are expressed in degrees. !&H Access: ANGLE DEG...
Specifying 0 for x Specifying S as the argument for DELKEYS suppresses all standard key assignments on the user keyboard. This makes keys without user key assignments inactive on the user keyboard. (You can make exceptions using ASN, or restore them all using STOKEYS.) If you are stuck in User mode –...
See also: INDEP DEPTH Type: RPL Command Description: Depth Command: Returns a real number representing the number of objects present on the stack (before DEPTH was executed). !° Access: STACK STACK DEPTH Input/Output: See also: CLEAR, DROPN DERIV CAS: Return the partial derivatives of a function, with respect to specified variables. DERVX CAS: Return the derivative of a function with respect to the current variable.
A library object attached to a non-HOME directory is automatically detached (without using DETACH) whenever a new library object is attached there. …µ Access: DETACH Input/Output: See also: ATTACH, LIBS, PURGE DIAG Type: Command Description: Vector to Matrix Diagonal Command: Takes an array and a specified dimension and returns a matrix whose major diagonal elements are the elements of the array.
DIFFEQ Type: Command Description: Differential Equation Plot Type Command: Sets the plot type to DIFFEQ. When the plot type is DIFFEQ and the reserved variable EQ does not contain a list, the initial value problem is solved and plotted over an interval using the Runge–Kutta–Fehlberg (4,5) method.
If EQ contains a list, the initial value problem is solved and plotted using a combination of Rosenbrock (3,4) and Runge-Kutta-Fehlberg (4,5) methods. In this case DIFFEQ uses RRKSTEP to calculate y The second element of EQ must evaluate to the partial derivative of Y' with respect to X, and can return a real value or real vector when evaluated.
the multiline display format. If the object display requires more than one display line, the display starts at coordinate #x #y, and continues down the display either to the end of the object or the bottom of the display. NOTE: DISPXY is not useful for displaying GROBs. The object displayed by DISPXY persists in the display only until the keyboard is ready for input.
DOERR Type: Command Description: Do Error Command: Executes a “user-specified” error, causing a program to behave exactly as if a normal error had occurred during program execution. DOERR causes a program to behave exactly as if a normal error has occurred during program execution.
DOMAIN CAS: List the domain of real numbers for which a function is defined. DOSUBS Type: Command Description: Do to Sublist Command: Applies a program or command to groups of elements in a list. The real number n can be omitted when the first argument is one of the following: •...
Input/Output: Level 2/Argument 1 [ array A ] See also: CNRM, CROSS, DET, RNRM DRAW Type: Command Operation Description: Draw Plot Command: Plots the mathematical data in the reserved variable EQ or the statistical data in the reserved variable DAT, using the specified x- and y-axis display ranges. The plot type determines if the data in the reserved variable EQ or the data in the reserved variable DAT is plotted.
The coordinates of the axes intersection are specified by AXES. Axes tick-marks are specified in PPAR with the ATICK, or AXES command. DRAX does not draw axes labels; execute LABEL to do so. …µ Access: DRAX Input/Output: None See also: AXES, DRAW, LABEL DROITE CAS:...
DTAG has no effect on an untagged object. !° Access: TYPE Input/Output: See also: LIST , Type: RPL Command Description: Duplicate Object Command: DUP returns a copy of the argument (or the object on level 1). !° Access: STACK DUP STACK DUP ` in RPN mode executes DUP when no command line is present.
The number returned for e is the closest approximation to 12-digit accuracy. For exponentiation, use the expression EXP(x) rather than e^x, since the function EXP uses a special algorithm to compute the exponential to greater accuracy. Even though the calculator often displays EXP(x) as e^x, it’s still’ EXP(x)’ intenally.
EDITB Type: Command Description: Edit Best Command: Opens the specified object in the most suitable editor. For example, if you use a matrix as the specified object, the command opens it in Matrix Writer. ˜ Access: EDIT Input/Output: None See also: EDIT, VISIT EGCD CAS:...
Input/Output: None See also: IF, CASE, DO, ELSE, IFERR, REPEAT, THEN, UNTIL, WHILE Type: Command Description: END Command: Ends conditional, error-trapping, and indefinite loop structures. See the IF, CASE, IFERR, DO, and WHILE keyword entries for more information. !° Access: BRANCH IF Input/Output: None See also:...
Command Description: Error Message Command: Returns a string containing the error message of the most recent calculator error. ERRM returns the string for an error generated by DOERR. If the argument to DOERR was 0, the string returned by ERRM is ‘Interrupted’.
Type: Command Description: Error Number Command: Returns the error number of the most recent calculator error. If the most recent error was generated by DOERR with a string argument, ERRN returns #70000h. If the most recent error was generated by DOERR with a binary integer argument, ERRN returns that binary integer.
Object Type Tagged Algebraic Command, Function, XLIB Name Other Objects To evaluate a symbolic argument to a numerical result, evaluate the argument in Numerical Results mode (flag –3 set) or execute Access: Flags: Numerical Results (–3) Input/Output: See also: NUM, SYSEVAL EXLR CAS: Return the left- and right-hand sides of an equation as separate expressions.
EXPAN Type: Command Description: Expand Products Command: Rewrites an algebraic expression or equation by expanding products and powers. This command is equivalent to the old HP 48G series command, with minor modifications (such as adding RISCH for integration). …µ Access:...
For values of x close to zero, EXPM(x) returns a more accurate result than does EXP(x)–1. (Using EXPM allows both the argument and the result to be near zero, and avoids an intermediate result near 1. The calculator can express numbers within 10 only 10 of 1.)
…µ Access: FACT Flags: Numerical Results (–3), Underflow Exception (-20), Overflow Exception (-21) Input/Output: See also: COMB, PERM, ! FACTOR CAS: Factorize a polynomial to irreducible polynomials, or an integer to primes. FACTORMOD CAS: Factorize a polynomial modulo the current modulus. FACTORS CAS: For a value or expression, return a list of prime factors and their multiplicities.
• z and z are real numbers that specify the height of the view space. high • x and x are not used. • y and y are not used. • x , and z • x and y are real numbers that set the number of x-coordinates versus the number of y- step step coordinates plotted.
Input/Output: See also: CF, FC?, FS? FS?C, SF FDISTRIB CAS: Perform a full distribution of multiplication and division in a single step. Type: Command Description: Discrete Fourier Transform Command: Computes the one- or two-dimensional discrete Fourier transform of an array. If the argument is an N-vector or an N ×...
A number is displayed or printed as (sign) mantissa, where the mantissa can be of any form. However, the calculator automatically displays a number in scientific mode if either of the following is true: •...
Description: Evaluate Flash Function Command: Evaluates unnamed Flash functions. WARNING: Use extreme care when executing this function. Using FLASHEVAL with random addresses will almost always cause a memory loss. Do not use this function unless you know what you are doing. is of the form ffffbbbh, where bbb is the bank ID, and ffff is the function number.
Description: Font Function: Returns the system FONT8 object. You use this in conjunction with the FONT command to set the system font to type 8. …µ Access: FONT Input/Output: See also: FONT6, FONT7, FONT Type: Function Description: Returns the current system font. …µ...
Input/Output: See also: FREE Type: Command Description: This command, a carry-over from the HP 48GX for handling plug-in RAM cards, should not be used. FREEZE Type: Command Description: Freeze Display Command: Freezes the part of the display specified by n updated until a key is pressed.
Normally, the stack display is updated as soon as the calculator is ready for data input. For example, when HALT stops a running program, or when a program ends, any displayed messages are cleared. The FREEZE command “freezes” a part or all of the display so that it is not updated until a key is pressed.
See also: CF, FC?, FC?C, FS?, SF FUNCTION Type: Command Description: Function Plot Type Command: Sets the plot type to FUNCTION. When the plot type is FUNCTION, the DRAW command plots the current equation as a real- valued function of one real variable. The current equation is specified in the reserved variable EQ.
Flags: If the Underflow Exception (–20) or Overflow Exception (–21) flags are set then underflow or overflow conditions give errors, otherwise they give zero or the maximum real number the calculator can express. Complex mode must be set (flag –103 set) if x is complex.
Input/Output: Level 2/Argument 1 [[ matrix ]] [[ matrix ]] 'name 'name [ vector ] [ vector ] 'name 'name { list } { list } 'name 'name See also: GETI, PUT, PUTI GETI Type: Command Description: Get and Increment Index Command: Returns from the argument 1/level 2 array or list (or named array or list) the real or complex number z argument 2/level 1, along with the first (level 2) argument and the next position in that argument.
Type: Command Description: Graphics OR Command: Superimposes grob pixel of grob positioned at the specified coordinate in grob GOR uses a logical OR to determine the state (on or off) of each pixel in the overlapping portion of the argument graphics object. If the first argument (stack level 3) is any graphics object other than PICT, then grob returned to the stack.
• x and x are real numbers that specify the input region ' s width. The default value is (– 1,1). • y and y are real numbers that specify the input region ' s depth. The default value is (–1,1). •...
Input/Output: Level 2/Argument 1 GROB GXOR Type: Command Description: Graphics Exclusive OR Command: Superimposes grob corner pixel of grob GXOR is used for creating cursors, for example, to make the cursor image appear dark on a light background and light on a dark background. Executing GXOR again with the same image restores the original picture.
!°L Access: CHARS !° LIST ELEMEN …± L HEAD Input/Output: See also: TAIL HEADER Type: Command Description: Header size: Returns the current size of the header in lines. …µ Access: HEADER Input/Output: See also: HEADER HEADER Type: Command Description: Header size: Sets the current size of the header in lines: to 0, 1, or 2 lines. …µ...
!´ Access: BASE HEX !Ú BASE HEX Flags: Binary Integer Wordsize (–5 through –10), Binary Integer Base (–11, –12) Input/Output: None See also: BIN, DEC, OCT, RCWS, STWS HILBERT CAS: Return a square Hilbert matrix of specified order. HISTOGRAM Type: Command Description: Histogram Plot Type Command: Sets the plot type to HISTOGRAM.
Description: Draw Histogram Plot Command: Plots a frequency histogram of the specified column in the current statistics matrix (reserved variable DAT). The data column to be plotted is specified by XCOL and is stored as the first parameter in the reserved variable PAR.
See also: HMS , HMS, HMS– Type: Command Description: Hours-Minutes-Seconds to Decimal Command: Converts a real number in hours-minutes- seconds format to its decimal form (hours or degrees with a decimal fraction). The format for HMS (a time or an angle) is H.MMSSs, where: •...
Type: Function Description: i Function: Returns the symbolic constant i or its numerical representation, (0, 1). !¥ Access: Flags: Symbolic Constants (–2), Numerical Results (–3) Input/Output: See also: e, MAXR, MINR, IABCUV CAS: Return a solution in integers u and v of au + bv = c, where a, b, and c are integers. IBASIS CAS: Determine the basis of the intersection between two vector spaces.
See also: IDIV2 CAS: For two integers, a and b, return the integer part of a/b, and the remainder, r. IEGCD CAS: Given integers x and y, return integers, a, b, and c, where ax+by=c and, c is the GCD of x and y. Type: Command Operation Description: IF Conditional Structure Command: Starts IF …...
Error trapping structures enable program execution to continue after a “trapped” error occurs. • IFERR … THEN … END executes a sequence of commands if an error occurs. The syntax of IFERR … THEN … END is: IFERR trap-clause THEN error-clause END If an error occurs during execution of the trap clause: The error is ignored.
two, and the resulting algorithms are called the fast Fourier transform (FFT) and inverse fast Fourier transform (IFFT). The IFFT command uses truncated 15-digit arithmetic and intermediate storage, then rounds the result to 12-digit precision. !´L Access: FFT IFFT Input/Output: See also: Type: Command...
If the argument is an array, IM returns a real array, the elements of which are equal to the imaginary parts of the corresponding elements of the argument array. If the argument array is real, all of the elements of the result array are zero. …ß...
Input/Output: Level 2/Argument 1 See also: DEPND INFORM Type: Command Description: User-Defined Dialog Box Command: Creates a user-defined input form (dialog box). INFORM creates a standard dialog box based upon the following specifications: Variable “title” … format { resets } { init } If you exit the dialog box by selecting item 1 or level 2, and puts a 1 in item 2 or level 1.
See also: CHOOSE, INPUT, NOVAL, TYPE INPUT Type: Command Description: Input Command: Prompts for data input to the command line and prevents the user access to stack operations. When INPUT is executed, the stack or history area is blanked and program execution is suspended for data input to the command line.
INTEGER CAS: Display a menu or list of CAS integer operations. INTVX CAS: Find the antiderivative of a function symbolically, with respect to the current default variable. Type: Analytic function Description: Inverse (1/x) Analytic Function: Returns the reciprocal or the matrix inverse. For a complex argument (x, y), the inverse is the complex number: Matrix arguments must be square (real or complex).
Description: Isolate Variable Command: Returns an algebraic symb occurrence of variable global. The result symb is an equation of the form global = expression. If global appears more than once, then symb is effectively the right side of an equation obtained by rearranging and solving symb isolate the first occurrence of global on the left side of the equation.
The sign of the input controls whether USER mode key assignments are used. Positive inputs specify the USER mode key definition. Negative inputs specify the default system keyboard. …µ Access: KEYEVAL Input/Output: Example: Turn the calculator off using a command. Command: KEYEVAL(101.3) Result: The calculator is turned off. KEYTIME Type:...
KGET Type: Command Description: Kermit Get Command: Used by a local Kermit to get a Kermit server to transmit the named object(s). To rename an object when the local device gets it, include the old and new names in an embedded list.
LANGUAGE Type: Command Description: Language: Returns the language that is currently set. 0 for English, 1 for French, and 2 for Spanish. …µ Access: LANGUAGE Input/Output: See also: LANGUAGE LANGUAGE Type: Command Description: Language: Sets the language for things such as error messages: 0 for English, 1 for French, and 2 for Spanish.
Input/Output: See also: ANS, LAST Description: LCD to Graphics Object Command: Returns the current stack and menu display as a 131 × 80 (on the hp49g+) or 131 × 64 (on the hp48gII) graphics object. !°L Access: GROB Input/Output: See also: GROB, Type: Command...
Input/Output: See also: EVAL, FLASHEVAL, SYSEVAL LIBS Type: Command Description: Libraries Command: Lists the title, number, and port of each library attached to the current directory. The title of a library often takes the form LIBRARY-NAME : Description. A library without a title is displayed as "...
Input/Output: See also: BESTFIT, COL , CORR, COV, EXPFIT, LINFIT, LOGFIT, LR, PREDX, PREDY, PWRFIT, XCOL, YCOL LINFIT Type: Command Description: Linear Curve Fit Command: Stores LINFIT as the fifth parameter in the reserved variable PAR, indicating that subsequent executions of LR are to use the linear curve fitting model. LINFIT is the default specification in PAR.
Input/Output: Level See also: ARRY, LIST , LIST Type: Command Description: List Differences Command: Returns the first differences of the elements in a list. Adjacent elements in the list must be suitable for mutual subtraction. !´ Access: LIST LIST Input/Output: See also: LIST, LIST, STREAM LIST...
for the complex-valued natural log function occurs where the corresponding real-valued function is undefined. The principal branch also preserves most of the important symmetries. The graphs below show the domain and range of LN. The graph of the domain shows where the branch cut occurs: the heavy solid line marks one side of the cut, while the feathered lines mark the other side of the cut.
LNP1 allows both the argument and the result to be near zero, and it avoids an intermediate result near 1. The calculator can express numbers within 10 For values of x < –1, an Undefined Result error results. For x=–1, an Infinite Result exception occurs, or, if flag –22 is set, LNP1 returns –MAXR.
Input/Output: See also: ALOG, EXP, ISOL, LN LOGFIT Type: Command Description: Logarithmic Curve Fit Command: Stores LOGFIT as the fifth parameter in the reserved variable PAR, indicating that subsequent executions of LR are to use the logarithmic curve-fitting model. LINFIT is the default specification in PAR. Access: …µ...
Logarithmic Exponential Power …µ Access: Input/Output: Level 1/Argument 1 See also: BESTFIT, COL , CORR, COV, EXPFIT, LINE, LINFIT, LOGFIT, PREDX, PREDY, PWRFIT, XCOL, YCOL Type: Command Description: Least Squares Solution Command: Returns the minimum norm least squares solution to any system of linear equations where A ×...
!Ø Access: FACTORIZATION LU !´ MATRIX FACTOR LU Input/Output: Level 1/Argument 1 [[ matrix ]] See also: DET, INV, LSQ, / LVAR CAS: Return a list of variable and function names in an algebraic object. CAS: Return details of a square matrix, including the information needed to obtain the adjoint matrix. MAIN CAS: Display the names of the main menus of CAS operations, as a menu or a list.
' SIN(&A)*COS(&B)+COS(&A)*SIN(&B) ' . Multiple occurrences of a particular wildcard in a pattern must match identical subexpressions. MATCH works from top down; that is, it checks the entire expression first. This approach works well for expansion. An expression expanded during one execution of MATCH will contain additional subexpressions, and those subexpressions can be expanded by another execution of MATCH.
Description: Maximum Function: Returns the greater of two inputs. !´ Access: REAL MAX Flags: Numerical Results (-3) Input/Output: Level 2/Argument 1 'symb x_unit See also: MAXR Type: Function Description: Maximum Real Function: Returns the symbolic constant MAXR or its numerical representation 9.99999999999E499.
Since this process can slow down calculator operation at undesired times, you can force it to occur at a desired time by executing MEM. In a program, execute MEM DROP.
Display a function key menu of computer algebra commands in a specified range. MERGE Type: Command Description: Do not use this command, a carry-over from the HP 48GX for handling plug-in RAM cards. Type: Function Description: Minimum Function: Returns the lesser of two inputs.
In this game, you are standing in the upper-left corner of an 8x16 battlefield grid. Your mission is to travel safely to the lower-right corner, avoiding invisible mines along the way. The game tells you how many mines are under the eight squares adjacent to your position. Use the number or arrow keys to cross the battlefield one square at a time (use 7, 9, 1, and 3to move diagonally.) You can exit the game at any time by pressing −(the $ key).
MINR Type: Function Description: Minimum Real Function: Returns the symbolic constant MINR or its numerical representation, 1.00000000000E–499. MINR is the smallest positive real number that can be represented by the hp49g+/hp48gII. !´L Access: CONSTANTS Flags: Symbolic Constants (-2), Numerical Results (-3) Input/Output: See also: e, i, MAXR,...
Flags: Numerical Results (-3) Input/Output: Level 2/Argument 1 'symb See also: FLOOR, / MODSTO CAS: Change the modulo setting to the specified number. MODULAR CAS: Display a menu or list of CAS modulo operations. MROOT Type: Command Description: Multiple Roots Command: Uses the multiple-equation solver to solve for one or more variables using the equations in EQ.
The multiple-equation solver application can solve a set of of two or more equations for unknown variables by finding the roots of each equation. The solver uses the list of equations stored in EQ. …µ Access: MSOLVR Input/Output: None See also: EQNLIB, MCALC, MINIT, MITM, MROOT, MSLV, MUSER MULTMOD CAS:...
Input/Output: Level 3/Argument 1 See also: UTPN NDUPN Type: RPL command Description: Duplicates an object n times, and returns n. !° !« Access: STACK !« STACK Input/Output: Level 2 See also: DUP, DUPDUP, DUPN, DUP2 Type: Analytic function Description: Negate Analytic Function: Changes the sign or negates an object. Negating an array creates a new array containing the negative of each of the original elements.
• Creating a new copy of an object that originated in a larger composite object (such as a list) allows you to recover the memory associated with the larger object when that larger object is no longer needed. !° Access: MEMORY NEWOB Flags: Last Arguments (-55).
!° Access: TEST …ãL LOGIC NOT Flags: Numerical Results (-3), Binary Integer Wordsize (-5 through -10) Input/Output: See also: AND, OR, XOR NOVAL Type: Command Description: INFORM Place Holder/Result Command: Place holder for reset and initial values in user- defined dialog boxes. NOVAL is returned when a field is empty. NOVAL is used to mark an empty field in a user-defined dialog box created with the INFORM command.
Description: Evaluate to Number Command. Evaluates a symbolic argument object (other than a list) and returns the numerical result. repeatedly evaluates a symbolic argument until a numerical result is achieved. The effect is the same as evaluating a symbolic argument in Numerical Result Mode (flag -3 set). …...
BIN, DEC, HEX, RCWS, STWS Type: Command Description: Off Command: Turns off the calculator. When executed from a program, that program will resume execution when the calculator is turned on. This provides a programmable “autostart.” ( i.e., a programmable …ç). „°LL Access:...
Command Description: Modifies the remapping string in the reserved variable PRTPAR so that the extended character set of the calculator matches that of the HP82240A infrared printer. To cancel OLDPRT character mapping, purge the PRTPAR variable. To print a string containing graphics data, disable OLDPRT.
If either or both of the arguments are algebraic objects, then the result is an algebraic of the form symb OR symb . Execute result from the algebraic result. …ãL Access: LOGIC OR !° TEST Flags: Numerical Results (-3), Binary Integer Wordsize (-5 through -10) Input/Output: Level 2/Argument 1 “string...
PARAMETRIC Type: Command Description: Parametric Plot Type Command: Sets the plot type to PARAMETRIC. When the plot type is PARAMETRIC, the DRAW command plots the current equation as a complex-valued function of one real variable. The current equation is specified in the reserved variable EQ.
…µ Access: PARITY Input/Output: See also: BAUD, CKSM, TRANSIO PARSURFACE Type: Command Description: PARSURFACE Plot Type Command: Sets plot type to PARSURFACE. When plot type is set to PARSURFACE, the DRAW command plots an image graph of a 3- vector-valued function of two variables. PARSURFACE requires values in the reserved variables EQ, VPAR, and PPAR.
See also: BAR, CONIC, DIFFEQ, FAST3D, FUNCTION, GRIDMAP, HISTOGRAM, PARAMETRIC, PCONTOUR, POLAR, SCATTER, SLOPEFIELD, TRUTH, WIREFRAME, YSLICE PARTFRAC CAS: Perform partial fraction decomposition on a partial fraction. PATH Type: Command Description: Current Path Command: Returns a list specifying the path to the current directory. The first directory is always HOME, and the last directory is always the current directory.
• x , and z viewed. • x and y are real numbers that set the number of x-coordinates versus the number of y- step step coordinates plotted. The plotting parameters are specified in the reserved variable PPAR, which has this form: For plot type PCONTOUR, the elements of PPAR are used as follows: •...
PICT cannot be smaller than 131 pixels wide × 80 pixels high on the hp49g+ (64 pixels on the hp48gII) nor wider than 2048 pixels (height is unlimited). !° Access: PICT PDIM Input/Output: Level 2/Argument 1 See also: PMAX, PMIN PERM Type: Function...
Description: PICT Command: Puts the name PICT on the stack. PICT is the name of a storage location in calculator memory containing the current graphics object. The command PICT enables access to the contents of that memory location as if it were a variable.
PINIT Type: Command Description: Port Initialize Command: Initializes all currently active ports. It may affect data already stored in a port. …µ Access: PINIT Input/Output: None PIX? Type: Command Description: Pixel On? Command: Tests whether the specified pixel in PICT is on; returns 1 (true) if the pixel is on, and 0 (false) if the pixel is off.
The packet data, packet type, and the response to the packet transmission are all in string form. PKT first does an I (initialization) packet exchange with the Kermit server, then sends the server a packet constructed from the data and packet-type arguments supplied to PKT. The response to PKT will be either an acknowledging string (possibly blank) or an error packet (see KERRM).
Description: PICT Minimum Command: Specifies (x, y) as the coordinates at the lower left corner of the display. The complex number (x, y) is stored as the first element in the reserved variable PPAR. …µ Access: PMIN Input/Output: See also: PDIM, PMAX, XRNG, YRNG PMINI CAS:...
Form of Current Equation expr = expr name = expr …µ Access: POLAR Flags: Simultaneous Plotting (-28), Curve Filling (-31) Input/Output: None See also: BAR, CONIC, DIFFEQ, FUNCTION, GRIDMAP, HISTOGRAM, PARAMETRIC, PARSURFACE, PCONTOUR, SCATTER, SLOPEFIELD, TRUTH, WIREFRAME, YSLICE POLYNOMIAL CAS: Display a menu or list of CAS operations with polynomials.
Description: Print Level 1 Command: Prints an object in multiline printer format. All objects except strings are printed with their identifying delimiters. Strings are printed without the leading and trailing " delimiters. Multiline printer format is similar to multiline display format, with the following exceptions: •...
Description: Predicted x-Value Command: Returns the predicted independent-variable value x on the dependent-variable value y regression coefficients in the reserved variable PAR. The value is predicted using the regression coefficients most recently computed with LR and stored in the reserved variable PAR. For the linear statistical model, the equation used is this: where m is the slope (the third element in PAR) and b is the intercept (the fourth element in PAR).
PRLCD Type: Command Description: Print LCD Command: Prints a pixel-by-pixel image of the current display (excluding the annunciators). The width of the printed image of characters in the display is narrower using PRLCD than using a print command such as PR1. The difference results from the spacing between characters. On the display there is a single blank column between characters, and PRLCD prints this spacing.
Flags: Infinite Result Exception (-22) Input/Output: See also: PCOEF, PEVAL PROPFRAC CAS: Split an improper fraction, a ratio of integers or expressions, into an integer part and a fraction part. PRST Type: Command Description: Print Stack Command: Prints all objects in the stack, starting with the object on the highest level. Objects are printed in multiline printer format.
PSDEV Type: Command Description: Population Standard Deviation Command: Calculates the population standard deviation of each of the m columns of coordinate values in the current statistics matrix (reserved variable DAT). PSDEV returns a vector of m real numbers, or a single real number if m = 1. The population standard deviation is computed using this formula: where x is the kth coordinate value in a column,...
PURGE Type: Command Description: Purge Command: Purges the named variables or empty subdirectories from the current directory. PURGE executed in a program does not save its argument for recovery by LASTARG. To empty a named directory before purging it, use PGDIR. To help prepare a list of variables for purging, use VARS.
Description: Put Element Command: Replaces the object at a specified position (second input) in a specified array or list (first input) with a specifed object (third input). If the array or list is unnamed, returns the new array or list. For matrices, n position !°...
Input/Output: [[ matrix ]] [[ matrix ]] name 'name [ vector ] [ vector ] 'name 'name { list } { list } 'name 'name See also: GET, GETI, PUT PVAR Type: Command Description: Population Variance Command: Calculates the population variance of the coordinate values in each of the m columns in the current statistics matrix ( DAT).
Input/Output: Level 1/Argument 1 See also: PVARS, VARS PVIEW Type: Command Description: PICT View Command: Displays PICT with the specified coordinate at the upper left corner of the graphics display. PICT must fill the entire display on execution of PVIEW. Thus, if a position other than the upper left corner of PICT is specified, PICT must be large enough to fill a rectangle that extends 131 pixels to the right and 80 pixes down on the hp49g+ (64 pixels down on the hp48gII).
Page 253
Input/Output: See also: C PX Type: Command Description: To Quotient Command: Returns a rational form of the argument. The rational result is a “best guess”, since there might be more than one rational expression consistent with the argument. within the number of decimal places specified by the display format mode. Q also acts on numbers that are part of algebraic expressions or equations.
See also: LQ, LSQ QUAD Type: Command Description: Solve Quadratic Equation Command: This command is identical to the computer algebra command SOLVE, and is included for backward compatibility with the HP 48G. …µ Access: QUAD Flags: Principal Solution (-1) Input/Output:...
If evaluating an integral expression caused the name to be evaluated, the result of evaluation would be left on the stack for the integral, rather than the name itself. To avoid this problem, the hp49g+/48gII automatically (and invisibly) quotes such arguments. When the quoted argument is evaluated, the unquoted argument is returned.
!Ø Access: OPERATIONS !´ MATRIX NORMALIZE Flags: Singular Value (-54) Input/Output: See also: LQ, LSQ, QR RANM Type: Command Description: Random Matrix Command: Returns a matrix of specified dimensions that contains random integers in the range –9 through 9. The probability of a particular nonzero digit occurring is 0.05; the probability of 0 occurring is 0.1.
RCEQ Type: Command Description: Recall from EQ Command: Returns the unevaluated contents of the reserved variable EQ from the current directory. To recall the contents of EQ from a parent directory (when EQ doesn ' t exist in the current directory) evaluate the name EQ.
To recall a library or backup object, tag the library number or backup name with the appropriate port number (n ), which must be an integer in the range 0 to 3. Recalling a backup object port brings a copy of its contents to the stack, not the entire backup object. To search for a backup object, replace the port number with the wildcard character &, in which case the hp49g+/hp48gII will search (in order) ports 0 through 3, and the main memory for the named backup object.
„&H Access: FLAG „°L MODES FLAG Flags: Binary Integer Wordsize (-5 through -10) Input/Output: See also: STOF RCLKEYS Type: Command Description: Recall Key Assignments Command: Returns the current user key assignments. This includes an S if the standard definitions are active (not suppressed) for those keys without user key assignments.
!´L Access: PROBABILITY RDZ Input/Output: See also: COMB, PERM, RAND, ! Type: Function Description: Real Part Function: Returns the real part of the argument. If the argument is a vector or matrix, RE returns a real array, the elements of which are equal to the real parts of the corresponding elements of the argument array.
„&H Access: ANGLE RECT „´ VECTOR „°L MODES ANGLE RECT Input/Output: None See also: CYLIN, SPHERE RECV Type: Command Description: Receive Object Command: Instructs the hp49g+/hp48gII to look for a named file from another Kermit server device. The received file is stored in a variable named by the sender. Since the hp49g+/hp48gII does not normally look for incoming Kermit files, you must use RECV to tell it to do so.
For arrays, n counts in row order. For matrices, n position upper left-hand element of the replacement matrix. For graphics objects, the upper left corner of grob coordinates (x,y) or { #n #m }. From there, it overwrites a rectangular portion of grob PICT.
REWRITE CAS: Display a menu or list of CAS operations that rewrite expressions. RISCH CAS: Perform symbolic integration on a function using the Risch algorithm. Type: Command Description: Solve for Initial Values (Runge–Kutta–Fehlberg) Command: Computes the solution to an initial value problem for a differential equation, using the Runge-Kutta-Fehlberg (4,5) method.
RKFSTEP Type: Command Description: Next Solution Step for RKF Command: Computes the next solution step (h problem for a differential equation. The arguments and results are as follows: • { list } contains three items in this order: the independent (t) and solution (y) variables, and the right-hand side of the differential equation (or a variable where the expression is stored).
Input/Output: See also: RL, RR, RRB Type: Function Description: Round Function: Rounds an object to a specified number of decimal places or significant digits, or to fit the current display format. (or symb if flag –3 is set) controls how the level 2 argument is rounded, as follows: round round or symb...
Input/Output: ... obj See also: OVER, PICK, ROLL, ROT, SWAP ROMUPLOAD Description: This command remains from earlier HP graphing calculators and should not be used. ROOT Type: Command Description: Root-Finder Command: Returns a real number x for which the specified program or algebraic object most nearly evaluates to zero or a local extremum.
Type: RPL Command Description: Rotate Objects Command: Rotates the first three objects on the stack, moving the object on level 3 to level 1. In RPN mode, ROT is equivalent to 3 ROLL. !° Access: STACK ROT Input/Output: See also: OVER, PICK, ROLL, ROLLD, SWAP, UNROT ROW–...
Description: Rows to Matrix Command: Transforms a series of row vectors and a row count into a matrix containing those rows, or transforms a sequence of numbers and an element count into a vector with those numbers as elements. !Ø Access: CREATE ROW ROW !´...
Description: Rotate Right Command: Rotates a binary integer one bit to the right. The rightmost bit of #n …ãL Access: BIT RR !´ BASE !Ú BASE Flags: Binary Integer Wordsize (-5 through -10), Binary Integer Base (-11, -12) Input/Output: See also: RL, RLB, RRB Type: Command...
– The partial derivative of y'(t) with respect to the independent variable (or a variable where the expression is stored). • x sets the tolerance value. If a list is used, the first value is the tolerance and the second value is the initial candidate step size.
Input/Output: { list } See also: RKF, RKFERR, RKFSTEP, RRK, RSBERR RSBERR Type: Command Description: Error Estimate for Rosenbrock Method Command: Returns an error estimate for a given step h when solving an initial values problem for a differential equation. The arguments and results are as follows: •...
[[ matrix ]] [ vector ] See also: CSWP, ROW+, ROW– RULES Type: Command Description: Displays a list of names of individuals involved with the hp 49g calculator project. …µ Access: RULES Input/Output: None Type: Command Description: Real to Binary Command: Converts a positive real to its binary integer equivalent.
!° Access: TYPE Input/Output: Level 2/Argument 1 [ R-array See also: C R, IM, RE Type: Function Description: Radians to Degrees Function: Converts a real number expressed in radians to its equivalent in degrees. This function operates independently of the angle mode. !´...
Flags: I/O Device (-33) Input/Output: None See also: BUFLEN, SRECV, STIME, XMIT SCALE Type: Command Description: Scale Plot Command: Adjusts the first two parameters in PPAR, (x that x and y are the new plot horizontal and vertical scales, and the center point doesn ' t scale scale change.
(independent) and 2 (dependent) are selected by default. The y-axis is autoscaled and the plot type is set to SCATTER. When SCATRPLOT is executed from a program, the resulting display does not persist unless PICTURE or PVIEW is subsequently executed. …µ...
Input/Output: Level 1/Argument 1 See also: LQ, LU, QR, SVD, SVL, TRN Type: Command Description: Scientific Mode Command: Sets the number display format to scientific mode, which displays one digit to the left of the fraction mark and n significant digits to the right. Scientific mode is equivalent to scientific notation using n + 1 significant digits, where 0 n 11.
Input/Output: SDEV Type: Command Description: Standard Deviation Command: Calculates the sample standard deviation of each of the m columns of coordinate values in the current statistics matrix (reserved variable DAT). SDEV returns a vector of m real numbers, or a single real number if m = 1. The standard deviation (the square root of the variances) is computed using this formula: where x is the ith coordinate value in a column,...
The action of SEQ for arbitrary inputs can be predicted exactly from this equivalent program. where n is the number of new objects left on the stack by the FOR … STEP loop. Notice that index becomes a local variable regardless of its original type. !°...
Input/Output: Level 2/Argument 1 'symb 'symb See also: COLCT, EXPAN, ISOL, QUAD SIDENS Type: Function Description: Silicon Intrinsic Density Command: Calculates the intrinsic density of silicon as a function of temperature, x If x is a unit object, it must reduce to a pure temperature, and the density is returned as a unit object with units of 1/cm If x is a real number, its units are assumed to be K, and the density is returned as a real number...
Input/Output: See also: ABS, MANT, XPON SIGNTAB CAS: Tabulate the sign of a rational function of the current CAS variable. SIMP2 CAS: Simplify two objects by dividing them by their greatest common divisor. SIMPLIFY CAS: Simplify an expression. Type: Analytic function Description: Sine Analytic Function: Returns the sine of the argument.
Input/Output: See also: ASINH, COSH, TANH SINV Type: Command Description: Store Inverse Command: Replaces the contents of the named variable with its inverse. The named object must be a number, a matrix, an algebraic object, or a unit object. For information on reciprocals, see INV.
Flags: Binary Integer Wordsize (-5 through -10), Binary Integer Base (-11, -12) Input/Output: See also: ASR, SLB, SR, SRB Type: Command Description: Shift Left Byte Command: Shifts a binary integer one byte to the left. The most significant byte is shifted out to the left and lost, while the least significant byte is regenerated as zero.
…µ Access: SLOPEFIELD Input/Output: None See also: BAR, CONIC, DIFFEQ, FUNCTION, GRIDMAP, HISTOGRAM, PARAMETRIC, PARSURFACE, PCONTOUR, POLAR, SCATTER, TRUTH, WIREFRAME, YSLICE SNEG Type: Command Description: Store Negate Command: Replaces the contents of a variable with its negative. The named object must be a number, an array, an algebraic object, a unit object, or a graphics object.
SOLVER Type: Command Description: Displays a menu of commands used in solving equations. …µ Access: SOLVER Input/Output: None SOLVEVX Find zeros of an expression, or solves an equation with respect to the current variable. CAS: SORT Type: Command Description: Ascending Order Sort Command: Sorts the elements in a list in ascending order. The elements in the list can be real numbers, strings, lists, names, binary integers, or unit objects.
Type: Command Description: Shift Right Command: Shifts a binary integer one bit to the right. The least significant bit is shifted out to the right and lost, while the most significant bit is regenerated as a zero. SR is equivalent to binary division by 2. !´...
If the level 2 output from BUFLEN is used as the input for SRECV, SRECV will not have to wait for more characters to be received. Instead, it returns the characters already in the input buffer. If you want to accumulate bytes in the input buffer before executing SRECV, you must first open the port using OPENIO (if the port isn ' t already open).
Description: START Definite Loop Structure Command: Begins START … NEXT and START … STEP definite loop structures. Definite loop structures execute a command or sequence of commands a specified number of times. • START … NEXT executes a portion of a program a specified number of times. The RPL syntax is this: x The algebraic syntax is this: START(xstart xfinish) loop-clause NEXT START takes two numbers (xstart and xfinish) from the stack and stores them as the starting...
The easiest way to do this is to execute a warm start (by pressing calculator to perform a system halt, which clears the stack, the LAST stack, and all local variables. STO can also replace a single element of an array or list stored in a variable. Specify the variable in level 1 as name(index), which is a user function with index as the argument.
Input/Output: Level 2/Argument 1 backup library library See also: DEFINE, RCL, STOALARM Type: Command Description: Store Alarm Command: Stores an alarm in the system alarm list and returns its alarm index number. If the argument is a real number x If obj is a string, the alarm is an appointment alarm, and the string is the alarm message.
Input/Output: { #n See also: RCLF, STWS, RCWS STOKEYS Type: Command Description: Store Key Assignments Command: Defines multiple keys on the user keyboard by assigning objects to specified keys. is a real number of the form rc.p specifying the key by its row number r, its column number c, and its plane (shift) p.
Description: Store Minus Command: Calculates the difference between a number (or other object) and the contents of a specified variable, and stores the new value in the specified variable. The object on the stack and the object in the variable must be suitable for subtraction with each other.
Type: Command Description: Store Sigma Command: Stores obj in the reserved variable DAT. STO accepts any object and stores it in DAT. However, if the object is not a matrix or the name of a variable containing a matrix, an Invalid DATA error occurs upon subsequent execution of a statistics command.
the previous result and the new element. Repeats this until the list is exhausted, and returns the final result. STREAM is nominally designed for obj to be a program or command that requires two arguments and returns one result. !° Access: LIST PROCEDURES STREAM Input/Output:...
Input/Output: Level 3/Argument 1 [[ matrix ]] [[ matrix ]] [[ matrix ]] [[ matrix ]] “string { list grob grob PICT PICT See also: CHR, GOR, GXOR, NUM, POS, REPL, SIZE SUBST CAS: Substitute a value for a variable in an expression; the value can be numeric or an expression. SUBTMOD CAS: Perform a subtraction, modulo the current modulus.
Input/Output: See also: MIN, SVD SWAP Type: RPL Command Description: Swap Objects Command: Swaps the position of the two inputs. !° Access: STACK SWAP ™ in RPN mode executes SWAP when no command line is present. Input/Output: Level 2 See also: DUP, DUPN, DUP2, OVER, PICK, ROLL, ROLLD, ROT SYSEVAL Type:...
Input/Output: Level 2/Argument 1 'symb' 'symb x_unit x_unit 'symb' See also: +, %, %CH TABVAL CAS: Store given expression, and return results of substituting given values in the expression. TABVAR CAS: Compute variation table for a function, of the current variable, with a rational derivative. Type: Command Description: Stack to Tag Command: Combines objects in levels 1 and 2 to create tagged (labeled) object.
For a real argument that is an odd-integer multiple of 90 in Degrees mode, an Infinite Result exception occurs. If flag –22 is set (no error), the sign of the result (MAXR) matches that of the argument. For complex arguments: If the argument for TAN is a unit object, then the specified angular unit overrides the angle mode to determine the result.
The polynomial is calculated at the point global = 0. The expression symb may have a removable singularity at 0. The order, n, is the relative order of the Taylor polynomial–the difference in order between the largest and smallest power of global in the polynomial. TAYLR always returns a symbolic result, regardless of the state of the Numeric Results flag (–3).
TEXPAND CAS: Expand transcendental functions in an expression. TEXT Type: Command Description: Show Stack Display Command: Displays the stack display. TEXT switches from the graphics display to the stack display. TEXT does not update the stack display. !° L Access: OUT TEXT Input/Output: None See also:...
…Ó Access: TOOLS Input/Output: See also: CLKADJ, DATE TINC Type: Function Description: Temperature Increment Command: Calculates a temperature increment. TINC adds a temperature increment (not an actual temperature) to a point on a temperature scale. Use a negative increment to subtract the increment from the temperature. x initial temperature, and y is the resulting final temperature.
See Appendix H for a list of the hp49g+/hp48gII built-in menus and the corresponding menu numbers (x menu „&H Access: MENU TMENU Input/Output: See also: MENU, RCLMENU Type: Command Description: Total Command: Computes the sum of each of the m columns of coordinate values in the current statistics matrix (reserved variable DAT).
Description: I/O Translation Command: Specifies the character translation option. These translations affect only ASCII Kermit transfers and files printed to the serial port. Legal values for n are as follows: Translate character 10 (line feed only) to /from characters 10 and 13 (line feed with …µ...
t runcate 0 through 11 –1 through –11 For complex numbers and arrays, each real number element is truncated. For unit objects, the number part of the object is truncated. !´ Access: REAL Flags: Numerical Results (-3) Input/Output: Level 2/Argument 1 'symb 'symb [ array ]...
• ptype is a command name specifying the plot type. Executing the command TRUTH places the name TRUTH in ptype. • depend is a name specifying the independent variable on the vertical axis, or a list containing such a name and two numbers specifying the minimum and maximum values for the independent variable on the vertical axis (the vertical plotting range).
Input/Output: None See also: AMORT, TVMBEG, TVMEND, TVMROOT TVMBEG Type: Command Description: Payment at Start of Period Command: Specifies that TVM calculations treat payments as being made at the beginning of the compounding periods. …µ Access: TVMBEG Input/Output: None See also: AMORT, TVM, TVMEND, TVMROOT TVMEND Type:...
Object Type: User objects: Real number Complex number Character string Real array Complex array List Global name Local name Program Algebraic object Binary integer Graphics object Tagged object XLIB name Library Backup object !° Access: TEST Input/Output: See also: SAME, TVARS, VTYPE, == UBASE Type: Function...
See also: CONVERT, UBASE, UFL1 MINIF Type: Command Description: Converts a UFL1 (universal font library) fontset to an hp49g+/hp48gII minifont. You specify the fontset and give it an ID (0–255). The font must be a 6-by-4 font. …µ Access: MINIF Input/Output: Level 2/Argument 1 MINIFONT, MINIFONT...
Input/Output: See also: OVER, PICK, ROLL, ROLLD, SWAP, ROT UNTIL Type: Command Description: UNTIL Command: Starts the test clause in a DO … UNTIL … END indefinite loop structure. See the DO entry for more information. !° Access: BRANCH DO UNTIL Input/Output: None See also: DO, END...
Description: Upper Snedecor ' s F Distribution Command: Returns the probability utpf(n Snedecor ' s F random variable is greater than x, where n denominator degrees of freedom of the F distribution. The defining equations for utpf(n • For x •...
For any value z, The value n is rounded to the nearest integer and, when rounded, must be positive. !´ L Access: PROBABILITY Input/Output: Level 2/Argument 1 See also: UTPC, UTPF, UTPN UVAL Type: Function Description: Unit Value Function: Returns the numerical part of a unit object. …Û...
Type: Command Description: Stack to Vector/Complex Number Command: Converts two specified numbers into a 2-element vector or a complex number. The result returned depends on the setting of flags –16 and –19, as shown in the following table: Flag –16 clear (Rectangular mode) Flag –16 set (Polar mode) !´...
Type: Command Description: Variance Command: Calculates the sample variance of the coordinate values in each of the m columns in the current statistics matrix ( DAT). The variance (equal to the square of the standard deviation) is returned as a vector of m real numbers, or as a single real number if m = 1.
Input/Output: See also: VISITB, EDIT, EDITB VISITB Type: Command Description: For a specified variable, opens the contents in the most suitable editor for the object type. For example, if the specified variable holds an equation, the equation is opened in Equation Writer. …µ...
• Argument –1 works as with argument 0, except that the currently specified menu is also displayed. !, …, ~, ~!, and ~… are not by themselves valid keys. Arguments 0 and –1 do not affect the display, so that messages persist even though the keyboard is ready for input (FREEZE is not required).
The interrupt system detected a very low battery condition at the battery contacts (not the same as a low system voltage), and put the calculator in “Deep Sleep mode” (with the system clock running). When $ is pressed after the battery voltage is restored, the system warmstarts and puts a 1 in the log.
Page 318
Code A 5-nibble word (CMOS test word) in RAM was corrupt. (This word is checked on every interrupt, but it is used only as an indicator of potentially corrupt RAM.) Not used The alarm list is corrupt. System RPL jump to #0. The card module was removed (or card bounce).
PREDX, PREDY, PWRFIT, SCATRPLOT, YCOL XGET Type: Command Description: XModem Get Command: Retrieves a specified filename via XMODEM from another calculator. The other calculator needs to be in server mode for the operation to work ( START SERVER …µ Access: XGET...
Input/Output: Level 1/Argument 1 See also: BUFLEN, SBRK, SRECV, STIME XNUM CAS: Convert objects to 12-digit decimal numeric values. Type: Function Description: Exclusive OR Function: Returns the logical exclusive OR of two arguments. When the arguments are binary integers or strings, XOR does a bit-by-bit (base 2) logical comparison: •...
Numerical Results (-3) Input/Output: See also: MANT, SIGN XPUT Type: Command Description: XModem Send Command: Sends a specified filename via XMODEM to a calculator. The receiving calculator needs to be in Server mode ( …µ Access: XPUT Input/Output: See also:...
XROOT Type: Analytic function Description: xth Root of y Command: Computes the xth root of a real number. XROOT is equivalent to y If y < 0, x must be an integer. …» Access: Flags: Numerical Results (-3) Input/Output(RPN): Level 2 'symb 'symb' y_unit...
XSERV Type: Command Description: XModem Server Command: Puts the calculator in Xmodem server mode. When in server mode, the following commands are available: P: Put a file in the calculator G: Get a file from the calculator E: Execute a command line...
Type: Command Description: Sum of y-Values Command: Sums the values in the dependent variable column of the current statistical matrix (reserved variable DAT). The dependent variable column is specified by YCOL, and is stored as the second parameter in the reserved variable PAR. The default dependent variable column number is 2. …µ...
default values of y respectively for the hp49g+. …µ Access: YRNG Input/Output: Level 2/Argument 1 See also: AUTO, PDIM, PMAX, PMIN, XRNG YSLICE Type: Command Description: Y-Slice Plot Command: Sets the plot type to YSLICE. When plot type is set YSLICE, the DRAW command plots a slicing view of a scalar function of two variables.
The variables y and y near 3D plots. y must be less than y near …µ Access: YVOL Input/Output: Level 2/Argument 1 See also: EYEPT, XVOL, XXRNG, YYRNG, ZVOL YYRNG Type: Command Description: Y Range of an Input Plane (Domain) Command: Specifies the y range of an input plane (domain) for GRIDMAP and PARSURFACE plots.
Description: Z Volume Coordinates Command: Sets the height of the view volume in the reserved variable VPAR. and x are real numbers that set the z-coordinates for the view volume used in 3D plots. high These values are stored in the reserved variable VPAR. …µ...
See also: APPLY, QUOTE (Square Root) Type: Function Description: Square Root Analytic Function: Returns the (positive) square root of the argument. For a complex number (x where r = ABS (x If (x ) = (0,0), then the square root is (0, 0). The inverse of SQ is a relation, not a function, since SQ sends more than one argument to the same result.
These graphs show the inverse relation ' s1* Z ' for the case s1=1. For the other value of s1, the half-plane in the lower graph is rotated. Taken together, the half-planes cover the whole complex plane, which is the domain of SQ. View these graphs with domain and range reversed to see how the domain of SQ is restricted to make an inverse function possible.
Input/Output: L4/A1 lower limit See also: TAYLR, , (Undefined) CAS: The “undefined” symbol for numeric results that are not defined by the rules of arithmetic. ∞ (Infinity) CAS: Symbol signifies infinite numeric result, such as division of a non-zero number by zero. Σ...
Input/Output: … x See also: CL , RCL , STO , – Σ – (Sigma Minus) Type: Command Description: Sigma Minus Command: Returns a vector of m real numbers (or one number x if m = 1) corresponding to the coordinate values of the last data point entered by + into the current statistics matrix (reserved variable DAT).
When executed in stack syntax, executes a complete differentiation: the expression ' symb evaluated repeatedly until it contains no derivatives. As part of this process, if the variable of differentiation name has a value, the final form of the expression substitutes that value substituted for all occurrences of the variable.
and 0 ºF=459.67 ºR. But when ºC or ºF represents a difference in thermometer readings, then the temperature is a unit with no additive constant: 1 ºC=1 K and 1 ºF=1 ºR. The arithmetic operators +, –, %, %CH, and %T treat temperatures as differences, without any additive constant.
66, and “a” is character code 97. For unit objects, the two objects must be dimensionally consistent, and are converted to common units for comparison. If you use simple temperature units, the calculator assumes the values represent temperatures and not differences in temperatures. For compound temperature units, the calculator assumes temperature units represent temperature differences.
For unit objects, the two objects must be dimensionally consistent and are converted to common units for comparison. If you use simple temperature units, the calculator assumes the values represent temperatures and not differences in temperatures. For compound temperature units, the calculator assumes temperature units represent temperature differences.
For unit objects, the two objects must be dimensionally consistent and are converted to common units for comparison. If you use simple temperature units, the calculator assumes the values represent temperatures and not differences in temperatures. For compound temperature units, the calculator assumes temperature units represent temperature differences.
For unit objects, the two objects must be dimensionally consistent and are converted to common units for comparison. If you use simple temperature units, the calculator assumes the values represent temperatures and not differences in temperatures. For compound temperature units, the calculator assumes temperature units represent temperature differences.
Description: Multiply Analytic Function: Returns the product of the arguments. The product of a real number a and a complex number (x, y) is the complex number (xa, ya). The product of two complex numbers (x The product of a real array and a complex array or number is a complex array. Each element x of the real array is treated as a complex element (x, 0).
Page 339
<, >, , , ==, and . This means that, in order to do the calculation, the calculator will first convert any Celsius temperature to Kelvins and any Fahrenheit temperature to Rankines. (For other functions or compound temperature units, such as x_ºC/min, the calculator assumes temperature units represent temperature differences,...
<, >, , , ==, and . This means that, in order to do the calculation, the calculator will first convert any Celsius temperature to Kelvins and any Fahrenheit temperature to Rankines. (For other functions or compound temperature units, such as x_ºC/min, the calculator assumes temperature units represent temperature differences,...
(Divide) Type: Function Description: Divide Analytic Function: Returns the quotient of the arguments: the first argument is divided by the second argument. A real number a divided by a complex number (x, y) returns: A complex number (x, y) divided by a real number a returns the complex number (x/a, y/a). A complex number (x quotient: An array B divided by a matrix A solves the system of equations AX=B for X;...
For unit objects, the two objects must be dimensionally consistent and are converted to common units for comparison. If you use simple temperature units, the calculator assumes the values represent temperatures and not differences in temperatures. For compound temperature units, the calculator assumes temperature units represent temperature differences.
Input/Output: Level 2/Argument 1 'symb' 'symb See also: SAME, TYPE, <, , >, , (Store) Type: Command Description: Store Command: Stores an object into a specified variable. To create a backup object, store the obj into the desired backup location (identified as :n backup object.
Note: The Computer Algebra System should not be confused with Algebraic mode, which is one of the calculator’s operating modes. The CAS works with algebraic (or symbolic) expressions, which can be entered and used in Algebraic mode or in RPN mode.
An example of the function or command. Examples are also available in the built-in CAS help on the calculator. The examples given here are shown in Algebraic mode, but can be transferred to RPN mode according to the descriptions given in “Input” and “Output”.
–100, then repeat the operation. If a mode needs to be changed for an operation to work, the calculator will by default ask if the mode can be changed. If the Silent mode switch flag (flag –120) is set, the calculator changes the mode without asking.
The older models whose programs can be run on the hp48gII and the hp49g+ are the HP 28C and HP 28S, the HP 48S and the HP 48SX, and the HP 48G, HP 48GX and HP 48G+. These models only had the RPL programming language, so programs written for them should be used in RPN mode.
Page 349
Computer algebra command categories listed by menu CAS operations are listed here in order of the keyboard menus they appear in. These menus can be selected from the CAS menu in G, or directly from the keyboard. Many CAS commands are also available from the P menu, or from the „´...
Page 351
... 4-39 INTVX ... 4-42 LAPL ... 4-46 PREVAL ... 4-58 RISCH ... 4-62 SIGMA ... 4-65 SIGMAVX ... 4-65 Limits and series commands, !Ö DIVPC ... 4-25 ... 4-48 SERIES ... 4-64 TAYLOR0 ... 4-73 & Other operations are described in Chapter 3. LIMITS SERIES Differential equations commands, !Ö...
Page 352
Other operations are described in Chapter 3. CREATE Operations, !Ø OPERATIONS ... 4-15 ... 4-16 HADAMARD ... 4-36 ... 4-51 Other operations in the OPERATIONS All operations in the FACTORIZATION Quadratic form, !Ø QUADRATIC FORM ... 4-16 CHOLESKY ... 4-18 GAUSS ...
Page 353
SOLVE ... 4-67 ZEROS ... 4-80 Other operations are described in Chapter 3. Trigonometry commands, All operations in the HYPERBOLIC ACOS2S ... 4-12 ASIN2C ... 4-14 ASIN2T ... 4-14 ATAN2S ... 4-15 HALFTAN ... 4-36 SINCOS ... 4-67 TAN2SC ... 4-72 TAN2SC2 ...
Page 354
EXPLN ... 4-30 FDISTRIB ... 4-32 ... 4-48 LNCOLLECT ... 4-49 POWEXPAND ... 4-57 SIMPLIFY ... 4-66 Other operations in the submenu are described in Chapter 3. REWRITE Matrix convert, !Ú MATRIX CONVERT ... 4-15 ... 4-16 ... 4-60 SYST2MAT ...
Page 355
... 4-80 ... 4-81 ∞ ... 4-81 CAS menu commands, …µ These commands display menus or lists of CAS operations. ALGB ... 4-13 ARIT ... 4-13 CONSTANTS ... 4-19 DIFF ... 4-23 EXP&LN ... 4-28 INTEGER ... 4-42 MAIN ... 4-51 MATHS ...
Alphabetical command list The following pages contain the commands in alphabetical order. See "Computer algebra command categories" on page 4-5 to view the commands in the order that they appear on the menus. Chapters 11 to 16 in the User’s Guide provide examples using many of these commands. ABCUV Type: Command...
Arithmetic, !Þ Access: Input: Level 2/Argument 1: The first expression. Level 1/Argument 2: The second expression. Output: The sum of the two expressions, modulo the current modulus. Flags: Exact mode must be set (flag –105 clear). Numeric mode must not be set (flag –3 clear). Radians mode must be set (flag –17 set).
Add the CAS assumption that the global variable Z is real and positive. Note that ASSUME will replace Z>0 with Z≥0, which does not guarantee that Z is positive, so Z≥MINR is used instead, which guarantees that Z is greater than or equal to the smallest positive number the calculator recognizes. Command: ASSUME(Z≥MINR) Result: Z≥MINR...
Output: If the input is a list, returns the corresponding array. If the input is an array, returns the corresponding list. Example: Convert the following matrix to a list: Command: AXL([[0,1][1,0]]) Result: {{0,1},{1,0}} See also: AXM, AXQ Type: Command Description: Converts a numeric array (object type 3) to a symbolic matrix (object type 29), or a symbolic matrix to a numeric array.
Input: A list of vectors defining a vector sub-space of Output: A list containing the vectors of a basis of the vector sub-space. Flags: Exact mode must be set (flag –105 clear). Numeric mode must not be set (flag –3 clear). Example: Find the vectors that form a basis of the sub-space defined by [1,2,3], [1,1,1], and [2,3,4] Command:...
Input: Level 2/Argument 1: A vector of the first congruence (expression and modulus). Level 1/Argument 2: A vector of the second congruence (expression and modulus). Output: A vector of the solution congruence (expression and modulus). Flags: Exact mode must be set (flag –105 clear). Numeric mode must not be set (flag –3 clear).
COLLECT Type: Command Description: Factorizes a polynomial or an integer. This command is identical to the COLCT command and similar to the FACTOR command. Unlike FACTOR it does not factorize symbolically into square roots. It is included to ensure backward-compatibility with earlier calculators. Algebra, …×...
Command: CYCLOTOMIC(20) Result: X^8-X^6+X^4-X^2+1 DEDICACE Type: Function Description: Displays a greeting from the CAS team and dedication to all HP calculator users. Catalog, …µ Access: Example: In algebraic mode, the message can be extended. Try: Type: Function Description: Defines a variable or a function. Works like the DEFINE command, except that it returns a result and can be included in an algebraic expression.
Result: See also: DEFINE, STORE DEGREE Type: Function Description: Returns the degree of a polynomial expression. Returns 0 for a constant expression, but –1 if the expression is zero. Catalog, …µ Access: Input: Level 1/Argument 1: A polynomial expression or equation; all powers must be integers or real numbers with no fractional part.
Input: The function or list of functions to be differentiated. Output: The derivative, or a vector of the derivatives, of the function or functions. Flags: Exact mode must be set (flag –105 clear). Numeric mode must not be set (flag –3 clear). See also: DERIV, dn, ∂...
DIFF Type: Command Description: Displays a menu or list containing the CAS commands for differential calculus, including commands for working with series. Catalog, …µ Access: Flags: If the CHOOSE boxes flag is clear (flag –117 clear), displays the operations as a numbered list.
Arithmetic, !Þ Access: Input: Level 2/Argument 1: The dividend. Level 1/Argument 2: The divisor. Output: Level 2/Item 1: The quotient. Level 1/Item 2: The remainder. Flags: Exact mode must be set (flag –105 clear). Numeric mode must not be set (flag –3 clear). Step-by-step mode can be set (flag –100 set).
DIVMOD Type: Function Description: Divides two expressions modulo the current modulus. Arithmetic, !Þ Access: Input: Level 2/Argument 1: The dividend. Level 1/Argument 2: The divisor. Output: The quotient of the terms modulo the current modulus. Flags: Exact mode must be set (flag –105 clear). Numeric mode must not be set (flag –3 clear).
Flags: Exact mode must be set (flag –105 clear). Numeric mode must not be set (flag –3 clear). Example: Define a function f =√(a+1) by typing DEF(F(A)=√(A+1)). Then tabulate the domain over which it is defined and undefined. Command: DOMAIN(F(X)) Result: ∞...
Access: Access is by typing the letter “d” from the alpha keyboard, followed by the number n, before the function whose differential is required. Output: dn does not change its argument, it works like the negative sign placed before a number or an expression.
Command: EPSX0(1E-13*X+.01) Result: 0*X+.01 EULER Type: Function Description: For a given integer, returns the number of integers less than the integer that are co-prime with the integer. (Euler’s !Þ Access: INTEGER Input: A non-negative integer, or an expression that evaluates to a non-negative integer. Output: The number of positive integers, less than, and co-prime with, the integer.
Description: Expands and simplifies an algebraic expression. This command is similar to the EXPAN command (which is included to ensure backward-compatibility with the HP 48-series calculators), except that EXPAND does more a more in-depth analysis and often does a better job at simplifying an expression than EXPAN.
EXPANDMOD Type: Function Description: Expands and simplifies an algebraic expression, or an array of expressions, modulo the current modulus. !Þ Access: MODULO Input: An expression, or an array of expressions. Output: The expanded and simplified expression, or array of expressions, modulo the current modulus.
Example: Factorize the following: Command: FACTOR(X^2+5*X+6) Result: (X+2)(X+3) See also: EXPAN, EXPAND FACTORMOD Type: Function Description: Factorizes a polynomial modulo the current modulus. The modulus must be less than 100, and a prime number, it can be changed by MODSTO. Arithmetic, !Þ...
Input: An array of the form [Root 1, multiplicity/pole 1, Root 2, multiplicity/pole 2, . . .] The multiplicity/pole must be an integer. A positive number signifies a multiplicity. A negative number signifies a pole. Output: The rational polynomial with the specified roots and multiplicities/poles. The polynomial is written using the current independent variable.
Command: FOURIER(X^2,0) EXPAND(ANS(1)) Result: π 4/3* FROOTS Type: Command Description: For a rational polynomial, returns an array of its roots and poles, with their corresponding multiplicities. This is the inverse of FCOEF and uses the same notation for roots and poles. Arithmetic, !Þ...
Level 2/Item 3: The diagonal representation of the quadratic form. Level 1/Item 4: The vector of the variables. Flags: Exact mode must be set (flag –105 clear). Numeric mode must not be set (flag -3 clear). Radians mode must be set (flag –17 set). Example: Find the Gaussian symbolic quadratic form of the following: 2axy...
GCDMOD Type: Function Description: Finds the greatest common divisor of two polynomials modulo the current modulus. Arithmetic, !Þ Access: Input: Level 2/Argument 1: A polynomial expression. Level 1/Argument 2: A polynomial expression. Output: The greatest common divisor of the two expressions modulo the current modulus. Flags: Exact mode must be set (flag –105 clear).
Flags: Exact mode must be set (flag –105 clear). Numeric mode must not be set (flag -3 clear). Radians mode must be set (flag –17 set). Example: Reduce the polynomial: y – xy – 1 with respect to the Grœbner basis (obtained in the example for GBASIS): x, 2y –...
Catalog, …µ Access: See also: CASCMD HERMITE Type: Function Description: Returns the nth Hermite polynomial. Arithmetic, !Þ Access: Input: A non-negative integer. Output: The corresponding polynomial expression. Flags: Exact mode must be set (flag –105 clear). Numeric mode must not be set (flag -3 clear). Example: Find the Hermite polynomial with degree 4.
-- - -- - -- - -- - -- - -- - -- - -- - Result: See also: CON, IDN, RANM, VANDERMONDE HORNER Type: Command Description: Executes a Horner scheme on a polynomial. That is, for a given polynomial P, and a number r, HORNER returns QUOT(P/(x–r)), r and also P(r) Arithmetic, !Þ...
Description: Determines the basis of the intersection between two vector spaces. Matrices, !Ø L Access: Input: Two lists of vectors Output: A list of vectors. Flags: Exact mode must be set (flag –105 clear). Example: Find a vector of a basis of the intersection of the vector sub-spaces defined by [1, 2] and [2, 4] Command: IBASIS({[1,2]}, {[2,4]}) Result:...
Result: SIN(X)*(X)+COS(X) See also: INTVX, INT, PREVAL, RISCH ICHINREM Type: Command Description: Solves a system of two congruences in integers using the Chinese Remainder theorem. Arithmetic, !Þ Access: Input: Level 2/Argument 1: A vector of the first value and the modulus. Level 1/Argument 2: A vector of the second value and the modulus.
Level 1/Item 3: b. Note the order, c is first. Flags: Exact mode must be set (flag –105 clear). Numeric mode must not be set (flag -3 clear). Radians mode must be set (flag –17 set). Example: Find a, b and c such that a18 + b24 = c, where c is the GCD of 18 and 24. Command: IEGCD(18,24) Result:...
Input: Level 3/Argument 1: A function. Level 2/Argument 2: The variable to obtain the derivative with respect to. Level 1/Argument 3: The point at which to calculate the antiderivative. This point can be a variable or an expression. Output: The antiderivative of the function for the given variable, at the point you specified. Flags: Exact mode must be set (flag –105 clear).
Flags: Exact mode must be set (flag –105 clear). Numeric mode must not be set (flag -3 clear). Example: Solve the following for x, modulo the default modulus, 13. 2x 1 Command: INVMOD(2) Result: IQUOT Type: Function Description: Returns the integer quotient (or Euclidean quotient) of two integers. That is, given two integers, a and b, returns the integer q, such that: a = qb + r, and 0 ≤...
Example 1: Analyze the isometry given by the matrix 1 – 1 – 0 Command: ISOM([[0,-1] [-1,0]]) Result: { [1, 1] 1}, meaning the matrix represents a symmetry in the line – isometry. Example 2: Analyze the isometry given by the matrix Command: ISOM([[1/2, - 3/2][ 3/2, 1/2]]) Result:...
{0: [1,-1]}, 2: [1,1]} [0,2]} Type: Command Description: Computes the basis of the kernel of a linear application Matrices, !Ø Access: Input: A matrix representing a linear application Output: A list of vectors representing a basis of the kernel (also called the nullspace) of Flags: Exact mode must be set (flag –105 clear).
Example: Find the Laplace transform of e Command: LAP(EXP(X)) Result: 1/(X-1) See also: ILAP, LAPL LAPL Type: Command Description: Returns the Laplacian of a function with respect to a list of variables. !Ö Access: DERIV Input: Level 2/Argument 1:An expression. Level 1/Argument 2: A vector of variables.
Input: Level 3/Argument 1: The number of rows you want in the resulting matrix. Level 2/Argument 2: The number of columns you want in the resulting matrix. Level 1/Argument 3: A program that uses two arguments. An expression with the two variables I, J can be used instead.
If the variable approaching a value is the current CAS variable, it is sufficient to give its value alone. The ∞ symbol provided by the calculator can be used to set the limiting value at plus or minus infinity.
Input: An expression. Output: The linearized expression. Flags: Exact mode must be set (flag –105 clear). Numeric mode must not be set (flag -3 clear). Radians mode must be set (flag –17 set). Example: Linearize the following expression: Command: LIN(X*(EXP(X)*EXP(Y))^4) Result: X*EXP(4X+4Y) See also:...
Flags: Exact mode must be set (flag –105 clear). Numeric mode must not be set (flag -3 clear). Radians mode must be set (flag –17 set). Example 1: Simplify the following expression: 2(ln(x)+ln(y)) Command: LNCOLLECT(2(LN(X)+LN(Y)) Result: LN(X^2*Y) Example 2: Compare the effect of LNCOLLECT with the effect of EXP2POW on the expression e Command: LNCOLLECT(EXP(N*LN(X)) Result:...
Result: {COS(B)/2*A + MYFUNC(PQ) + 1/T, [MYFUNC(PQ),COS(B),A,T]} See also: LNAME Type: Command Description: Returns details of a square matrix, including the information needed to obtain the adjoint matrix. The adjoint matrix is obtained by multiplying the inverse matrix by the determinant. Matrices, !Ø...
See also: ALGB, ARIT, CONSTANTS, DIFF, EXP&LN, INTEGER, MAIN, MATR, MODULAR, POLYNOMIAL, REWRITE, TESTS, TRIGO MATR Type: Command Description: Displays a menu or list containing the CAS commands for matrix operations. Catalog, …µ Access: Flags: If the CHOOSE boxes flag is clear (flag –117 clear), displays the operations as a numbered list.
The four functions are displayed above the A to D keys. In Algebraic mode, NOVAL is Result: returned as item 1. See also: MENU, TMENU MKISOM Type: Command Description: Returns the matrix representation for a given isometry. Matrices, !Ø Access: Input: Level 2/Argument 1: For a 3-d isometry, a list of the characteristic elements of the isometry.
Level 1/Item 3: A vector representing an approximate solution to the system of equations. Flags: Exact mode must be set (flag –105 clear), The calculator will set approximate mode and will look for approximate results if exact results are not found.
Flags: Exact mode must be set (flag –105 clear). Numeric mode must not be set (flag -3 clear). Radians mode must be set (flag –17 set). Example: Find the product of 2x and 38x Command: MULTMOD(2*X,38*X^2) Result: NEXTPRIME Type: Function Description: Given an integer, returns the next prime number larger than the integer.
See also: GAUSS PARTFRAC Type: Command Description: Performs partial fraction decomposition on a partial fraction. Algebra …× or Arithmetic, !Þ Access: Input: An algebraic expression. Output: The partial fraction decomposition of the expression. Flags: Exact mode must be set (flag –105 clear). Numeric mode must not be set (flag -3 clear).
Example: Find the minimal polynomial of Command: PMINI([[0,1][1,0]]) 1 0 0 1 0 1 1 0 0 0 0 0 X – Result: So, the minimal polynomial is zeros, except for the result. See also: JORDAN, PCAR POLYNOMIAL Type: Command Description: Displays a menu or list of CAS operations with polynomials.
Description: Rewrites an expression raised to a power as a product. If followed by repeated execution of DISTRIB allows an expression to be expanded fully, step by step. !Ú Access: REWRITE Input: An expression raised to a power. Output: The result from applying the distributive property of exponentiation over multiplication. Flags: Exact mode must be set (flag –105 clear).
Description: Given an integer, finds the closest prime number smaller than the integer. Like ISPRIME?, it uses a pseudoprime check for large numbers. Arithmetic, !Þ Access: Input: An integer or an expression that evaluates to an integer. Output: The closest prime number smaller than the integer. Example: Find the closest, smaller prime number to 145.
Description: Returns the quotient part of the Euclidean division of two polynomials. Arithmetic, !Þ Access: Input: Level 2/Argument 1: The numerator polynomial. Level 1/Argument 2: The denominator polynomial. Output: The quotient of the Euclidean division. Flags: Exact mode must be set (flag –105 clear). Numeric mode must not be set (flag -3 clear).
Output: The equivalent matrix in echelon form. Flags: Exact mode must be set (flag –105 clear). Numeric mode must not be set (flag -3 clear). Complex mode must be set (flag –103 set) if the input is complex. See also: rref, RREFMOD REMAINDER Type:...
!Þ !« Access: POLY Input: Level 2/Argument 1: The first polynomial. Level 1/Argument 2: The second polynomial. Output: The determinant of the two matrices that correspond to the polynomials. Flags: Exact mode must be set (flag –105 clear). Numeric mode must not be set (flag -3 clear). Complex mode must be set (flag –103 set) if either input contains complex terms.
Output: An equivalent matrix in row reduced echelon form. Flags: Exact mode must be set (flag –105 clear). Numeric mode must not be set (flag -3 clear). Step-by-step mode can be set (flag –100 set). Example: Solve the system of linear equations: 3x + 4y = 5 5x + 6y = 7 by reducing the augmented matrix that represents this system.
row reduction is done without reducing the last column, but the last column will be modified by the reduction of the rest of the matrix. Example: Reduce to row-reduced echelon form, modulo 3, the matrix: Command: rref[[2,1][3,4]] Result: [[-1,0][0,1]] See also: rref SERIES Type:...
Command: SEVAL(SIN(3*X-Y+2*Z-(2*X-Z)) - SIN(X-2*Y+(Y+3*Z)) Result: -SIN( –(X+3*Z)) -SIN( See also: EXPAND, SIMPLIFY SIGMA Type: Function Description: Calculates the discrete antiderivative of a function f with respect to a specified variable. This is a function G such that: G(x + 1) – G(x) = f(x) where x is the specified variable.
Input: An algebraic expression. Output: A list containing, the points where the expression changes sign, and between each pair of points, the sign of the expression between those points. Flags: Exact mode must be set (flag –105 clear). Numeric mode must not be set (flag -3 clear). Radians mode must be set (flag –17 set).
SINCOS Type: Command Description: Converts complex logarithmic and exponential expressions to expressions with trigonometric terms. Trigonometry, …ÑL, PL Access: Input: An expression with complex linear and exponential terms. Output: The expression with logarithmic and exponential subexpressions converted to trigonometric and inverse trigonometric expressions. Flags: Exact mode must be set (flag –105 clear).
If complex mode is set (flag –103 set) then SOLVE will search for complex roots as well as real ones. Complex roots are displayed according to the coordinate system selected. Example: Solve the following expression for 0, where X is the default variable on the calculator: – –...
Description: Stores a name or list of names in the current CAS variable. This is the same as storing into the VX variable in the CASDIR directory. By default, the CAS variable is called X; this command allows a program to change that name. Catalog, …µ...
Description: Substitutes a value for a variable in an expression. The value can be numeric or an expression. This is similar to the Where function, denoted by the symbol |, but SUBST substitutes without evaluating the resulting expression. Algebra, …×L, P Access: Input: Level 2/Argument 1: An expression.
Result: {[1, 0], [[1, 2][0, 1]]} SYST2MAT Type: Command Description: Converts a system of linear equations in algebraic form to matrix form. !Ú Access: MATRX Input: Level 2/Argument 1: A vector containing a system of linear equations. An expression with no equal sign is treated as an equation setting the expression equal to zero.
the variation in terms of the dependent variable, the function value. Level 1/Item 3: A graphic object that shows how the variation table was computed. Flags: Exact mode must be set (flag –105 clear). Numeric mode must not be set (flag -3 clear). Radians mode must be set (flag –17 set).
TAN2SC2 Type: Command Description: Replaces tan(x) terms in an expression with sin(2x)/1+cos(2x) terms. , Trigonometry, …ÑL Access: TRIG Input: An expression Output: The transformed expression. Flags: Exact mode must be set (flag –105 clear). Numeric mode must not be set (flag -3 clear). Radians mode must be set (flag –17 set).
TCOLLECT Type: Command Description: Linearizes products in a trigonometric expression by collecting sine and cosine terms, and by combining sine and cosine terms of the same argument. Trigonometry, …ÑL Access: Input: An expression with trigonometric terms. Output: The simplified expression. Flags: Exact mode must be set (flag –105 clear).
Description: Linearizes and simplifies trigonometric expressions. Note that this function does not collect sin and cos terms of the same angle. , Trigonometry, …ÑL Access: TRIG Input: An expression. Output: The transformation of the expression. Flags: Exact mode must be set (flag –105 clear). Numeric mode must not be set (flag -3 clear).
Output: The transformed expression. Flags: Exact mode must be set (flag –105 clear). Numeric mode must not be set (flag -3 clear). Radians mode must be set (flag –17 set). See also: TRIG, TRIGSIN, TRIGTAN TRIGO Type: Command Description: Displays a menu or list containing the CAS commands for transforming trigonometric expressions.
TRUNC Type: Function Description: Truncates a series expansion. Catalog, …µ Access: Input: Level 2/Argument 1: The expression that you want to truncate. Level 1/Argument 2: The expression to truncate with respect to. Output: The expression from Level 2/Argument 1, with terms of order greater than or equal to the order of the expression in Level 1/Argument 2 removed.
Command: UNASSIGN({U, V}) Result: {17.5, V} See also: ADDTOREAL, ASSUME, DEF, LOCAL, PURGE, STO, STORE, UNASSUME, UNBIND UNASSUME Type: Command Description: Removes all assumptions on specified global variables, whether created by default, by ADDTOREAL or by ASSUME. Does this by removing the variable names from the list REALASSUME.
Example: Build the row version of the Vandermonde matrix from the following list of objects: {x, y, z} Command: TRAN(VANDERMONDE({x,y,z})) 1 1 1 x y z Result: See also: CON, HILBERT, IDN, RANM Type: Command Description: Returns the Computer Algebra System version number, and date of release. Catalog, …µ...
Description: Converts an object or a list of objects to 12-digit decimal numeric format. Similar to →NUM except that →NUM does not work with lists, nor in programs in algebraic mode. Catalog, …µ Access: Input: An object or list of objects. Output: The objects in numeric format.
Page 425
For example you could define $=1_? Then other currencies could be defined as multiples or fractions of 1_? The calculator has symbols for Yen, Pounds and Euros; other currencies could be defined using their names. The unit conversion system would then check conversions between them for consistency because ? is recognized as a base unit.
5.Equation Reference The Equation Library consists of 15 subjects and more than 100 titles. Each subject and title has a number that you can use with SOLVEQN to specify the set of equations. These numbers are shown in parentheses after the headings.
Page 428
Subject, var (subj, title) COLUMNS AND BEAMS, 22 **********(1)***** Elastic Buckling (1,1) Eccentric Columns (1,2) Simple Deflection (1,3) Simple Slope (1,4) Simple Moment (1,5) Simple Shear (1,6) Cantilever Deflection (1,7) Y Cantilever Slope (1,8) Cantilever Moment (1,9) Cantilever Shear (1,10) ELECTRICITY, 47 ****************(2)***** Coulomb's Law (2,1) Ohm's Law and Power (2,2)
Columns and Beams (1) Variable Description º Eccentricity (offset) of load Critical stress Maximum stress Slope at x Cross-sectional area Distance to point load Distance to edge fiber (Eccentric Columns), or Distance to applied moment (beams) Modulus of elasticity Moment of inertia Effective length factor of column Length of column or bean Applied moment...
Electricity (2) Variable Description Relative permittivity Relative permeability Angular frequency Resonant angular frequency Phase angle p , s Parallel and series phase angles Resistivity ∆I Current change ∆t Time change ∆V Voltage change Wire cross-section area (Wire Resistance), or Solenoid cross-section area (Solenoid Inductance), or Plate area (Plate Capacitor) C, C1, C2 Capacitance...
Variable Description Qp,Qs Parallel and series quality factors Charge distance R,R1,R2 Resistance ri,ro Inside and outside radii Rp,Rs Parallel and series resistances Time ti,tf Initial and final times Voltage, or Total voltage (Voltage Divider) Voltage across R1 Vi,Vf Initial and final voltages Vmax Maximum voltage Reactance of capacitor...
RLC Current Delay (2, 11) The phase delay (angle) is positive for current lagging voltage. Equations: X L X C – - - - - - - - - - - - - - - - - - - - - - - - T A N - - - - - - - - - - - - Example:...
Sinusoidal Voltage (2, 22) Equations: V m ax S I N Example: Given: Vmax=110_V, t=30_µs, f=60_Hz, =15_°. Solution: =376.9911_r/s, V=29.6699_V. Sinusoidal Current (2, 23) Equations: I m a x S I N Example: Given: t=32_s, Imax=10_A, =636_r/s, =30_°. Solution: I=9.5983_A, f=101.2225_Hz. Fluids (3) Variable Description...
Variable Description Volume flow rate Reynolds number v1, v2 Initial and final velocities vavg Average velocity Power input y1, y2 Initial and final heights References: 3,6,9. Pressure at Depth (3, 1) This equation describes hydrostatic pressure for an incompressible fluid. Depth h is positive downwards from the reference.
Example: Given: P2=30_psi, P1=65_psi, y2=100_ft, y1=0_ft, =64_lb/ft^3, D1=24_in, hL=2.0_ft^2/s^2, W=25_hp, v1=100_ft / s. Solution: Q=18849.5559_ft^3/min, M=1206371.5790_lb/min, ∆P=-35_psi, ∆y=100_ft, v2=93.1269_ft /s, A1=452.3893_in^2, A2=485.7773_in^2, D2=24.8699_in. Flow in Full Pipes (3, 4) These equations adapt Bernoulli's equation for flow in a round, full pipe, including power input (or output) and frictional losses.
Variable Description Projected area relative to flow Centripetal acceleration at r Tangential acceleration at r Drag coefficient Energy Force at r or x, or Spring force (Hooke's Law), or attractive force (Law of Gravitation), or Drag force (Drag force) Moment of inertia Spring constant Ki,Kf Initial and final kinetic energies...
Gases (5) Variable Description Mean free path Flow density Stagnation density Flow area Throat area Molecular diameter Specific heat ratio Mach number Mass Molecular weight Number of moles, or Polytropic constant (Polytropic Processes) Pressure, or Flow pressure (Isentropic Flow) Stagnation pressure Pseudocritical pressure Pi, Pf Initial and final pressures...
Convection (6, 4) Equations: Example: Given: Tc= 300_K, A=200_m^2, h=0.005_W/(m^2 K), q=10_W. Solution: ∆T=10_ C, Th=36.8500_ C. Conduction + Convection (6, 5) If you have fewer than three layers, give the extra layers a zero thickness and any nonzero conductivity. The two temperatures are fluid temperatures–if instead you know a surface temperature, set the corresponding convective coefficient to 10 Equations:...
Black Body Radiation (6, 6) (See "F0 " in Chapter 3.) Equations: 2 T ; f e b m ax T Example: Given: T=1000_ C, 1=1000_nm, 2=600_nm, A=1_cm^2. Solution: max=2276.0523_nm, eb=148984.2703_W/m^2, f=.0036, eb12=537.7264_W/m^2, q=14.8984_W. Magnetism (7) Variable Description Relative permeability Magnetic field Separation distance Force...
Motion (8) Description Variable Angular acceleration Angular velocity (Circular Motion), or Angular velocity at t (Angular Motion) Initial angular velocity Fluid density Angular position at t Initial angular position (Angular Motion), or Initial vertical angel (Projectile Motion) Acceleration Projected horizontal area Centripetal acceleration at r Drag coefficient Mass...
Optics (9) Variable Description Angle of incidence Angle of refraction Brewster angle Critical angle Focal length Magnification n, n1, n2 Index of refraction r, r1, r2 Radius of curvature Distance to object Distance to image For reflection and refraction problems, the focal length and radius of curvature are positive in the direction of the outgoing light (reflected or refracted).
Critical Angle (9, 2) Equation: S I N Example: Given: n1=1, n2=1.5. Solution: c=41.8103_°. Brewster's Law (9, 3) The Brewster angle is the angle of incidence at which the reflected wave is completely polarized. Equations: T A N - - - - - - Example: Given: n1=1, n2=1.5.
Equations: -- - -- - -- - -- - – Example: Given: r1=5_cm, r2=20_cm, n=1.5, u=50_cm. Solution: f=13.3333_cm, v=18.1818_cm, m= -0.3636. Oscillations (10) Variable Description Angular frequency Phase angle Cone angle Acceleration at t Frequency Shear modulus of elasticity Cone height Moment of inertia Polar moment of inertia Spring constant...
Example: Given: xm=10_cm, =15_r/s, =25_°, t=25_ s. Solution: x=9.0615_cm, v= -0.6344_m/s, a= -20.3884_m/s^2, f= 2.3873_Hz. Plane Geometry (11) Variable Description Central angle of polygon Vertex angle of polygon Area Base length (Rectangle, Triangle), or Length of semiaxis in x direction (Ellipse) Circumference Distance to rotation axis in y direction Height (Rectangle, Triangle), or...
Solid Geometry (12) Variable Description Total surface area Base length Distance to rotation axis in z direction Height in z direction (Cone, Cylinder), or Height in y direction (Parallelepiped) I, Ixx Moment of inertia about x axis Moment of inertia in x direction at d Moment of inertia about z axis Mass Radius...
Sphere (12, 4) Equations: -- - Example: Given: d=14_cm, m=3.75_kg, Id=486.5_lb in^2. Solution: r=21.4273_cm, V=41208.7268_cm^3, A=5769.5719_cm^2, I=0.0689_kg m^2. Solid State Devices (13) Variable Description Forward common-base current gain Reverse common-base current gain Body factor Modulation parameter Electron mobility Fermi potential Length adjustment (PN Step Junctions), or ∆L Channel encroachment (NMOS Transistors)
Page 476
Variable Description Output conductance Transconductance Diode current Total base current Total collector current ICEO Collector current (collector-to-base open) Collector current (emitter-to-base open) Collector-to-base saturation current ID, IDS Drain current Total emitter current Emitter-to-base saturation current Transistor saturation current Current density Saturation current density Drawn mask length (PN Step Junctions), or Effectives gate length...
Example: Given: ND=1E22_cm^–3, NA=1E15_1/cm^3, T=26.85_ C, Js=1E–6_ A/cm^2, Va=-20_V, E1=3.3E5_V/cm, W=10_ , ∆W=1_ , L=10_ , ∆L=1_ , xj=2_ . Solution: Vbi=.9962_V, xd=5.2551_ , Cj=2005.0141_pF/cm^2, Emax=79908.5240_V/cm, BV=358.0825_V, J= -1.0E–12_A/cm^2, Aj=3.1993E–6_cm^2, I= -3.1993E–15_mA. NMOS Transistors (13, 2) These equations for a silicon NMOS transistor use a two-port network model. They include linear and nonlinear regions in the device characteristics and are based on a gradual-channel approximation (the electric fields in the direction of current flow are small compared to those perpendicular to the flow).
Bipolar Transistors (13, 3) These equations for an NPN silicon bipolar transistor are based on large-signal models developed by J.J. Ebers and J.L. Moll. The offset-voltage calculation differs depending on whether the transistor is saturated or not. The equations also include the special conditions when the emitter-base or collector-base junction is open, which are convenient for measuring transistor parameters.
Variable Description Minimum principal normal stress Normal stress on place of maximum shear stress Normal stress in x direction Normal stress in rotated-x direction Normal stress in y direction Normal stress in rotated-y direction Shear stress Maximum shear stress x1y1 Rotated shear stress Shear stress Rotation angle...
Variable Description Longitudinal amplitude Time Speed of sound in medium (Sound Waves), or Wave speed (Transverse Waves, Longitudinal Waves) Position Transverse displacement at x and t Transverse amplitude Reference: 3. Transverse Waves (15,1) Equations: y m S I N k x –...
References 1. Dranchuk, P.M., R.A. Purvis, and D.B. Robinson. "Computer Calculations of Natural Gas Compressibility Factors Using the Standing and Katz Correlation," In Institute of Petroleum Technical Series, no. IP 74-008. 1974. 2. Gere, James M., and Stephen P. Timoshenko. Mechanics of Materials, 2d ed. PWS Engineering, Boston, 1984.
When the library is attached after the next warmstart (or reset), it appears in the APPS menu. You may reset the calculator by pressing $and C at the same time. Note: The tools and programs in this library are extremely powerful, and misusing them may cause memory lost.
PEEKARM Memory read: reads nibbles from a specified address in memory in the ARM address space. Level 2 Level 1 Binary integer (address) Binary Integer (number of byte to read) POKEARM Memory write command: Writes bytes in ARM memory address space. Note: You can not write data in the Flash ROM using this command.
Code to hex: Returns the hex representation of a code (Assembly program) object. Level 1 -> Level 1 Code -> string Hex to Code: Returns the code (Assembly program) object represented by an hex string. A hex string is a string that only contains the characters ‘0’ to ‘9’ and ‘A’ to ‘F’. Level 1 ->...
R~SB Real to System binary conversions: This command converts a system binary to a real and a real to a system binary. Level 1 -> Level 1 Real -> System binary integer -> System binary System binary -> Real SB~B Binary integer to System binary conversions: This command converts a system binary to a binary integer and a binary integer to a system binary.
Create program: This is equivalent to the RPL Note: this command will also convert a symbolic or a list in a program object. Level n+1..2 Level 1 List/Program/Symbolic Objects real (n) Create symbolic: This is equivalent to the RPL symbolic in a list. Level n+1..2 Level 1 List/Program/Symbolic...
Page 493
3.1 Extension program It is possible to enhance some of the statistics menus using a user library. The hp49g+/hp48gII does not provide every possible function in every area, but they let you customize the built in menu in order to add your functions as if they were built in.
The operating system can not control what a low level program is doing. Therefore, any programming error is likely to cause the calculator to crash (with potential memory lost). A careful developer will always save source code in the internal flash ROM or port 1 for protection before trying low level programs.
Page 495
A source is a set of instructions, comments, and separation characters and ends with a carriage return and an character. MASD is case sensitive, so be careful, as Separation characters are those with an ASCII number below 32. They include spaces, tabs, line feed and carriage return.
Page 496
Insuffisant Memory Matrix Error Define Error ARM register expected ARM invalid imediate 4.1.6 Links Links are secondary source files that MASD can be directed to compile (equivalent to the {$I} directive in Pascal and #include in C). As there is no linking phase with MASD (like in C), a multi source project will usually have the form of a main source file that contains a certain number of links.
Page 497
A link label is identified by a ‘ Note 1: In projects, using less global labels is better because a global label takes longer to compile and because it gives a better program structure. A good habit is to use global labels to cut the program in subroutines, and to use local labels inside these subroutines.
Page 498
These features are extremely useful to define area of memory for storage of ASM program variables. Note 1: If the entry point library (see related section) is installed on your calculator, all the values in the constant library will be available in your programs the same way than constants are.
Page 499
4.1.12 Filename conventions MASD sometimes needs to find a file in the calculator’s memory. The file can be found either by specifying the file name and location, or only the file name to be search in the directory search list.
Page 500
4.1.13 Compilation directive The following instruction modifies the way MASD reacts and compiles things. They are valid in all modes: !PATH+ DirName !NO CODE !DBGON !DBGOFF !1-16 !1-15 !RPL !ASM !ARM !FL=0.a !FL=1.a !?FL=0.a !?FL=1.a !ABSOLUT Addr !ABSADR Addr !EVEN !ADR !COMPEXP !STAT...
Page 501
1 Type: 9=Label 2=Constant for labels: 5 Address of label for constants: 16 Value of constant 5 Number of source->code associations 5 Offset in code (this list is sorted by offset) 2 Number of link this instruction comes from 5 Character offset in link where this instruction starts Notes: If the source string is unnamed, i.e.
Page 502
You can define the field mask by using the using the mask in Cw as in this example: LC FF000000000000FF SETFLD1 LA 123456789ABCDEF0 LC 0FEDCBA987654321 A=A!C.F1 A is now equal to: 1F3456789ABCDEF1 ie: the instruction on F fields equate to: reg1= (reg1 &...
Page 503
A block is enclosed in , and can be nested within another block. The following instructions deal with blocks. SKIPS instructions Equivalents Defines a block (generates no code) SKIP { GOTO .S SKIPL { GOTOL .S SKIPC { GOC .S SKC { GOC .S SKIPNC {...
Page 504
Using SKELSE, SKEC, SKENC, SKLSE instructions, two blocks create an IFNOT-THEN-ELSE structure. These instructions Are equivalent to ?A=0.A SKIP ?A=0.A GOYES.Beg2 *.Beg1 GOTO.End2 % and not End1 EXIT GOTO.Beg1 *.End1 GOTO.End2 SKELSE *.Beg2 A+1.A A+1.A GOTO.End2 EXIT GOTO.Beg2 *.End2 Note: SKELSE places a GOTO between the 2 blocks, SKEC places a GOC, SKENC a GONC and SKLSE places nothing.
Page 506
Note 5: Be careful when using subtraction; it’s easy to be misled. D0-5-6.A is equivalent to D0+1.A, not D0-11.A The HP special character can also be used The HP special character can also be used The HP <= character can be used The HP >= character can be used...
Page 507
?HST=a test that all bits set to 1 in a are 0 in the HST register See above. This is only valid in emulated Saturn The HP special character can be used instead of # GOTO is limited to 1kb jumps...
Page 509
Sets bits in the HST register (XM=1, SB=1, SR=1 and MP=1 are also available). Note: the program ST=0.0 SB=1 ?SB=0 { ST=1.0 } will set ST0 to 0 if the calculator is non-emulated and to 1 if it is emulated. Test for HST bits. See HST=1.x comments See section 5.2.1...
Page 510
- 003A3: MANU_USER_TEST - 0039C: MANUFACTURE_TEST - Other: signed index, OS-specific, see OS_API.doc. SD Card functions (depending on P, see HP's vgeraccess for more details. Return port number depending on tag name. Entry: D1: name (size+chars) Exit: A[A]: port number (0-3)
Page 511
4.3.2 Skips Skips are a first step from ML to a third generation language, even if they are only another way to write ASM instructions. Skips are wonderful as they allow you to: structure your program avoid using gotos make programs and piece of code that can be easily copied and past (because there is no label) The foundation of Skips is the Block structure.
Page 512
Operation Assembler Copy and shift MOV{cond}{S} Rd, <Oprnd> MVN{cond}{S} Rd, <Oprnd> ADD{cond}{S} Rd, Rn, <Oprnd> Add w carry ADC{cond}{S} Rd, Rn, <Oprnd> SUB{cond}{S} Rd, Rn, <Oprnd> Sub w carry SBC{cond}{S} Rd, Rn, <Oprnd> Reverse Sub RSB{cond}{S} Rd, Rn, <Oprnd> Rev sub w carry RSC{cond}{S} Rd, Rn, <Oprnd>...
Page 513
Where cond can be any of: Oprnd can be of the form: Immediate value Logical shift left Logical shift right Arithmetic shift right Rotate right Register Logical shift left Logical shift right Arithmetic shift right Rotate right In all cases, Cte must be a decimal value or an expression that can be evaluated immediately. A_mode can be: [Rn +/-Cte] Value of rn + or - constant...
Page 514
[Rn] +/-Cte The value used is the value of rn, but rn is then updated with Value of rn + or – constant [Rn] +/-Rm The value used is the value of rn, but rn is then updated with Value of rn + or – value of rm [Rn] +/-Rm LSL Cte The value used is the value of rn, but rn is then updated with Value of rn + or –...
Page 516
{{ A B }} B A! ABND Note that it is your responsibility to destroy the local environment using ABND and that MASD does not handle multiple level of definition of local variables, nor it is destroying the current environment, even if ABND is used. Variables defined this way will be valid until a new set of variables are defined.
Page 517
XxlibName XLIB identified by its name. If it is a standard HP49 command (like the address is used instead of an XLIB object. HXS Size Data Binary integer ($02A4E), Size is in hexadecimal and Data is a set of hexadecimal characters. Example: GROB Size Data GROB LIBDAT Size Data...
Section 6 – The Entry Point Library: Extable The entry point library is an external library (you can get it from the HP web site) that contains a table of entry point names and addresses. This is used by the MASD compiler to get the value of System RPL entry points or assembler constants (like TURNMENUOFF for example).
GETADR Lookup for the address of an entry. Example: “INNERCOMP” GETADR -> #054Afh Level 1 -> Level 1 String -> Binary integer GETNAMES Find all the entry whose name starts with a specific string. Note: giving a null string as an input will return a list of all the entry points. Level 1 ->...
Attempted to store a variable name into itself. Indicates verifying IR or serial connection. HP Solve application or ROOT returned same value at every sample point of current equation. copied selected equation to stack. %²STK% Error and Status Messages A - 1...
Page 524
Store new equation in EQ. Zoom operations prompt. EQ must contain at least two equations (or programs) and two variables. Result returned by HP Solve application or ROOT is an extremum rather than a root. A program containing HALT executed while MatrixWriter application, DRAW, or HP Solve application active.
Page 525
A Statistics command was executed when DAT did not contain enough data points for calculation. The HP Solve application or ROOT was interrupted by − returned object of wrong type for current matrix. Machine does not recognize data on...
Page 526
Messages Listed Alphabetically (continued) Message Invalid PRTPAR Invalid PTYPE Invalid Repeat Invalid Server Cmd. Invalid Syntax Invalid Time Invalid Unit Invalid User Function Invalid … Data Invalid … Data LN(Neg) Invalid … Data LN(0) Invalid …PAR LAST CMD Disabled LAST STACK Disabled LASTARG Disabled Low Battery Memory Clear...
Page 527
Math exception: Calculation returned negative, non-zero result greater than MINR. Solver, DRAW, or RCEQ executed with nonexistent EQ. Plot and HP Solve application status message. Insufficient free memory in the specified port. Not enough free memory to save copy of the stack.
Page 528
Attempted to execute a server command that itself uses the I/O port. Math exception: Calculation returned positive, non-zero result less than MINR. Calculator turned on following a power loss. Memory may have been corrupted. Indicates processing of host command packet.
Page 529
Undefined XLIB Name Meaning Select alarm repeat interval. Identifies object name while sending. HP Solve application or ROOT unable to find point at which current equation evaluates to zero, but did find two neighboring points at which equation changed sign.
Page 530
Identifies zoom option. Identifies zoom option. Identifies zoom option. Identifies zoom option. Result returned by the HP Solve application or ROOT is a root ( a point at which current equation evaluates to zero ). Identifies no execution action when %EXECS% pressed.
Page 531
Messages Listed Numerically # (hex) General Messages Insufficient Memory Directory Recursion Undefined Local Name Undefined XLIB Name Memory Clear Power Lost Warning: Invalid Card Data Object In use Port Not Available No Room in Port Object Not in Port Recovering Memory Try To Recover Memory? Replace RAM, Press ON No Mem To Config All...
Page 532
Messages Listed Numerically (continued) # ( hex ) Invalid File Mode Disk Full Disk Format Error Disk Change No SD card inserted Not enough ARM memory DOS call unsupported DOS unknown error Disk Protected No Room to Save Stack Can't Edit Null Char. Invalid User Function No Current Equation (enterrmerr)
Page 533
Messages Listed Numerically (continued) # ( hex ) Long Complex Linked Array Character Code Library Data External is equivalent to #123h DOERR LAST STACK Disabled LAST CMD Disabled HALT Not Allowed Array Wrong Argument Count Circular Reference Directory Not Allowed Non-Empty Directory Invalid Definition Missing Library...
Page 534
Messages Listed Numerically (continued) # ( hex ) Symbolic Matrix Font Aplet Extended Real Extended Complex FlashPtr Extended Ptr MiniFont Extended 1 Extended 2 Extended 3 TRUE FALSE Are you sure? Low Memory Condition Please Wait... CATALOG Nonexistent Find Pattern Not Found Nonexistent Replace Pattern Can't Find Selection...
Page 535
Invalid … Data Nonexistent …DAT Insufficient … Data Invalid …PAR Invalid … Data LN(Neg) Invalid … Data LN(0) Plot, I/O, Time and HP Solve Application Messages Invalid EQ Current equation: No current equation. Enter eqn, press NEW Name the equation, press ENTER...
Page 536
Messages Listed Numerically (continued) # ( hex ) Enter alarm, press SET Select repeat interval I/O setup menu Plot type: "" (OFF SCREEN) Invalid PTYPE Name the stat data, press ENTER Enter value (zoom out if>1), press ENTER Copied to stack x axis zoom w/AUTO.
Page 537
Operating ModeÏ. Number FormatÏÏ. Angle MeasureÏÏ. Coord SystemÏÏÏÏ Beep Key Click Last Stack Choose calculator operating mode Choose number display format Choose decimal places to display Choose angle measure Choose coordinate system Use comma as fraction mark? Enable standard beep?
Page 538
Messages Listed Numerically (continued) # ( hex ) Edit in full page? Automatically indent new lines? Edit in EQW using small font? Display EQW using small font? Choose header height Display ticking clock? Analog clock? DISPLAY MODES Indep var: Modulo: Verbose Step/Step Complex...
Page 539
Messages Listed Numerically (continued) # ( hex ) Zoom: Small Font File: Enter starting value Enter increment value Choose table format Enter zoom factor Display table using small font? Enter a filename to save data TABLE SETUP Automatic Build Your Own Function Polar Parametric...
Page 540
Messages Listed Numerically (continued) # ( hex ) V-Tick: Pixels Depnd: Save Animation …DAT: Col: Cols: H-Var: V-Var: Stiff ˆFˆY: ˆFˆT: Choose type of plot Choose angle measure Enter function(s) to plot Enter independent variable name Connect plot points? Plot functions simultaneously? Enter horizontal tick spacing Enter vertical tick spacing Tick spacing units are pixels?
Page 541
Messages Listed Numerically (continued) # ( hex ) Depnd Low: High: X-Left: X-Right: Y-Near: Y-Far: Step Indep: Depnd: Bar Width: Z-Low: Z-High: Init: Final: Init-Soln: Tol: XXLeft: XXRight: YYNear: YYFar: Enter minimum horizontal value Enter maximum horizontal value Enter minimum vertical value Enter maximum vertical value Enter minimum indep var value Enter maximum indep var value...
Page 542
Messages Listed Numerically (continued) # ( hex ) Enter Z eyepoint coordinate Enter absolute error tolerance Enter minimum XX range value Enter maximum XX range value Enter minimum YY range value Enter maximum YY range value PLOT WINDOW Default FUNCTION POLAR PARAMETRIC DIFF EQ...
Page 543
Messages Listed Numerically (continued) # ( hex ) : Œ: ˜: Null hypothesis population mean Sample mean Sample Size Significance level Population standard deviation Z-TEST: 1 µ, KNOWN ˜ Alternative Hypothesis 1: ˜1: Œ : 2: ˜2: Sample mean for population 1 Std deviation for population 1 Sample size for population 1 Significance level...
Page 544
Messages Listed Numerically (continued) # ( hex ) Success count for sample 1 Size of sample 1 Significance level Success count for sample 2 Size of sample 2 Z-TEST: 2 P : µ0: Œ: Null hypothesis population mean Sample Standard deviation Sample Mean Significance level Sample size...
Page 545
Messages Listed Numerically (continued) # ( hex ) Sample mean Population standard deviation Sample size Confidence level CONF. INT.: 1 µ, KNOWN ˜ 1: ˜1: 2: ˜2: Sample mean for population 1 Std deviation for sample 1 Size of sample 1 Sample mean for population 2 Std deviation for sample 2 Size of sample 2...
Page 546
Messages Listed Numerically (continued) # ( hex ) Confidence level CONF. INT.: 2 P : Sample mean Sample standard deviation Sample size Confidence level CONF. INT.: 1 µ, UNKNOWN ˜ 1: 2: Pooled Sample 1 mean Std deviation for sample 1 Sample 1 size Sample 2 mean Std deviation for sample 2...
Page 547
Enter variable name Create a new directory? NEW VARIABLE Select Object Statistics Help Messages 901-90C (Help messages for Hypothesis Tests and Conference Intervals) Inconclusive result HP Solve Application Messages Bad Guess (es) Constant? Interrupted Zero Sign Reversal Extremum Left Right...
Page 548
Messages Listed Numerically (continued) # ( hex ) Invalid Unit Inconsistent Units Bad Packet Block check Timeout Receive Error Receive Buffer Overrun Parity Error Transfer Failed Protocol Error Invalid Server Cmd. Port Closed Connecting Retry # Awaiting Server Cmd. Sending Receiving Object Discarded Packet #...
Page 549
B90F « Program » B910 'Algebraic' B911 # Binary int B912 _Unit object B913 Invalid object type B914 Invalid object value B915 Calculator Modes B916 Number Format: B917 Angle Measure: B918 Coord System: B919 Beep B91A Clock B91B B91C Choose number display format...
Messages Listed Numerically (continued) # ( hex ) Degrees B92C B92D Radians B92E B92F Grads B930 Grad B931 Rectangular B932 Polar B933 Spherical B934 SYSTEM FLAGS B935 01 General solutions B936 02 Constant symb B937 03 Function symb B938 14 Payment at end B939...
Page 551
Messages Listed Numerically (continued) # ( hex ) 53 No extra parens B951 54 Tiny element 0 B952 55 Save last args B953 56 Standard beep on B954 57 Alarm beep on B955 58 Show INFO B956 59 Show variables B957 60 [Œ][Œ] locks B958...
Page 552
Messages Listed Numerically (continued) # ( hex ) 100 Step by step off B976 103 Complex off B977 105 Exact mode on B978 106 Simp. in series B979 109 Sym. factorize B97A 110 Normal matrices B97B 111 Simp non rat. B97C 112 i simplified B97D...
Page 553
Messages Listed Numerically (continued) # ( hex ) 37 Double-space prnt B99B 38 No linefeeds B99C 39 No I/O messages B99D 40 Show clock B99E 41 24-hour clock B99F 42 dd.mm.yy format B9A0 43 Don't reschedule B9A1 44 Save alarm B9A2 51 Fraction mark: , B9A3...
Page 554
126 rref w/o last col B9DB 127 HP-IR mode B9DC 128 Vars are reals B9DD Object: B9DE Obs in B9DF Name: B9E0 1.Send to HP 49/48GIIÏ. BA01 2.Get from HP 49/48GII BA02 A - 32 Error and Status Messages Message I/O Prompts...
Page 555
# ( hex ) 3.Print display BA03 4.PrintÏ. BA04 5.TransferÏ. BA05 6.Start Server BA06 Enter names of vars to send BA07 Vars in BA08 SEND TO HP 49/48GII BA09 Port: BA0A Dbl-Space BA0B Delay: BA0C Xlat: BA0D Linef BA0E Baud:...
Page 558
Messages Listed Numerically (continued) # ( hex ) Y-Col: BB22 Model: BB23 Enter indep column number BB24 Enter dependent column number BB25 Choose statistical model BB26 Correlation BB27 Covariance BB28 PREDICT VALUES BB29 BB2A Enter indep value or press PRED BB2B Enter dep value or press PRED BB2C...
Page 559
Messages Listed Numerically (continued) # ( hex ) Message: BC05 Time: BC06 Date: BC07 Repeat: BC08 Enter "message" or « action » BC09 Enter hour BC0A Enter minute BC0B Enter second BC0C Choose AM, PM, or 24-hour time BC0D Enter month BC0E Enter day BC0F...
Page 560
Messages Listed Numerically (continued) # ( hex ) 10 October BC2A 11 November BC2B 12 December BC2C Week BC2D BC2E Hour BC2F Minute BC30 Second BC31 Weeks BC32 Days BC33 Hours BC34 Minutes BC35 Seconds BC36 Month/Day/Year BC37 M/D/Y BC38 Day.Month.Year BC39 D.M.Y...
Page 561
Messages Listed Numerically (continued) # ( hex ) Enter variable value BD13 Expression BD14 TAYLOR POLYNOMIAL BD15 Order: BD16 Enter Taylor polynomial order BD17 ISOLATE A VARIABLE BD18 Principal BD19 Get principal solution only? BD1A SOLVE QUADRATIC BD1B MANIPULATE EXPRESSION BD1C MATCH EXPRESSION BD1D...
Page 562
Messages Listed Numerically (continued) # ( hex ) Enter complex-valued func(s) BE10 Plot y'(t)=f(t,y) BE11 Enter function of INDEP and SOLN BE12 Enter derivative w.r.t. SOLN BE13 Enter derivative w.r.t. INDEP BE14 Use Stiff diff eq solver? BE15 …Dat: BE16 Col: BE17 Wid:...
Page 563
Messages Listed Numerically (continued) # ( hex ) Tick spacing units are pixels? BE35 Depnd: BE36 Enter dependent var name BE37 Enter minimum dep var value BE38 Enter maximum dep var value BE39 H-Var: BE3A V-Var: BE3B Enter max indep var increment BE3C Choose horizontal variable BE3D...
Page 564
Messages Listed Numerically (continued) # ( hex ) Enter minimum XX range value BE5A Enter maximum XX range value BE5B Enter minimum YY range value BE5C Enter maximum YY range value BE5D XX and YY Plot Options BE5E Zoom Factors BE5F H-Factor: BE60...
Page 565
Messages Listed Numerically (continued) # ( hex ) Enter value or press SOLVE BF07 BF08 Enter function to solve BF09 Funcs in BF0A Solver Variable Order BF0B Variables: BF0C Enter order of vars to display BF0D SOLVE Y'(T)=F(T,Y) BF0E BF0F ˆfˆy: BF10 ˆfˆt:...
Page 566
Messages Listed Numerically (continued) # ( hex ) Enter roots or press SOLVE BF2C Coefficients BF2D Roots BF2E SOLVE SYSTEM A·X=B BF2F BF30 BF31 BF32 Enter coefficients matrix A BF33 Enter constants or press SOLVE BF34 Enter solutions or press SOLVE BF35 Constants BF36...
Page 567
Messages Listed Numerically (continued) # ( hex ) Interest: BF51 Balance: BF52 Enter no. of payments to amort BF53 Principal BF54 Interest BF55 Balance BF56 Unable to find root C001 CAS Messages denominator(s) DE01 root(s) DE02 last DE03 obvious DE04 factorizing DE05 value...
Page 568
Messages Listed Numerically (continued) # ( hex ) Z is not prime DE1E Empty {} of equations DE1F Not reducible to a rational expression DE20 Non unary operator DE21 User function DE22 Non isolable operator DE23 Not exact system DE24 Parameters not allowed DE25 CAS internal error...
Page 569
Messages Listed Numerically (continued) # ( hex ) Numeric input DE43 Singularity! Continue? DE44 Cancelled DE45 Negative integer DE46 Parameter is cur. var. dependent DE47 Unsimplified sqrt DE48 Non polynomial system DE49 Unable to solve ODE DE4A Array dimension too large DE4B Unable to reduce system DE4C...
Page 570
Messages Listed Numerically (continued) # ( hex ) Replacing strict with large inequality DE67 No valid environment stored DE68 File Manager DF01 DF02 ABORT DF03 DF04 DF05 DF06 Already Exists DF07 Overwrite ? DF08 Rename DF09 PICK DESTINATION DF0A Are You Sure? DF0B Search Mode OFF DF0C...
Page 577
Units (continued) Unit (Full Name) (troy pound) (lumen) (lux) (light year) (meter) (micron) µ (mho) (international mile) (mil) (minute) (US statute mile) miUS (millimeter of mercury (torr), 0 mmHg (mole) (miles per hour) (newton) (nautical mile) (ohm) (ounce) ozfl (US fluid ounce) (troy ounce) (UK fluid ounce)
Page 578
Unit (Full Name) (rem) (second) (siemens) (stilb) (slug) slug (steradian) (stere) (stokes) (sievert) (metric ton) (tesla) (tablespoon) tbsp therm (EEC therm) (short ton) (long ton (UK)) tonUk (torr (mmHg)) torr (teaspoon) (unified atomic mass) (volt) (watt) (weber) (international yard) (year) B - 4 Table of Units Units (continued) Value in SI Units...
Page 579
Set: Functions with symbolic arguments, including symbolic constants, evaluate to numbers. – Not used. (Originally intended to control the careful evaluation mode in the HP 48SX, without ever being implemented, though). – Binary Integer Wordsize. Combined states of flag thru –...
Page 580
Flag – Vector/Complex. V2 creates a 2-dimensional vector from 2 real numbers. Clear: V2 creates a complex number from 2 real numbers. Set: – Underflow Exception. Clear: Underflow exception returns 0, sets flag Set: Underflow exception treated as an error. –...
Page 581
Set: Objects transmitted in binary (memory image) form. – I/O Receive Overwrite. Clear: If file name received by HP 49G+/48GII matches existing variable name, new variable name with number extension is created to prevent overwrite. Set: If file name received by HP 49G+/48GII matches existing variable name, existing variable is overwritten.
Page 582
Clear: Parameter variable data automatically displayed. Set: Automatic display of parameter variable data is suppressed. – No longer used. (It was the Fast Catalog/Browser Display flag in the HP 48SX/GX). – Units Type. User flag. Clear: CONST returns values in SI units.
Page 583
Clear: Command line does not automatically indent, like HP 48GX. Set: Command line automatically indents. – Full-screen Editing. Clear: The cursor cannot move out of the text line, like HP 48GX. Set: Full-screen editing allowed. – Multi-line Text Grobs. GROB can accept only single-line strings. Newlines are turned into Clear: blobs.
Page 584
– Clear: Command line editing uses the current system font. Set: Command line editing uses mini-font. – Stack Setting. Clear: The stack is right-justified, like the HP 48GX calculator. Set: The stack is left-justified. – Keystroke Beep. Clear: Silent keyboard.
Page 585
Clear: Choose boxes displayed in current font. Set (default): Choose boxes displayed in mini-font. – Matrix Writer Object Type. Clear: Matrix Writer returns arrays only, like the HP 48GX calculator. Set: Matrix Writer returns a list of lists. – Assembler Mode.
Page 586
Flag – Exact/Approximate Mode. Clear: Exact mode. “=” annunciator in header. Set: Approximate mode, like HP 48GX. “~” annunciator in header. TSIMP Calls. – Clear: TSIMP calls are allowed in SERIES. Set: TSIMP calls are not allowed in SERIES. –...
Page 587
System Flags (continued) Flag – Internal use only. (LN returns LN[ABS()] if set). Internal use only. (0/0 occurred). – – Mode Switch. Clear: Mode switch allowed. Set: Mode switch not allowed. – CAS Object Evaluation. Clear: Non-algebraic CASCOMPEVAL is allowed. Set: Non-algebraic CASCOMPEVAL is not allowed.
10.Reserved Variables The hp49g+/hp48gII uses the following reserved variables. These have specific purposes, and their names are used as implicit arguments for certain commands. Avoid using these variables’ names for other purposes, or you may interfere with the execution of the commands that use these variables. You can change some of the values in these variables with programmable commands, while others require you to store new values into the appropriate place.
Reserved Variable STARTED STARTEQW STARTERR STARTOFF STARTRECV STARTSEND STARTUP s1, s2,… TOFF VPAR ZPAR Contents of the Reserved Variables Most reserved variables ( except ALRMDAT, IOPAR and PRTRAT ) can be stored with different contents in different directories. This allows you, for example, to save several sets of statistical data in different directories. αENTER This is the vectored ENTER pre-processor.
Parameter (Command) date ("DATE) Time ("TIME) action Repeat Parameters without commands can be modified with a program by storing new values in the list contained in ALRMDAT ( use the PUT command ). βENTER This is the vectored ENTER post-processor. If flags -62 and -63 are set and ENTER is pressed, the command that triggered the command-line processing is put on the stack as a string and ßENTER is evaluated.
For graphics use, EQ can also be a list of equations or other objects. If EQ contains a list, then DRAW treats each object in turn as the current equation, and plots them successively. However, ROOT in the HP Solve application cannot solve an EQ containing al list.
Page 593
Parameter (Command) baud (BAUD) parity (PARITY) receive pacing transmit pacing checksum (CKSM) translation code (TRANSIO) Parameters without commands can be modified with a program by storing new values in the list contained in IOPAR ( use the PUT command ), or by editing IOPAR directly. Description The baud rate: 2400, 4800, 9600, 14400, 19200, 38400 or 115200.
MASD.INI MASD.INI must contain valid MASD source code. This source code will be parsed/compiled before the source on the stack. It is useful to always include a basic set of commands or definitions in all compiled source. MHpar MHpar stores the status of an interrupted Minehunt game. MHpar is created when you exit Minehunt by pressing K.
Page 595
Parameters without commands can be modified with a program y storing new values in the list contained in PPAR ( use the PUT command ). Description Reserved Variables D - 7 Default Value – – 6.5, 3.1) 48gII – – 6.5, 3.9) 49g+ ( 6.5, 3.2 ) 48gII ( 6.5, 4.0 ) 49g+ (0, 0) FUNCTION...
Description A real number, in the range 0 to 6.9, specifying the number of seconds the HP 49 waits between sending lines. This should be at least as long as the time required to print the longest line. If the delay is too short for the printer, you will lose data.
1 is set, the ISOL and QUAD return principal solutions, in which case the arbitrary sign is always +1. TOFF TOFF contains a binary integer #xxxxh that defines the number of clock ticks until the next calculator auto shutoff (with a default of 5 minutes or 6*60*8192 ticks) VPAR VPAR is a variable in the current directory.
Parameter (Command) Real numbers that specify the width of the view volume. ) (XVOL) left right Real numbers that specify the depth of the view volume. ) (YVOL) near Real numbers that specify the height of the view volume. ) (ZVOL ) high Real numbers that specify the point in space from which ) (EYEPT )
You can designate a new current statistical matrix by entering new data, editing the current data, or selecting another matrix. The command CL clears the current statistical matrix. ΣPAR PAR is a variable in the current directory that contains either the current statistical parameter list or the name of the variable containing this list.
11.Technical Reference This appendix contains the following information: Object sizes. Mathematical simplification rules used by the hp49g+/hp48gII. Symbolic differentiation patterns used by the hp49g+/hp48gII. The Equation Writer's expansion rules. References and as sources for constants and equations in the hp49g+/hp48gII ( other than those in the Equation Library ).
Object Type Unit object real magnitude each prefix each unit name each ×, ^, or / each exponent Unquoted global or local name Vector XLIB name Symbolic Integration Patterns This table lists the symbolic integration patterns used by the hp49g+/hp48gII. These are the integrands that the hp49g+/hp48gII can integrate symbolically.
Trigonometric Expansions The following tables list expansions for trigonometric functions in Radians mode when using the "DEF, TRG and "TRG operations. These operations appear in the Equation Writer RULES menu. Function SIN (x) COS (x) TAN (x) SINH(x) COSH(x) TANH(x) ASIN(x) ACOS(x) ATAN(x)
Source References The following references were used as sources for many of the constants and equations used in the hp49g+/hp48gII. ( See “References” in chapter 5, “Equation Reference,” for the references used as sources for the Equation Library. ) 1. E.A. Mechtly. The International System of Units, Physical Constants and Conversion Factors, Second Revision.
Page 607
Commands that use an indefinite number of arguments (such as "LIST) do not use parallel list processing. The command isn't a programming branch command (IF, FOR, CASE, NEXT, and so forth). The remainder of this appendix describes how the many and various commands available on the calculator are grouped with respect to parallel processing.
On HP 48S and HP 48SX calculators, the + command has been used to append lists or to append elements to lists. Thus {1 2 3} 4 + returns {1 2 3 4}. With the advent of parallel processing in the hp 48g and hp49g series, the ADD command was created to perform parallel addition instead of +.
Page 609
FREE, MERGE. These commands are for the HP 48GX and do not apply to the hp49g+/hp48gII. Parallel Processing With Lists F - 3...
Page 610
RESTORE. This command performs a system warmstart after installing the backup object into memory. All functions are terminated at that time. Thus, only the first backup object in a list will be restored. _ (Attach Unit). This command will create unit objects in parallel only if level 1 contains a list. Thus 1 {ft in m} _ produces {1_ft 1_in 1_m} while {1 2 3} 'm' _ produces an error.
13.Keyboard Shortcuts Each key on the hp49g+/hp48gII performs so many different functions that only the most fundamental ones are actually shown on the keyboard (on the keys themselves or on the space around the keys). The following is the complete list of the "hidden" functions of the hp49g+/hp48gII keyboard. Notation: In this appendix, there are two ways of showing key presses: @` means: press Right Shift, release it, then press `.
Warmstart. Clears the stack, PICT, LASTARG, and other temporary things like those, and turns off USER Mode. Doesn't clear any variables. Useful when the calculator is taking too long to finish a complicated function and pressing $ doesn't seem to interrupt it. Also useful if you lock out the keyboard with a bad USER mode set of key assignments.
Page 613
Press and Hold key combinations The table below indicates the function performed by pressing and holding two keys at the same time. The shift key listed is pressed first and while that key is still being held down, the second key listed is pressed. Keycode ! &...
Page 614
! %VARNAME% = 'varname' ‰. Applies to the VAR menu, CUSTOM menus obtained by pressing !£, (the left shift of the Hkey)or via the programmable MENU or TMENU commands, and any menu containing a variable (e.g. pressing ! %EQ% in the ROOT menu [menu number 75] yields 'EQ' ‰ even in program mode.) The function !î(the left shift of the `key) is really the LASTARG key in RPL mode.
Page 615
14.The Menu-Number Table -- MENU NUMBERS -- "*" in the first column means the menu is not one of the keyboard menus and is therefore only available through the MENU command. Menus are identified by keyboard path (used when flag -117 is clear) followed by choose-box path (used when flag -117 is set) followed by its displayed name.
Page 616
-- menus 0-117 are semi-compatible with 48G menus -- 0 LAST MENU 1 CUSTOM (no choose-box version available) 2 VAR (no choose-box version available) 3 MTH (or APPS 10: "MATH") 4 MTH VECTR (MTH 1: "VECTOR") 5 MTH MATRX (MTH 2: "MATRIX") 6 MTH MATRX MAKE (MTH 2 1: "MATRIX MAKE") 7 MTH MATRX NORM (MTH 2 2: "MATRIX NORM") 8 MTH MATRX FACTR (MTH 2 3: "MATRIX FACTOR.")
Page 617
51 [CONVERT] UNITS NXT POWR (CONVERT 1 10 or UNITS 10: "POWER") 52 [CONVERT] UNITS NXT PRESS (CONVERT 1 11 or UNITS 11: "PRESSURE") 53 [CONVERT] UNITS NXT TEMP (CONVERT 1 12 or UNITS 12: "TEMPERATURE") 54 [CONVERT] UNITS NXT NXT ELEC (CONVERT 1 13 or UNITS 13: "ELECTRIC CURRENT") 55 [CONVERT] UNITS NXT NXT ANGL (CONVERT 1 14 or UNITS 14: "ANGLE") 56 [CONVERT] UNITS NXT NXT LIGHT (CONVERT 1 15 or UNITS 15: "LIGHT") 57 [CONVERT] UNITS NXT NXT RAD (CONVERT 1 16 or UNITS 16: "RADIATION")
Page 618
*103 old soft-menu STAT SUMS (96 MENU SUMS: "STAT SUM") *104 old soft-menu I/O (105 MENU I/O: "INPUT/OUTPUT") *105 old soft-menu I/O SRVR (104 MENU SRVR: "SERVER") *106 old soft-menu I/O IOPAR (no choose-box version available) *107 old soft-menu I/O PRINT (104 MENU PRINT: "PRINT") *108 old soft-menu I/O PRINT PRTPAR (no choose-box version available) *109 old soft-menu I/O SERIAL (104.02 MENU SERIAL: "SERIAL IO") *110 LIBRARY commands (110 DUP MENU MENU LS&PREV: "LIBRARY")
Page 620
-- New Library 222 -- { expr = real, complex, or sym } { sym = name or algebraic } { var = name of a variable, e.g. 'X' } { name = global name or local name } { | = or } 0 ADDTOREAL(var) 1 SIGMAVX(sym) 2 SIGMA(sym,var)
Page 622
-- New LIB 171 commands -- 107 DRAW3DMATRIX(array,real,real) 108 →KEYTIME(real) (sets keyboard debounce delay from 0 to 4096 ticks) 109 KEYTIME→(none) (returns current KEYTIME; default = 1365) 110 XSERV(none) (starts XMODEM server mode) 111 ROMUPLOAD(none) (transfers ROM from this HP49G to another) 112 XGET(globalname) (gets a variable from other 49G in XSERV mode) 113 XPUT(globalname) (sends a variable to other 49G in XSERV mode) 114 MSOLVR(none -- but Mpar must exist already)
Page 623
15.The Command Menu-Path Table The hp49g+/hp48gII programmable commands in CAT order. An "H" in the first column means this command has a HELP screen. A "-" in the first column means "not shown in the 49g+ CATalog". Following each command is its menu path or key sequence (if any) with alternatives separated by a semicolon.
Page 627
DEPND (83 MENU) DEPTH (PRG/TOOL STACK NXT) H DERIV (SYMB CALC; CALC DERIV; «DIFF») H DERVX (CALC; SYMB CALC; CALC DERIV; «DIFF») H DESOLVE (S.SLV; CALC DIFF; «SOLVER») DET (MATRICES OPER; MTH MATRX NORM NXT) DETACH (110 MENU) H DIAGMAP (MATRICES NXT EIGEN) DIAG→...
Page 628
EQ→ (PRG TYPE NXT) ER (257 MENU; 256.06 MENU) ERASE (81 MENU) ERR0 (PRG NXT NXT ERROR) ERRM (PRG NXT NXT ERROR) ERRN (PRG NXT NXT ERROR) H EULER (ARITH INTEG; «INTEGER») EVAL (key 41.1; in EQW; in FILER; 142 MENU) H EXLR (108 DUP MENUXY) EXP (key 51.2: e^x;...
Page 629
FUNCTION (82 MENU) H FXND (107 DUP MENUXY) H GAMMA (MTH NXT SPECIAL) H GAUSS (MATRICES QUADF; «MATR» NXT) H GBASIS (CAT) H GCD (ARITH POLY NXT; «INTEGER»; «POLYNOMIAL») H GCDMOD (ARITH MODUL; «MODULAR») GET (PRG LIST ELEM; MATRICES CREAT NXT; MTH MATRX MAKE NXT) GETI (PRG LIST ELEM;...
Page 630
IFTE (PRG BRCH NXT; «TESTS» NXT) H ILAP (CALC DIFF; «DIFF» NXT NXT) IM (CMPLX; MTH NXT CMPLX; «CMPLX» NXT) H IMAGE (MATRICES LINAP) INCR (PRG MEM ARITH) INDEP (83 MENU) INFORM (PRG NXT IN) INPUT (PRG NXT IN) INT (CAT) H INTEGER («ARIT»;...
Page 640
∆LIST (MTH LIST) ΠLIST (MTH LIST) H ∞ (key 102.2; «CONSTANTS») « (key 95.3) » (key 95.3) I - 18 The Command Menu-Path Table...
Page 641
16.ASCII Character Codes and Translations The following tables show the relation between character codes (results of NUM, arguments to CHR) and characters (results of CHR, arguments to NUM). The second table includes ASCII character translations. ...
Page 642
The table shown below includes the codes to be used to transmit characters from the upper half of the ASCII character table when transmitted from the calculator to a remote device. Character Codes 128-255 With ASCII Character Translations TRANS ...
Page 644
ASIN ASIN2C ASIN2T ASINH ASSUME ATAN ATAN2S ATANH ATICK ATTACH AUGMENT AUTO AXES BARPLOT BASIS BAUD BDISP (Binary Display) BEEP Beeping to Get Attention Bernoulli Equation (3, 2) Bessel Functions BESTFIT BINS Bipolar Transistors (13, 3) Black Body Radiation (6, 6) BLANK Brewster's Law (9, 3) BUFLEN...
Page 645
CONST CONSTANTS CONT Contents of a Program, The Contents of the Reserved Variables Convection (6, 4) CONVERT Converting Between Number Bases Converting Procedures from Algebraic to CORR COSH Coulomb's Law (2, 1) CRDIR Creating Local Variables Creating Programs on a Computer Creating User-Defined Functions as Programs Critical Angle (9, 2)
Page 646
EDIT EDITB EGCD EGVL Elastic Buckling (1, 1) Electricity (2) Ellipse (11, 2) ELSE ENDSUB Entering and Executing Programs Entry Point Library: Extable, The ENVSTACK EPSX0 EQNLIB Equation Reference ERASE ERR0 ERRM ERRN Error and Status Messages Escape Velocity (8, 7) EULER EVAL Evaluating Local Names...
Page 647
GRAD GRAMSCHMIDT GREDUCE GRIDMAP GROB GROBADD GXOR HADAMARD HALFTAN HALT HEAD HEADER Heat Capacity (6, 1) Heat Transfer (6) HELP HERMITE HESS HILBERT HISTOGRAM HISTPLOT HMS– HMS+ HOME Hooke's Law (4, 4) HORNER IABCUV IBASIS IBERNOULLI ICHINREM Ideal Gas Law (5, 1) Ideal Gas State Change (5, 2) IDIV2 IEGCD...
Page 648
LEGENDRE LGCD LIBEVAL LIBS LIMIT LINE Linear Mechanics (4, 1) Linear Motion (8, 1) LINFIT LININ LINSOLVE LIST LNAME LNCOLLECT LNP1 LOCAL Local Variables, Using LOGFIT Longitudinal Waves (15, 2) Loop Counters, Using Loop Structures, Using LR~R LVAR Magnetic (B) Field in Solenoid (7, 3) Magnetic (B) Field in Toroid (7, 4) Magnetism (7) MAIN...
Page 649
NUMX NUMY Object in Free Fall (8, 2) Object Sizes Ohm's Law and Power (2, 2) OLDPRT OPENIO Optics (9) ORDER Oscillations (10) Output OVER (Pi) PA2B2 PAD (Pad with Leading Spaces) Parallel Processing with Lists Parallelepiped (12, 3) PARAMETRIC PARITY PARSURFACE PARTFRAC...
Page 650
QUAD QUOT QUOTE R~SB RAND RANK RANM RATIO RC Transient (2, 15) RCEQ RCIJ RCLALARM RCLF RCLKEYS RCLMENU RCLS RCLVX RCWS Real Gas Law (5, 6) Real Gas State Change (5, 7) REALASSUME Recalling and Storing the Flag States RECN RECT Rectangle (11, 3) RECV...
Page 651
Series and Parallel C (2, 7) Series and Parallel L (2, 8) Series and Parallel R (2, 6) SERVER Setting, Clearing, and Testing Flags SETTS (Superimposing Taylor's polynomials) SEVAL Shear Stress (14, 2) SHOW SIDENS SIGMA SIGMAVX SIGN SIGNTAB SIMP2 Simple Deflection (1, 3) Simple Harmonic (10, 5) Simple Moment (1, 5)
Page 652
Symbolic Integration Patterns SYSEVAL SYST2MAT System Flags Table of Units TABVAL TABVAR TAIL TAN2CS2 TAN2SC TAN2SC2 TANH TAYLOR0 TAYLR TCHEBYCHEFF TCOLLECT TDELTA Technical Reference Techniques used in SINTP Terminal Velocity (8, 6) Testing Conditions TESTS Tests and Conditional Structures, Using TEVAL TEXPAND TEXT...