Sharp OZ-707 Operation Manual - Page 15

Using Variables in Calculations, Single-Precision, Double-Precision, Last Answer Feature

Page 15 highlights

To change the sign of the previous result, mU_lti..:...p..;..ly-by----1-:------, [K] G 1 IENTER I 31313*1513 45131313*.15 67513*-1 45131313 6751.3 -67513 Using Variables in Calculations The Card can store up to 26 simple numeric variables under the alphabetic characters A to Z. If you are unfamiliar with the concept of variables, they are more fully explained in Chapter 2. Variables are designated with an assignment statement: A=sIENTER! B = -2 IENTER I You can also assign the value of one variable (right) to another variable (left). C = A + 3 IENTER I D = C IENTER I As you press I ENTER! , the Card performs the calculation and displays the new value of the variable. You can display the current value of any I variable by entering the alphabetiC character it is stored under: 1.... 1C IEHlER I c I 8 Variables will retain their assigned values even if the Organizer is turned OFF or undergoes an Auto OFF. Variables are lost only when: • You assign a new value to the same variable. • You enter CLEAR IENTER I (not the IC.cE I key). 18 There are certain limitations on the assignment of variables, and certain programming procedures that cause them to be changed. See Chapter 2 for a discussion of assignment. See Chapter 2 for a discussion of the use of variables in programming. Single-Precision, Double-Precision The largest number that the Card can handle in the single-precision mode is ten significant digits, with a twO-digit exponent. In the double-precision mode, it is increased to 20 significant digits (the capital E, indicating the exponent, is replaced by a capital D in double-precision mode). Selecting Double-Precision Mode 1. Enter RUN mode and press the IC.cE I key to clear the display. 2. Enter DEFDBl and press the IENTER I key. DBl is hi hlighted on the MODE CHECK display (press MODE CHECK ). indicating that the Card is now in the double-precision mode. Although the exponent is indicated by a capital letter D in the double-precision mode, you can still use either the E or D as a character when entering the exponent in an expression. See page 39 for more details. Canceling Double-Precision Mode 1. In the RUN mode, press the I CeCE! key to clear the display. 2. Enter DEFSNG and press the I ENTER! key. SNG is highlighted on the MODE CHECK display, indicating that the Card is now in the single-precision mode. The double-precision mode is automatically canceled if: 1. The power is turned OFF. 2. The RUN. NEW or CLEAR command is executed. Last Answer Feature In a simple calculation, the result of the previous calculation can only be used in continuous calculations as the first number. 19

  • 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

To
change
the
sign
of
the
previous result,
mU_lti..:...p..;..ly-b-
y
---1-:------,
[K]
G
1
I
ENTER
I
31313*1513
Using Variables in Calculations
45131313*.15
67513*-1
45131313
6751.3
-67513
The
Card
can
store up
to
26
simple numeric variables under
the
alphabetic characters A
to
Z.
If
you
are unfamiliar
with
the concept of
variables, they are
more
fully explained
in
Chapter
2.
Variables
are
designated
with
an
assignment statement:
A=sIENTER!
B
=
-2
I
ENTER
I
You
can
also
assign the
value
of
one variable (right)
to
another
variable (left).
C
=
A
+
3
I
ENTER
I
D
=
C
I
ENTER
I
As
you
press
I
ENTER!
,
the
Card
performs
the
calculation
and
displays
the
new
value
of
the variable.
You
can
display
the
current
value
of
any
variable
by
entering
the
alphabetiC
character it
is
stored under:
1
....
1
C
I
EHlER
I
I
c
8
I
Variables will retain their
assigned
values
even
if the Organizer
is
turned
OFF
or undergoes
an
Auto
OFF. Variables
are
lost only
when:
You
assign
a new value
to
the
same variable.
You
enter
CLEAR
I
ENTER
I
(not
the
I
C.cE
I
key).
18
There
are
certain limitations
on
the
assignment
of
variables,
and
certain
programming
procedures that cause
them
to
be
changed.
See
Chapter 2 for a discussion
of
assignment.
See
Chapter 2 for a
discussion
of
the
use
of
variables
in
programming.
Single-Precision, Double-Precision
The
largest number that the
Card
can
handle
in
the
single-precision
mode
is
ten
significant digits,
with
a
twO-digit
exponent.
In
the double-precision
mode,
it
is
increased
to
20
significant digits
(the
capital
E,
indicating
the
exponent,
is
replaced
by
a capital D
in
double-precision
mode).
Selecting Double-Precision Mode
1.
Enter
RUN
mode
and
press
the
I
C.cE
I
key
to
clear
the
display.
2.
Enter DEFDBl
and
press
the
I
ENTER
I
key.
DBl
is
hi
hlighted
on
the
MODE
CHECK display (press
MODE
CHECK
).
indicating that
the
Card
is
now
in
the
double-precision
mode.
Although
the
exponent
is
indicated
by
a capital letter D
in
the
double-precision
mode,
you
can
still
use
either
the
E
or
D
as
a
character
when
entering the exponent
in
an
expression.
See
page
39
for more details.
Canceling Double-Precision Mode
1.
In
the
RUN
mode,
press
the
I
CeCE!
key
to clear
the
display.
2.
Enter
DEFSNG
and
press
the
I
ENTER!
key.
SNG
is
highlighted
on
the
MODE
CHECK display, indicating that
the
Card
is
now
in
the single-precision mode.
The
double-precision
mode
is
automatically
canceled
if:
1.
The
power
is
turned
OFF.
2.
The
RUN.
NEW or
CLEAR
command
is
executed.
Last Answer Feature
In
a simple calculation, the result
of
the previous calculation
can
only
be
used
in
continuous calculations
as
the first
number.
19