Logical, True'), False) – HP 38g Graphing Calculator User Manual

Page 62: Value kaalue2, Value l^value2, Value 1 = =value2, Value! i=value2, Value i>value2, Value! ^value2, Value

Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".

Advertising
background image

Test Functions

The test functions are

logical

operators that always return

either a

1

(true')

or a

0

(false).

<■

Less than. Returns 1 if true, 0 if false.

value Kaalue2

^

Less than or equal to. Returns 1 if true, 0 if false.

value l^value2

— —

Equals (logical test). Returns 1 if true, 0 if false.

value 1 = =value2

Not equal to. Returns 1 if true, 0 if false.

i=

value! i=value2

>

Greater than. Returns 1 if true, 0 if false.

value I>value2

>

Greater than or equal to. Returns 1 if true, 0 if false.

value! ^value2

AND

IFTE

NOT

OR

XOR

Compcires

value!

and

value2.

Returns 1 if they cire both non­

zero, otherwise returns

0

.

value!

AND

value2

If

expression

is true, do the

trueclause;

if not, do the

falseclause.

IFTE

(

expression, trueclause, falseclause)

Example: IFTE(X>

0

,x^x’)

Returns 1 if

value

is zero, otherwise returns 0.

NOT

value

Returns 1 if either

value!

or

value2

is non-zero, otherwise

returns

0

.

value!

OR

value2

Exclusive OR. Returns 1 if either

value!

or

value2

—but not both

of them—is non-zero, otherwise returns

0

.

value!

XOR

value2

2-26 Mathematical Calculations

Advertising