ORGANIZATION OF MATHEMATICAL COMPUTATIONS.
Methods of forming and changing meanings
tion of numerical parameters.
Initial data, intermediate and final
The final results of the calculations are
the set of values that account for
post and for some time
store in appropriate variables.
To form previously known signs
applications in numerical variables are usually
run to the procedure for entering the necessary information
tion that can be read from the buffer
keyboard ra, from the data file, located
on a flexible or rigid magnetic disk
ke, from the data block, pre-formed
stored in RAM.
If the value of a variable must be
obtained as a result of calculations using arithmetic
metic formula, then its entry in the ob-
area of RAM allocated for
variable storage is done according to
with the power of the assignment operator.
A block of numeric data can be represented
itself as a simultaneous array, located
married in RAM.Last
circumstance is the basis for the name
Make this block internal. Memorization
the specified array is maintained in the process
pre-processing of source text
of the program before it is launched on the account. How
only in the program does the operator appear
DATA, then all constants listed in
his body, are transferred to a specially
entered memory area. The order in which they are placed is
locations in the data block are exactlyindicates the order in which they appear in the list
DATA operator: DATA C1,C1,...,Cn.
The first constant C1 becomes first
element of the data block, second constant
C2 - the second element, etc.
There may be more than one in the program
DATA operator, and then the next number -
Your option is entered into the data block next
after the previous one. The procedure for transferring such
options matches the sequence
placement of DATA statements in text
programs.Formed in this way
the data block can be used in
as a supplier of numeric values
arithmetic type belts during
execution of the program. The operators themselves
DATA are declarative, and in time
When programs work, they bypass them.Character -
The main feature of the data block is
sequential access to its elements.
At the moment of launching the program to the account in SOS
The state of readiness is given numerically
the value that was included in the data block
first. In other words, this is the first cons-
tant of the very first operator DATA.Pos-
after sampling this value, the available steel
the next constant is updated, etc.
To extract numeric values from
The data block is intended for the READ statement:
READ V1,V2,...,Vn.
It consistently satisfies the requirements
variables of your list, retrieving the next one
value from the data block and moving
it to the memory area reserved for
storing a variable. Execution of this pro-
proceduresif necessary, can be accompanied
be given by machine format conversion
numerical constant to the form that
corresponds to the type of the variable.
An attempt to extract at least
one more meaning after already
la the last constant was read, calculated
appears as a runtime error
and leads to an emergency termination of the program
frames.
The third operator who participates in
servicing a data block is oper-
rator RESTORE: RESTORE {N}.
Without the N operand, this operator produces
the data block to its original state,
at which the next available value
The very first constant becomes new.
If the operand is given, then it can be no-
measures of the program line in which the
The DATA statement is executed. After execution
such a RESTORE operator is the next addition
the first cons-
tanta of the numerical portion of the specified opera-
torus DATA.
The RESTORE statement can be used on
any stage of “emptying” the data block,
even if we haven’t left any of the data block yet
no significant meaning was extracted.
Share your thoughts about the article