Sharp OZ-707 Operation Manual - Page 19

Reference, Direct Calculation Feature, Example, Operation

Page 19 highlights

• "&H" represents a hexadecimal value. • If you attempt decimal-to-hex conversion on a negative decimal number, the Card Internally performs "two's complement" calculation and shows the result in 16's complement. B • The key may be used to reverse the sign of the numeric data now in the display. If the sign of a positive hex number is reversed, the complement of the positive number will be displayed. • When you wish conversion between decimal and hex numbers, use the following assignment statements: From decimal to hex: A$=HEX$ N From hex to decimal: N=VAl ("&W+A$) or N=&H4F3 The allowable ranges of hex numbers are: 0 ~ x ~ 2540BE3FF and FDABF41C01 ~ x ~ FFFFFFFFFF. - Reference - Expressions composed of relational operators can take on the values listed in the following table: x and y represent numeric values. = . -1 if x = y 0 if x~y -1 if x i?:;y >= 0 ifxy > 0 if x:iy -1 if x

  • 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

• "&H" represents a hexadecimal value.
If you attempt decimal-to-hex conversion
on
a negative decimal
number, the Card Internally performs "two's complement" calculation
and shows the result in 16's complement.
• The
B
key may be used to reverse the sign of the numeric data
now in the display. If the sign of a positive hex number is reversed,
the complement of the positive number will
be
displayed.
• When
you
wish conversion between decimal and hex numbers, use
the following assignment statements:
From decimal to hex: A$=HEX$ N
From hex to decimal:
N=VAl
("&W+A$) or N=&H4F3
The allowable ranges of hex numbers are:
0
~
x
~
2540BE3FF
and FDABF41C01
~
x
~
FFFFFFFFFF.
-
Reference -
Expressions composed of relational operators
(=,
>, <, >
=,
<
=,
<
»
can take
on
the values listed in the following table:
x and y represent numeric values.
.
-1
if
x
=
y
-1
if
x
i?:;y
=
0
if
x~y
>=
0
ifx<y
-1
if
x>y
-1
ifx
:iy
>
<=
0
if
x:iy
0
if
x>
y
-1
if
x<y
-1
if
x
~y
(
"<>"
)
<
<>
i
fx
=y
means
"~"
0
if
x
i:;
y
0
If, for example, "A = numeric value" or "B
=
formula" is used
in
a
logical equation, the computer will not treat it as a logical equation
but as
an
assignment statement for variables. When using an equal
(=) sign
in
a !ogical equation, use it in the form of "numeric value =
A" or "formula
=
B",
with the exception of conditional expressions
used
in
IF statements.
Direct Calculation Feature
In the manual calculations described up to now, the
I
ENTER
I
key has
always been used to terminate a formula and obtain the calculation
result of the formula. However, you can directly operate the functions
of
the computer with the desired function key (without operating the
I
ENTER
I
key) when the objective numeric data is in the display.
26
Example:
Determine sin 30° and
a!.
Operation:
DEGREE
I
ENTER
I
I
C-cE
I
3 0
[][J]
Operation:
I
c
e
CE
lal12ndFIII
nl
II
I
S IN
3e
FACT
8
40323
Examp!~:
5
.
5
.
For tan
12'
first check the result of
12
'
then determine tan-
1
1
5
2 .
Operation:
DEGREE
I
ENTER
I
5
I :
112
I
ENTER
1112l1li
F
II
~
YAIr
'
11
DEGREE
5/12
4.
166666667E-01
ATN
4.
166666667E
-131
22.61986495
Note that this "direct" calculation mode
is
not available for functions
requiring the entry of more than one numeric value (binominal
functions) such
as
power, root, or coordinate conversion.
The direct calculation feature
is
not effective for formulas:
(e.g.)
It
CE
I
i
[K]
4~
5*4_
~
~5*4LOG_
If
no
data is
on
the display, pressing a function key will display the
corresponding BASIC command.
The direct calculation feature
is
effective only for numeric values.
Therefore, if hexadecimal numbers
A
to F are entered for hex to
decimal conversion, the direct calculation feature will remain
inoperative.
In
such a case, perform
an
ordinary manual calculation
using the
I
ENTER
I
key.
27