Download Print this page

Commodore 64 User Manual page 41

Hide thumbs Also See for COMMODORE 64:

Advertisement

-^
^
UPARROW/PI KEY
t/ir KEY WITHOUT SHIFT:
EXPONENTATION
In order to multiply a number times itself sev
eral times (called exponentation), you use the
t (UP ARROW) key between the number to
be multiplied and its exponent. For example,
what you would normally write in math class
(53) is typed on your computer as:
7513
Type the above command now.
SCREEN 1
Then press RETURN. Your computer displays
the answer.
SCREEN 2
t /ir PLUS SHIFT:
ANOTHER NUMBER
The keymate of the UP ARROW is the pi sym
bol, used in measuring curved or circular sur
faces. Press the SHIFT key at the same time
that you press the UP ARROW key to get the
pi sign value (in Graphics Mode only). Since
the value pi is not an exact number [that is, it
never repeats any series of decimal values),
your VIC and 64 use the value of 3.14159265
for its calculations. Type the following
command:
Now press the RETURN key.
Your computer has given you the value of pi.
Also notice that some lines at the top of the
screen automatically scrolled up off the screen
to make room to display more lines at the
bottom.
SCREEN 3
Before going on to the next exercise, clear
the screen by holding down a SHIFT key and
pressing the CLR/HOME key.
PRINT
-4
I 3
r r-z f'-i p Y .
5*ei
READV.
I 3
SCREEN 1
Use the UP ARROW key | f ) by Itself to
Indicate an exponent in an equation.
'PR l n r
t
KEADV.
3
READY.
READY.
SCREEN 2
The computer raises the number to the power
of the exponent and displays the answer.
READY.
REAPV-
?53
I' 3 . 14 159265
JREftDY .
SCREEN 3
The computer displays the value of pi (-).
Since the screen Is full. It scrolls some lines
off the screen.
UP ARROW/PI key
39

Advertisement

loading

Related Products for Commodore COMMODORE 64

This manual is also suitable for:

Vic 20