EasyManuals Logo

HP 50G User Manual

HP 50G
887 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #285 background imageLoading...
Page #285 background image
Page 9-8
Highlighting the entire expression and using the @EVAL@ soft menu key, we get the
result: -15.
To replace an element in an array
use function PUT (you can find it in the
function catalog ‚N, or in the PRG/LIST/ELEMENTS sub-menu – the later
was introduced in Chapter 8). In ALG mode, you need to use function PUT with
the following arguments: PUT(array, location to be replaced, new value). For
example, to change the contents of A(3) to 4.5, use:
In RPN mode, you can change the value of an element
of A, by storing a new
value in that particular element. For example, if we want to change the
contents of A(3) to read 4.5 instead of its current value of –3., use:
4.5`³~a„Ü3`K
To verify that the change took place use: @@@@A@@ . The result now shown is: [-
1 -2 4.5 -4 -5 ].
To find the length of a vector
you can use the function SIZE, available through
the command catalog (N) or through the PRG/LIST/ELEMENTS sub-menu.
Some examples, based on the arrays or vectors stored previously, are shown
below:
Note: The vector A can also be referred to as an indexed variable because
the name A represents not one, but many values identified by a sub-index.
Note: This approach for changing the value of an array element is not
allowed in ALG mode, if you try to store 4.5 into A(3) in this mode you get the
following error message: Invalid Syntax.

Table of Contents

Other manuals for HP 50G

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HP 50G and is the answer not in the manual?

HP 50G Specifications

General IconGeneral
Digits33 digits
Battery typeCR2032
TypeScientific
Form factorPocket
Weight and Dimensions IconWeight and Dimensions
Weight220 g
Dimensions (WxDxH)87 x 184 x 23.5 mm

Related product manuals