HP 50g HP 50g_user's manual_English_HDPSG49AEM8.pdf - Page 98

Creating and storing lists, Operations with lists of numbers, Changing sign

Page 98 highlights

Chapter 7 Operations with lists Lists are a type of calculator's object that can be useful for data processing. This chapter presents examples of operations with lists. To get started with the examples in this Chapter, we use the Approximate mode (See Chapter 1). Creating and storing lists To create a list in ALG mode, first enter the braces key „ä , then type or enter the elements of the list, separating them with commas (,í). The following keystrokes will enter the list {1.,2.,3.,4.} and store it into variable L1. „ä1,í2,í3,í4 ™K~l1` Entering the same list in RPN mode requires the following keystrokes: „ä1#2#3#4` ³~l1`K Operations with lists of numbers To demonstrate operations with lists of numbers enter and store the following lists in the corresponding variables. L2 = {-3.,2.,1.,5.} L3 = {-6.,5.,3.,1.,0.,3.,-4.} L4 = {3.,-2.,1.,5.,3.,2.,1.} Changing sign The sign-change key (\), when applied to a list of numbers, will change the sign of all elements in the list. For example: Page 7-1

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184

Page 7-1
Chapter 7
Operations with lists
Lists are a type of calculator’s object that can be useful for data processing.
This chapter presents examples of operations with lists.
To get started with
the examples in this Chapter, we use the Approximate mode (See Chapter
1).
Creating and storing lists
To create a list in ALG mode, first enter the braces key
„ä
, then type
or enter the elements of the list, separating them with commas (
‚í
).
The following keystrokes will enter the list {1.,2.,3.,4.} and store it into
variable L1.
„ä1‚í2‚í3‚í4
™K~l1`
Entering the same list in RPN mode requires the following keystrokes:
„ä1#2#3#4`
³~l1`K
Operations with lists of numbers
To demonstrate operations with lists of numbers enter and store the
following lists in the corresponding variables.
L2 = {-3.,2.,1.,5.}
L3 = {-6.,5.,3.,1.,0.,3.,-4.}
L4 = {3.,-2.,1.,5.,3.,2.,1.}
Changing sign
The sign-change key (
\
), when applied to a list of numbers, will change
the sign of all elements in the list.
For example: