# HP 49G Pocket Manual

#### Summary of Contents for HP 49G

HP 49G Pocket Guide Quick Reference Chart Function Key Guide Reserved Names and Constants Units Error and Status Messages System Information System Flags Object Types Character Keys Command Reference Version 2.0...
• ### Page 2: Quick Reference Chart

Quick Reference Chart Tool Access Alarms > ç Algebra > ú Arithmetic < ! Calculus < \$ CAS modes Characters > ô Command Catalog Complex Numbers > ó CONSTANTS LIB Constants Conversions < ^ DISP Display Editing Tools Equation Writer <...
• ### Page 3: Function Key Guide

Function Key Guide This section explains the use of each item on the function key menu of the more commonly used HP 49G applications. Equation Writer Opens the selected component in the command EDIT line editor. Make your changes, then press to return to Equation Writer.
• Page 4 Stack Press , then to copy the contents ECHO ECHO of the current level to the command line. Edit the contents on the command line, and press to place them on level 1 of the stack. Displays the contents of the current level in VIEW textbook mode.
• Page 5 Graphics Editor Turns on pixels beneath the cursor. – Turns off pixels beneath the cursor. Draws a line from a marked point to the LINE cursor. (Press to mark a point). MARK Œ Same as but toggles pixels on or off. TLINE LINE Draws a rectangle from a marked point to the...
• ### Page 6: Reserved Names And Constants

Reserved Names and Constants You should avoid using certain names for variables, because their contents are interpreted by the calculator in set ways. Some examples are given in the following table. Name 0DETYPE The differential equation type used in the DESOLVE command.
• ### Page 7: Units

A unit object is comprised of a number and a unit separated by the underscore character. An example is 3_ ft/s. You can use the HP 49G to convert unit objects from one unit to another, comparable, unit. You can also use unit objects in calculations.
• ### Page 8: Error And Status Messages

The HP 49G enables you to detect and trap errors during program execution via the IFERR command. To identify the error after it has occurred, use the ERRN command to get its number, or ERRM to get its message.
• Page 9 Number Message NAME AND DIRECTORY MESSAGES Directory Recursion Undefined Local Name Undefined XLIB Name Port Not Available Object Not in Port 25 9 Invalid User Function 29 7 Circular Reference 29 8 Directory Not Allowed 29 9 Non-Empty Directory 30 0 Invalid Definition 30 1 Missing Library...
• Page 10 Number Message STACK AND COMMAND LINE MESSAGES 26 2 Invalid Syntax 29 2 Last Stack Disabled 29 3 Last Cmd Disabled Last Stack 31 2 Last Commands 31 5 Last Arguments 31 7 Command Line 33 9 Nonexistent Find Pattern 34 0 Not Found 34 1...
• Page 11 Number Message ARITHMETIC MESSAGES 76 9 Positive Underflow 77 0 Negative Underflow 77 1 Overflow 77 2 Undefined Result 77 3 Infinite Result I/O AND PRINTING MESSAGES 3 0 7 3 Bad Packet Block Check 3 0 7 4 Timeout 3 0 7 5 Receive Error 3 0 7 6...
• ### Page 12: System Information

System Operations For system operations, you press and hold the key, then press and release certain other keys before releasing Keys Operation Cold restart. Erases home and port 0 memory and resets the calculator’s default settings. Cancels keystroke (prior to key release). Warm restart.
• Page 13 Flag Description of modes (* = default) –14 Set: TVM calculations use BEGIN payment mode. Clear:* TVM calculations use END payment mode. –15 Set: Spherical mode (with flag –16 set). Clear:* Cylindrical mode (with flag –16 set). –16 Set: Polar coordinate mode. Clear:* Rectangular coordinate mode.
• Page 14 Flag Description of modes (* = default) –42 Set: DD.MM.YY date format. Clear:* MM/DD/YY date format. –43 Set: Unacknowledged repeat alarms are not rescheduled. Clear:* Unacknowledged repeat alarms are rescheduled. –44 Set: Acknowledged alarms are retained in the alarm list. Clear:* Acknowledged alarms are deleted from alarm list.
• Page 15 Flag Description of modes (* = default) –67 Set: When the clock shows (see flag –40), it is an analog display. Clear:* When the clock shows (see flag –40), it is a digital display. –68 Set: Command line automatically indents. Clear:* Command line does not automatically indent.
• Page 16 Flag Description of modes (* = default) –98 Set: Vectors are displayed vertically. Clear:* Vectors are displayed horizontally only. –99 Set: CAS verbose mode. Clear:* CAS concise mode. –100 Set: Final result mode. Clear:* Step-by-step mode. –103 Set: Complex mode. Clear:* Real mode.
• ### Page 17: Object Types

Object Types The HP 49G makes use of 30 types of objects (listed in the table below). Commands relevant to object types are: • TYPE( obj ) Returns the object’s type. • VTYPE(' name ') Returns the named object’s type.
• ### Page 18: Character Keys

Character Keys The following table lists all the characters available on the HP 49G. For each character, the table gives the character’s internal number and the key or combination of keys that display the character. (An ampersand denotes that you hold down the first key while you press the second key).
• Page 19 <w `e`> Char. Key(s) Char. Key(s) `>a `c`> ≠ Æ > `e`< α Ç >ô `e`> → È >ô `e`< ← É >ô `e`< ↓ Ê >ô `i`< ↑ Ë `>d `i`> γ Ì `>e `i`< δ Í >ô `i`< Î...
• ### Page 20: Command Reference

Command Reference All the HP 49G commands are listed in the table commencing on page 21. A brief description of each command is provided, together with the key or keys that provide access to the command. Where appropriate, at least one argument (input) and the corresponding result (output) is provided.
• Page 21 Name Description Access Inputs Outputs ’ z → ‘ symb ‘ symb ’ ‘ symb ABCUV Returns a solution in polynomials u and v of au + bv =c ’ ‘ symb ’ <! where a and b are polynomials, and c is a value. POLYNOMIAL x →...
• Page 22 Name Description Access Inputs Outputs z → 10 ALOG Returns the common antilogarithm; that is, 10 raised to <V the given power.* n → principal interest balance AMORT Amortizes a loan or investment based upon the current <( amortization settings. →...
• Page 23 Name Description Access Inputs Outputs ’ → ‘ symb ‘ symb ASIN2C Replaces asin() terms with equivalent acos() terms. ’ >û ’ → ‘ symb ‘ symb ASIN2T Replaces asin() terms with equivalent atan() terms. ’ >û z → asinh z ASINH Returns the inverse hyperbolic sine of the argument.* >û...
• Page 24 Name Description Access Inputs Outputs { list }/[[ array ]] → [[ array ]]/{ list } Converts a list to an array, or an array to a list. <^ [[ array ]] → [[ matrix ]] Converts a numeric array into a symbolic matrix. <...
• Page 25 Name Description Access Inputs Outputs → n BUFLEN Returns the number of characters in the serial input chars buffer and a single digit indicating whether an error occurred. obj → #n BYTES Returns the number of bytes and the checksum for the MEMORY <N checksum...
• Page 26 Name Description Access Inputs Outputs n → “ string ” Returns a string representing the character corresponding TYPE <N to the character code n. → CKSM Specifies the error-detection scheme. checksum → ...obj CLEAR Removes all objects from the stack or history. >‰...
• Page 27 Name Description Access Inputs Outputs →COL [[ matrix ]] → [ vector ] Transforms a matrix into a series of column vectors and [ vector ] MATRIX < P col1 coln colcount returns the vectors and a column count. → [[ matrix ]] [ vector ] [ vector ] COL→...
• Page 28 Name Description Access Inputs Outputs → x x1_units x2_units CONVERT Converts a source unit object to the dimensions of a target _units UNITS < ^ source t arget target unit. TOOLS → x CORR Returns the correlation coefficient of the independent and correlation dependent data columns in the current statistics matrix.
• Page 29 Name Description Access Inputs Outputs ( x, y ) → x y C→R Separates the real and imaginary parts of a complex TYPE <N number or complex array. xe / D yRe → x DARCY Calculates the Darcy friction factor of certain fluid flows.* Darcy →DATE date →...
• Page 30 Name Description Access Inputs Outputs → DELAY Specifies how many seconds the HP 49 waits between delay sending lines of information to the printer. → DELKEYS Clears user-defined key assignments. ‘ global ’ → DEPND Specifies the dependent variable (and its plotting range for TRUTH plots).
• Page 31 Name Description Access Inputs Outputs { dim } → [[ matrix ]] [ array ] DIAG→ Takes an array and a dimension and returns a matrix < % diagonals whose major diagonal is the elements of the array. CREATE DIFF Displays a menu of calculus commands.
• Page 32 Name Description Access Inputs Outputs n « program » → { results } { list } ... { list } DOLIST Applies commands, programs, or user-defined functions LIST <N to lists. PROCEDURES n « program » → { list } { list } DOSUBS Applies a program or command to groups of elements in a...
• Page 33 Name Description Access Inputs Outputs n → obj … obj DUPN Takes integer n from level 1 of the stack, and returns … obj … obj STACK <N copies of objects on stack levels 2 through to n + 1. x →...
• Page 34 Name Description Access Inputs Outputs n → Sets the number display format to engineering mode. ’ → ‘ symb ‘ symb EPSX0 Replaces with zero those coefficients in a polynomial that ’ have an absolute value less than the variable EPS. →...
• Page 35 Name Description Access Inputs Outputs ’ → ‘ symb ‘ symb EXPAN Expands and simplifies an algebraic expression. ’ ’ → ‘ symb ‘ symb EXPAND Expands and simplifies an algebraic expression. ’ >ú ’ → ‘ symb ‘ symb EXPANDMOD Expands and simplifies an expression, modulo the current ’...
• Page 36 Name Description Access Inputs Outputs z → { list } FACTORS For a value or expression, returns a list of prime factors <! and their multiplicities. → x FANNING Calculates the Fanning friction factor of certain fluid fanning flows.* FAST3D Sets the plot type to FAST 3D.
• Page 37 Name Description Access Inputs Outputs → FLASHEVAL Evaluates unnamed flash functions. function x → n FLOOR Returns the greatest integer that is less than or equal to < P REAL the argument.* →FONT → obj Returns the current system font. →...
• Page 38 Name Description Access Inputs Outputs → 0/1 Tests whether the specified system or user flag is set, and TEST <N flagnumber returns a corresponding test result. → 0/1 FS?C Tests whether the specified system or user flag is set, TEST <N flagnumber returns a corresponding test result, then clears the flag.
• Page 39 Name Description Access Inputs Outputs →GROB → grob obj n Creates a graphics object from a specified object, where charsize the argument n specifies the size of the object. char size → grob grob grob GROBADD Combines two graphic objects. →...
• Page 40 Name Description Access Inputs Outputs z → [[ matrix ]] HILBERT Returns a square Hilbert matrix of the specified order. <% CREATE HISTOGRAM Sets the plot type to HISTOGRAM. HISTPLOT Plots a frequency histogram. →HMS x → HMS Converts a real number representing hours or degrees TOOLS >...
• Page 41 Name Description Access Inputs Outputs → z IABCUV Returns a solution in integers u and v of au + bv = c , INTEGER <! where a , b , and c are integers. → z Returns the n th Bernoulli number for a given integer.* IBERNOULLI ’...
• Page 42 Name Description Access Inputs Outputs → T/F obj IFTE Executes the obj in argument 2 or level 2 if T/F is nonzero. BRANCH <N true false Executes the obj in argument 3 or level 1 if T/F is zero.* ’ → ‘ symb ‘...
• Page 43 Name Description Access Inputs Outputs x → n Returns the integer part of the argument.* REAL < P → n IQUOT Returns the integer quotient of two integers.* <! INTEGER → n IREMAINDER Returns the remainder of an integer division.* ’...
• Page 44 Name Description Access Inputs Outputs KILL Cancels all currently halted programs. If KILL is executed & < N within a program, that program is also canceled. DEBUG Labels axes in PICT with variable names and with the LABEL minimum and maximum values of the display ranges. ]] →...
• Page 45 Name Description Access Inputs Outputs « program » → [[ matrix LCXM From a program with two arguments, builds a matrix with the specified number of rows and columns, with a = f (i,j). ’ → ‘ symb ‘ symb ’...
• Page 46 Name Description Access Inputs Outputs ‘ symb ’ ‘ name ’ → 0/1 LININ Tests whether an algebraic is structurally linear for a given TEST <N variable.* ] → ‘ symb [[ array ]] [ vector ’ { list } ‘ symb LINSOLVE Solves a system of linear equations.
• Page 47 Name Description Access Inputs Outputs → [[ matrix ]] [[ matrix ]] Returns the LQ factorization of an m × n matrix. [[ matrix ]] [[ matrix ]] < % FACTORIZATION → Intercept: x Slope: x Uses currently selected statistical model to calculate the linear regression coefficients (intercept and slope).
• Page 48 Name Description Access Inputs Outputs → ‘ MAXR ’ MAXR Returns the symbolic constant MAXR or its numerical < P representation 9.99999999999E499.* CONSTANTS → x Finds the maximum coordinate value in each of the m MAXΣ columns of the current statistical matrix. ‘name’...
• Page 49 Name Description Access Inputs Outputs → ‘ MINR ’ MINR Returns the symbolic constant MINR or its numerical < P representation, 1.00000000000E–499.* CONSTANTS → x Finds the minimum coordinate value in each of the m MINΣ columns of the current statistics matrix. "title"...
• Page 50 Name Description Access Inputs Outputs obj n → obj … obj n NDUPN Duplicates an object n times, and returns n. z → –z Changes the sign or negates an object.* > ó → obj NEWOB Creates a new copy of the specified object. MEMORY <N NEXT...
• Page 51 Name Description Access Inputs Outputs → NUMX Sets the number of x -steps for each y -step in 3D perspective plots. → Sets the number of y -steps across the view volume in 3D NUMY perspective plots. ( x, y ) → x y OBJ→...
• Page 52 Name Description Access Inputs Outputs ’ → ‘ symb ‘ symb PARTFRAC Performs partial fraction decomposition on a partial ’ <! fraction. POLYNOMIAL → { HOME directory-name … PATH Returns a list specifying the path to the current directory. MEMORY <N directory-name DIRECTORY...
• Page 53 Name Description Access Inputs Outputs → obj PICK3 Duplicates the object on level 3 of the stack. → PICT PICT Puts the name PICT on the stack. PICT <N PICTURE Selects the Picture environment. PINIT Initializes all currently active ports. ( x,y ) →...
• ### Page 54: Round

Name Description Access Inputs Outputs → obj POWMOD Raises an object (number or expression) to the specified MODULO <! power, and expresses the result modulo the current modulus.* Prints an object in multiline printer format. → y PREDV Returns the predicted dependent-variable value independent dependent , based on x...
• Page 55 Name Description Access Inputs Outputs “ prompt ” → PROMPT Displays the contents of “ prompt ” in the status area, and <N halts program execution. “ global ” → PROMPTSTO Creates a variable with the specified name, prompts for a value, and stores the value you enter in the variable.
• Page 56 Name Description Access Inputs Outputs ‘ global ’ → PURGE Purges the named variables or empty subdirectories from MEMORY <N the current directory. → [[ matrix ]] [[ matrix ]] Replaces the object at a specified position in an array. LIST <N position...
• Page 57 Name Description Access Inputs Outputs ’ → ‘ symb ‘ symb ’ ‘ symb QUOT Returns the quotient part of the Euclidean division of two ’ <! polynomials. POLYNOMIAL → obj QUOTE Returns unevaluated arguments.* ] → ‘ symb ‘ symb ’...
• Page 58 ( x, y ) → x Returns the real part of the argument.* > ó ‘ name ’ → RECN Prepares the HP 49 to receive a file from another Kermit server device, and to store the file in a specified variable. * = function...
• Page 59 Access Inputs Outputs RECT Sets the coordinate mode to rectangular. RECV Instructs the HP 49 to look for a named file on another Kermit server device. ]] → [[ matrix [[ matrix Reduces a matrix to echelon form. LINEAR <% SYSTEMS ’...
• Page 60 Name Description Access Inputs Outputs } → { ob { obj , ... obj REVLIST Reverses the order of the elements in a list. , … obj LIST <N PROCEDURES → ‘ symb ‘ symb ’ z RISCH Performs symbolic integration on a function using the .
• Page 61 Name Description Access Inputs Outputs n → obj ... obj ROLLD Moves the contents of level 2 to a specified level, n , and … obj STACK <N rolls downward the portion of the stack beneath the specified level. ROMUPLOAD Transfers the operating system to another calculator.
• Page 62 Name Description Access Inputs Outputs ]] → { list } [[ matrix [[ matrix rref Reduces a matrix to row-reduced echelon form and returns pivot points.* ]] → [[ matrix [[ matrix RREF Reduces a matrix to row-reduced echelon form.* LINEAR <% SYSTEMS...
• Page 63 Name Description Access Inputs Outputs → n R→I Converts a real number to an integer.* → 0/1 SAME Compares two objects, and returns a true result (1) if they TEST <N are identical, and a false result (0) if they are not. SBRK Interrupts serial transmission or reception →...
• ### Page 64: Index

Name Description Access Inputs Outputs ‘ name ’ → SCONJ Conjugates the contents of a named object. MEMORY <N ARITHMETIC ‘ name ’ → SCROLL Displays the contents of a named object. → x SDEV Calculates the sample standard deviation of each of the m sdev columns of coordinate values in Σ...
• Page 65 Name Description Access Inputs Outputs → ‘ symb ‘ symb ’ z SIGMA Calculates the discrete antiderivative of a function with ’ respect to a specified variable.* ’ → ‘ symb ‘ symb SIGMAVX Calculates the discrete antiderivative of a function with ’...
• Page 66 Name Description Access Inputs Outputs → #n Shifts a binary integer one byte to the left. BASE < P BYTE SLOPEFIELD Sets the plot type to SLOPEFIELD. ‘ name ’ → SNEG Replaces the contents of a variable with its negative. MEMORY <N ARITHMETIC...
• Page 67 Name Description Access Inputs Outputs → #n Shifts a binary integer one byte to the right. BASE < P BYTE n → ‘ string ’ 0/1 Returns up to n characters from the serial input buffer, with SRECV an error digit if an error occurred. ”...
• Page 68 Name Description Access Inputs Outputs obj ‘ name ’ → STO– Calculates the difference between an object and a MEMORY <N variable and stores the object in the variable. ARITHMETIC obj ‘ name ’ → STO* Multiplies the contents of a specified variable by a number MEMORY <N or other object.
• Page 69 Name Description Access Inputs Outputs → obj SUBTMOD Performs a subtraction, modulo the current modulus.* MODULO <! → [[ matrix ]] [[ matrix ]] Returns the singular value decomposition of an m × n [[ matrix ]] [ vector ] <...
• Page 70 Name Description Access Inputs Outputs z → tan z Returns the tangent of the argument.* ’ → ‘ symb ‘ symb TAN2SC Replaces tan( x ) terms with sin( x ) and cos( x ) terms. ’ >û ’ → ‘ symb ‘...
• Page 71 Name Description Access Inputs Outputs THEN Starts the true-clause in a conditional or error-trapping BRANCH <N structure. → #n TICKS Returns the system time as a binary integer. TOOLS >ç time TICKS → time TIME Returns the system time in HH.MMSSs format. >ç...
• Page 72 Name Description Access Inputs Outputs ’ → ‘ symb ‘ symb TRIG Converts complex logarithmic and exponential terms into ’ >û their equivalent trigonometric terms. ’ → ‘ symb ‘ symb TRIGCOS Simplifies a trigonometric expression into cosine terms. ’ >û...
• Page 73 * unit < ^ level 2 unit object. UNITS TOOLS → UFL1→MINIF Converts a UFL1 (universal font library) fontset to a HP fontset 49G minifont. →UNIT x y_unit → x_unit Creates a unit object from a real number and a unit expression.
• Page 74 Name Description Access Inputs Outputs UNTIL Starts the test clause in a DO … UNTIL … END indefinite BRANCH <N loop structure. UPDIR Makes the parent of the current directory the new current <J directory. n x → utpc ( n,x ) UTPC Returns the probability that a chi-square random variable <...
• Page 75 Name Description Access Inputs Outputs → x Calculates the sample variance of the coordinate values in variance each of the m columns in Σ DAT . → { global … global VARS Returns a list of the names of all variables in the VAR MEMORY <N menu for the current directory.
• Page 76 Sends a file by XMODEM to another calculator. → z Converts a number, or a list of numbers in decimal format, to rational format. ‘ name ’ → XRECV Prepares the HP 49 to receive an object via XModem.* * = function...
• Page 77 Name Description Access Inputs Outputs → XRNG Specifies the x -axis display range. y x → XROOT Computes the x th root of a real number.* >ð ‘ name ’ → XSEND Sends a copy of the named object via XModem. XSERVE Puts the calculator in XMODEM server mode.
• Page 78 Name Description Access Inputs Outputs → YVOL Sets the depth of the view volume in VPAR. near → YYRNG Specifies the y range of an input plane (domain) for near GRIDMAP and PARSURFACE plots. → z ‘ symb ’ z ZEROS Returns the zeros of a function of one variable, without <&...
• Page 79 Name Description Access Inputs Outputs → ‘ symb ‘ symb ’ { name , ‘ symb ’, nam Where command: substitutes values for names in an ’ ê ‘ symb ’ … } expression.* x y → 0/1 < Tests whether one object is less than another object.* >„...
• Page 80 Name Description Access Inputs Outputs Σ – → x 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. Σ+ x →...