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 #166 background imageLoading...
Page #166 background image
Page 3-36
The contents of the variable K are: << α βα+β’ >>.
Functions defined by more than one expression
In this section we discuss the treatment of functions that are defined by two or
more expressions. An example of such functions would be
The function IFTE (IF-Then-Else) describes such functions.
The IFTE function
The IFTE function is written as IFTE(condition, operation_if_true, operation_if_false)
If condition is true then operation_if_true is performed, else operation_if_false is
performed. For example, we can write ‘f(x) = IFTE(x>0, x^2-1, 2*x-1)’, to
describe the function listed above. Function IFTE is accessible from the function
catalog (‚N). The symbol ‘>’ (greater than) is available as (associated
with the Y key). To define this function in ALG mode use the command:
DEF(f(x) = IFTE(x>0, x^2-1, 2*x-1)) then, press `. In RPN mode, type the
function definition between apostrophes:
‘f(x) = IFTE(x>0, x^2-1, 2*x-1)’
then press „à.
Press J to recover your variable menu. The function @@@f@@@ should be available
in your soft key menu. Press @@@f@@@ to see the resulting program:
<< x ‘IFTE(x>0, x^2-1, 2*x-1)’ >>
To evaluate the function in ALG mode, type the function name, f, followed by the
number at which you want to evaluate the function, e.g., f(2), then press `.
In RPN mode, enter a number and press @@@f@@@. Check, for example, that f(2) =
3, while f(-2) = -5.
>
<
=
0,1
0,12
)(
2
xx
xx
xf

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