EasyManuals Logo
Home>HP>Calculator>50G

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 #700 background imageLoading...
Page #700 background image
Page 21-53
5.6 @@f3c@ Result: -0.631266… (i.e., sin(x), with x in radians)
12 @@f3c@ Result: 162754.791419 (i.e., exp(x))
23 @@f3c@ Result -2. (i.e., -2)
As you can see, f3c produces exactly the same results as f3. The only
difference in the programs is the branching constructs used. For the case of
function f
3
(x), which requires five expressions for its definition, the CASE
construct may be easier to code than a number of nested IF … THEN … ELSE
… END constructs.
Program loops
Program loops are constructs that permit the program the execution of a number
of statements repeatedly. For example, suppose that you want to calculate the
summation of the square of the integer numbers from 0 to n, i.e.,
To calculate this summation all that you have to do is use the ‚½ key
within the equation editor and load the limits and expression for the summation
(examples of summations are presented in Chapters 2 and 13). However, in
order to illustrate the use of programming loops, we will calculate this
summation with our own User RPL codes. There are four different commands
that can be used to code a program loop in User RPL, these are START, FOR,
DO, and WHILE. The commands START and FOR use an index or counter to
determine how many times the loop is executed. The commands DO and
WHILE rely on a logical statement to decide when to terminate a loop
execution. Operation of the loop commands is described in detail in the
following sections.
The START construct
The START construct uses two values of an index to execute a number of
statements repeatedly. There are two versions of the START construct:
STARTNEXT and START STEP. The STARTNEXT version is used when the
index increment is equal to 1, and the START…STEP version is used when the
index increment is determined by the user.
=
=
n
k
kS
0
2

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