beautypg.com

Integer – HP Prime Graphing Calculator User Manual

Page 548

background image

544

Programming

The special views in parentheses refer to the Function app,
and may differ in other apps. The number of a special
view corresponds to its position in the Views menu for that
app. The first special view is launched by
STARTVIEW(8), the second with STARTVIEW(9), and

so on.
You can also launch views that are not specific to an app
by specifying a value for n that is less than 0:

HomeScreen:-1
Home Modes:-2
Memory Manager:-3
Applications Library:-4
Matrix Catalog:-5
List Catalog:-6
Program Catalog:-7
Notes Catalog:-8

VIEW

Syntax: VIEWS ("string"[,program_name])
Adds a view to the Views menu. When string is selected,
runs program_name.

Integer

BITAND

Syntax: BITAND(int1, int2, … intn)
Returns the bitwise logical AND of the specified integers.
Example: BITAND(20,13) returns 4.

BITNOT

Syntax: BITNOT(int)
Returns the bitwise logical NOT of the specified integer.
Example: BITNOT(47) returns 549755813840.

BITOR

Syntax: BITOR(int1, int2, … intn)
Returns the bitwise logical OR of the specified integers.
Example: BITAND(9,26) returns 27.

BITSL

Syntax: BITSL(int1 [,int2])
Bitwise Shift Left. Takes one or two integers as input and

returns the result of shifting the bits in the first integer to the

left by the number places indicated by the second integer.

If there is no second integer, the bits are shifted to the left

by one place.