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

Subdirectories, Variables, Typing variable names - calculator programs

Page 40 highlights

Subdirectories To store your data in a well organized directory tree you may want to create subdirectories under the HOME directory, and more subdirectories within subdirectories, in a hierarchy of directories similar to folders in modern computers. The subdirectories will be given names that may reflect the contents of each subdirectory, or any arbitrary name that you can think off. For details on manipulation of directories see Chapter 2 in the calculator's user's guide. Variables Variables are similar to files on a computer hard drive. One variable can store one object (numerical values, algebraic expressions, lists, vectors, matrices, programs, etc). Variables are referred to by their names, which can be any combination of alphabetic and numerical characters, starting with a letter (either English or Greek). Some non-alphabetic characters, such as the arrow (→) can be used in a variable name, if combined with an alphabetical character. Thus, '→A' is a valid variable name, but '→' is not. Valid examples of variable names are: 'A', 'B', 'a', 'b A1', 'AB12', ' A12', 'Vel', 'Z0', 'z1', etc. A variable can not have the same name as a function of the calculator. Some of the reserved calculator variable names are the following: ALRMDAT, CST, EQ, EXPR, IERR, IOPAR, MAXR, MINR, PICT, PPAR, PRTPAR, VPAR, ZPAR, der_, e, i, n1,n2, ..., s1, s2, ..., ΣDAT, ΣPAR, π, ∞. Variables can be organized into sub-directories (see Chapter 2 in the calculator's user's guide). Typing variable names To name variables, you will have to type strings of letters at once, which may or may not be combined with numbers. To type strings of characters you can lock the alphabetic keyboard as follows: ~~ locks the alphabetic keyboard in upper case. When locked in this fashion, pressing the „ before a letter key produces a lower case letter, while pressing the , key before a letter key produces a special character. If the alphabetic keyboard is already locked in upper case, to lock it in lower case, type, „~. ~~„~ locks the alphabetic keyboard in lower case. When locked in this fashion, pressing the „ before a letter key produces an upper case letter. To unlock lower case, press „~. Page 2-9

  • 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 2-9
Subdirectories
To store your data in a well organized directory tree you may want to
create subdirectories under the HOME directory, and more subdirectories
within subdirectories, in a hierarchy of directories similar to folders in
modern computers.
The subdirectories will be given names that may reflect
the contents of each subdirectory, or any arbitrary name that you can think
off.
For details on manipulation of directories see Chapter 2 in the
calculator’s user’s guide.
Variables
Variables are similar to files on a computer hard drive. One variable can
store one object (numerical values, algebraic expressions, lists, vectors,
matrices, programs, etc).
Variables are referred to by their names, which
can be any combination of alphabetic and numerical characters, starting
with a letter (either English or Greek).
Some non-alphabetic characters,
such as the arrow (
) can be used in a variable name, if combined with
an alphabetical character.
Thus, ‘
A’ is a valid variable name, but ‘
’ is
not.
Valid examples of variable names are: ‘A’, ‘B’, ‘a’, ‘b’, ‘
α
’, ‘
β
’, ‘A1’,
‘AB12’, ‘
±
A12’, ’Vel’, ’Z0’, ’z1’, etc.
A variable can not have the same name as a function of the calculator.
Some of the reserved calculator variable names are the following:
ALRMDAT, CST, EQ, EXPR, IERR, IOPAR, MAXR, MINR, PICT, PPAR,
PRTPAR, VPAR, ZPAR, der_, e, i, n1,n2, …, s1, s2, …,
Σ
DAT,
Σ
PAR,
π
,
.
Variables can be organized into sub-directories (see Chapter 2 in the
calculator’s user’s guide).
Typing variable names
To name variables, you will have to type strings of letters at once, which
may or may not be combined with numbers.
To type strings of characters
you can lock the alphabetic keyboard as follows:
~~
locks the alphabetic keyboard in upper case.
When locked in
this fashion, pressing the
before a letter key produces a lower case
letter, while pressing the
key before a letter key produces a special
character.
If the alphabetic keyboard is already locked in upper case, to
lock it in lower case, type,
„~
.
~~„~
locks the alphabetic keyboard in lower case.
When
locked in this fashion, pressing the
before a letter key produces an
upper case letter.
To unlock lower case, press
„~
.