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 #697 background imageLoading...
Page #697 background image
Page 21-50
IF x<3 THEN
x
2
ELSE
1-x
END
While this simple construct works fine when your function has only two
branches, you may need to nest IF…THEN…ELSE…END constructs to deal with
function with three or more branches. For example, consider the function
Here is a possible way to evaluate this function using IF… THEN … ELSE …
END constructs:
IF x<3 THEN
x
2
ELSE
IF x<5 THEN
1-x
ELSE
IF x<3π THEN
sin(x)
ELSE
IF x<15 THEN
exp(x)
ELSE
-2
END
END
END
END
<
<
<
<
=
elsewhere
xifx
xifx
xifx
xifx
xf
,2
153),exp(
35),sin(
53,1
3,
)(
2
3
π
π

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