beautypg.com

Casio CLASSPAD 330 3.04 User Manual

Page 183

background image

20060301

S subList

Function: Extracts a specific section of a list into a new list.

Syntax: subList (List [,start number] [,end number] [ ) ]

Example: To extract the second through the fourth elements of the list {1, 2, 3, 4, 5}

Menu Item: [Action][List-Create][subList]

• The leftmost element is the default when you omit “[,start number]”, and the rightmost

element is the default when you omit “[,end number]”.

S shift

Function: Returns a list in which elements have been shifted to the right or left by a

specific amount.

Syntax: shift (List [,number of shifts] [ ) ]

• Specifying a negative value for “[,number of shifts]” shifts to the right, while a positive

value shifts to the left.

Example: To shift the elements of the list {1, 2, 3, 4, 5, 6} to the left by three

Menu Item: [Action][List-Create][shift]

• Right shift by one (–1) is the default when you omit “[,number of shifts]”.

S rotate

Function: Returns a list in which the elements have been rotated to the right or to the left

by a specific amount.

Syntax: rotate (List [,number of rotations] [ ) ]

• Specifying a negative value for “[,number of rotations]” rotates to the right, while a

positive value rotates to the left.

Example: To rotate the elements of the list {1, 2, 3, 4, 5, 6} to the left by two

Menu Item: [Action][List-Create][rotate]

• Right rotation by one (–1) is the default when you omit “[,number of rotations]”.

S sortA

Function: Sorts the elements of the list into ascending order.

Syntax: sortA (List [ ) ]

Example: To sort the elements of the list {1, 5, 3} into ascending order

Menu Item: [Action][List-Create][sortA]

2-8-23

Using the Action Menu