Sharp OZ-707 Operation Manual - Page 66

Abbreviation

Page 66 highlights

• The DEFSNG statement is executed. • The power is turned off. • The RUN or NEW command is executed. • A program is loaded (except by the CHAIN command). When using the DIM statement to establish the number of elements allowed in a numeric array, the DEFDBl statement must be used first if those elements are to be treated as double-precision variables: DEFDBl A DIM A(3,2) In the example below, the elements will be treated as single-precision variables: DIM A(3,2) DEFDBl A DEFSNG p o FORMAT: 1. DEFSNG character range 2. DEFSNG Abbreviation: DEFS. See Also: DEFDBl PURPOSE: Defines variable(s) with single-character names as having single precision accuracy or cancels double-precision mode specified by DEFDBL. REMARKS: In format 1, the variables in the "character range" are designated as single-precision. "Character range" can be specified as follows : • OEFSNG C-F where variables C, 0, E and F are designated as single-precision, or • OEFSNG E,F,Z,H-.J where variables E, F, Z, H, I and J are designated as single-precision. Variable names followed by double-precision type declaration characters (#) are given type priority over variable names declared by the DEFSNG statement. For example, variables E and F in the statement DEFSNG E,F will be treated as single-precision variables, but variables E# and F# as double-precision variables. Variables not declared as double- or single-precision are treated as single-precision variables. In format 2, all subsequent calculations are carried out with single precision. The DBl mark on the screen is canceled in this mode. 120 121

  • 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

• The DEFSNG statement
is
executed.
• The power
is
turned off.
• The
RUN
or NEW command is executed.
• A program
is
loaded (except by the CHAIN command).
When using the DIM statement to establish the number of elements
allowed
in
a numeric array, the
DEFDBl
statement must be used first
if those elements are to be treated as double-precision variables:
DEFDBl
A
DIM A(3,2)
In the example below, the elements will
be
treated
as
single-precision
variables:
DIM A(3,2)
DEFDBl
A
120
DE
FSNG
FOR
MAT:
1. DEFSNG character range
2.
DEFSNG
Abbreviation:
DEFS.
See
Also:
DEFDBl
PURPOSE:
De
fines variable(s) with single-character names as having single
precision accuracy or cancels double-precision mode specified by
DE
FDBL.
RE
MARKS
:
In
format 1, the variables
in
the "character range" are designated as
si
ngle-precision. "Character range" can
be
specified as follows:
• OEFSNG
C-F
p
o
where variables
C,
0,
E and F are designated as single-precision, or
• OEFSNG E,F,Z,H-.J
where variables
E,
F,
Z, H, I and
J
are designated as
single-precision.
Variable names followed by double-precision type declaration
characters (#) are given type priority over variable names declared by
the DEFSNG statement. For example, variables E and F in the
statement
DEFSNG E,F
will
be
treated as single-precision variables, but variables E# and F# as
double-precision variables. Variables not declared as double- or
single-precision are treated as single-precision variables.
In
format 2, all subsequent calculations are carried out with single
precision. The
DBl
mark on the screen
is
canceled
in
this mode.
121