Functions Defined By More Than One Expression; The Ifte Function - HP 49g+ User Manual

Graphing calculator
Hide thumbs Also See for 49g+:
Table of Contents

Advertisement

In the RPN mode, to activate the function enter the argument first, then press
the soft menu key corresponding to the variable name @@@H@@@ . For example,
you could try: 2`@@@H@@@ . The other examples shown above can be
entered by using: 1.2`@@@H@@@ , 2/3`@@@H@@@ .
Functions can have more than 2 arguments. For example, the screen below
shows the definition of the function K( , ) =
, and its evaluation with the
arguments K( 2, ), and K(1.2,2.3):
α β 'α+β' >>.
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
2
x
, 1
x
0
f
(
x
)
2
x
, 1
x
0
The HP 49 G provides the function IFTE (IF-Then-Else) to describe 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
Page 3-35

Advertisement

Table of Contents
loading

Table of Contents