Array Variables - Sharp mz-800 Owner's Manual

Hide thumbs Also See for mz-800:
Table of Contents

Advertisement

5.5
Array Variables
An array is an arrangement of variables of the same data type, which are referred to by a common
name. Each variable of an array is identified by the common name, which is composed of a string
formed in the same manner as a variable name and followed by subscripts enclosed within parenthese,
e.g., A(X) and BS(x,y). An array with one subscript (such as A(X), B$(1) or P(100)) is called a one-
dimensional array, while that with two subscripts (such as A(x,y), B$(1,3) or P(50,25)) is called a two-
dimensional array. To use array variables in a program, the common name and the number of varia-
bles included in the array must be declared before they are used. For details see the explanation of
the DIM statement in Chapter 6.
* Note Concerning Computational Error
(1) Rounding error
(2) Error resulting upon conversion to binary form
(3) Increase in relative error due to subtraction
100012
~ 100001
i
(4) Error due to approximation
5-6

Advertisement

Table of Contents
loading

Table of Contents