EasyCalc 64 1983 Commodore
EasyCalc 64 1983 Commodore
COMPUTER
DISCLAIMER
COPYRIGHT
The computer software program EASYCALC and the manual
describing its operation are copyright (C) 1983 Handic Soft
ware Ab, Sweden. No part of it, the program disk, data record
ed on rom, or this manual, may be reproduced, stored in a
retrieval system or transmitted in any form or by any means,
electronic, mechanical, photocopying, recording or otherwise,
without the prior permission of the original copyright holder.
Copies of program disks may only be made by the original pur
chaser in order to perform the functions described in the
manual for his personal use and benefit.
HELP
If you have any comments about the contents of the
EASYCALC manual, or the program itself, please write to your
national distributor. Whilst Handic Software Ab have made
every effort to ensure the accuracy of the manual, and the
operation of the program itself, any errors noticed by users will
be corrected as quickly as possible. Your help in this respect
will be greatly appreciated by other users.
DISCLAIMER
COMMODORE ELECTRONICS, LTD. ('-COMMODORE")
MAKES NO WARRANTIES, EITHER EXPRESS OR IMPLIED,
WITH RESPECT TO THE PROGRAM DESCRIBED HEREIN, ITS
QUALITY, PERFORMANCE, MERCHANTABILITY, OR
FITNESS FOR ANY PARTICULAR PURPOSE THIS PROGRAM
IS SOLD "AS IS". THE ENTIRE RISK AS TO ITS QUALITY AND
PERFORMANCE IS WITH THE BUYER. SHOULD THE PRO
GRAM PROVE DEFECTIVE FOLLOWING ITS PURCHASE,
THE BUYER (AND NOT THE CREATOR OF THE PROGRAM,
COMMODORE, THEIR DISTRIBUTORS OR THEIR
RETAILERS) ASSUMES THE ENTIRE COST OF ALL
NECESSARY SERVICING, REPAIR OR CORRECTION AND
ANY INCIDENTAL OR CONSEQUENTIAL DAMAGES. IN NO
EVENT WILL COMMODORE BE LIABLE FOR DIRECT, IN
DIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES
RESULTING FROM ANY DEFECT IN THE PROGRAM EVEN IF
IT HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES. SOME LAWS DO NOT ALLOW THE EXCLUSION
OR LIMITATION OF IMPLIED WARRANTIES OR LIABILITIES
FOR INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THE
ABOVE LIMITATION OR EXCLUSION MAY NOT APPLY.
PREFACE
USER CONVENTIONS
The Commodore 64 keyboard looks like a regular typewriter
with a few extra keys; it is very simple to use. Here is a brief
description of some of the conventions you should know to
run EASYCALC 64.
RETURN Pressing this key transmits information to the
computer's memory.
SHIFT This key is like the SHIFT key on a typewriter;
pressing it lets you enter the top characters
on double-character keys.
F7 This is the EASYCALC command key. Press
ing this key gives you access to EASYCALC
commands and functions. You can stop a
function you have chosen by pressing this
key during a program's run. The program will
return to where it was before the function
keys were used; if your printer is printing, it
will stop.
CLR After you press the F7 key, pressing this key
will clear the current work sheet.
1. Press F3.
2. Enter "BK150".
3. Press RETURN.
4. The cursor will go to position BK150.
SPACE BAR Press the space bar before you enter a label;
everything you enter will be treated as a value
or formula if you do not precede the entry
with a space. If you hold the SHIFT key while
you press the space bar, you can change an
earlier entry from a label to a value or a value
to a label.
6.1. Hardcopy 66
6.2. Direct Printout 66
6.3. Formatted Printout 66
INDEX 72
Section 1 Tutorial
1.1. Getting Started
1. Insert the EASYCALC cartridge in your Commodore 64.
NOTE:
The Commodore 64 must be turned off before you insert or
remove the cartridge or the cartridge may be destroyed.
2. Turn on your Commodore 64.
3. Turn on your printer and align the paper.
NOTE:
If you are using a 1515/1525 printer, the device number
must be set to 5. See the appropriate printer manual for in
structions.
■; i
Now, press the 'F7' key again. Look at the previous screen; it is
divided into numbered rows and lettered columns. At every
intersection between a column and a row, there is a coordinate.
For example, A1, C5, and J11 are all input positions. You can
enter a word, number, or formula at every coordinate.
Line 1:
This is the command line; it shows the EASYCALC commands
and the cursor coordinates.
Line 2:
This line shows the three functions which always follow the
command choices on Line 1. The functions are:
• F3
GOTO. This moves the cursor to a specified coordinate.
• F6
HARDCOPY. The printer copies all but the command lines.
• CLR
CLEAR. This clears the current work sheet.
Line 2 is also used for:
• answering EASYCALC's questions, except for printer func
tions answered by one single character
• together with the input line will display any instructions
connected with editing printouts
• to the left it shows what type of information is in the cursor
position
• either VALUE (values or formulas) or LABEL (texts).
Line 3:
This is the input line. On this line the characters that you have
written for a particular coordinate will be shown while the cur
sor is in that coordinate. It is also used for accepting input.
See Section 3.1 for a detailed description of the format of the
EASYCALC screen.
1.2. Cursor Movement
Now press the '*-' key; the cursor moves back to column A,
row 1. Pressing the ' i ' key moves the cursor down to column
A, row 2. Pressing the ' t ' key the cursor moves back to its
original position A1.
The cursor can move across the current work sheet to column
BK (63 columns), and down as far as line 254.
The whole screen changes to the upper left hand corner of the
work sheet and the cursor is at positon A1. Try some other
coordinates and check that the cursor moves to the chosen
positions.
The fast cursor movement works in all directions, but to move
quickly to the top left of your screen you can use the HOME
function.
Start by moving the cursor to coordinate M125 by using the
method just described. Now if you press the 'HOME' key (not
SHIFTed) the cursor moves to the upper left corner of the cur
rent screen. By pressing 'HOME' once more the cursor is
returned to coordinate A1. Irrespective of where the cursor is
on the screen you need only to press the HOME key twice to
move it to A1.
1.6. Correcting Errors
EASYCALC has a number of features which let you correct
errors; one of these is the DEL key. Suppose you type the coor
dinates for the movement of the cursor to A12 and you write
A122 by mistake. This is one '2' too many. Just press the DEL
key once and the extra 2 will disappear. Every time you press
the DEL key, you will move the cursor back one position eras
ing any character in that position.
To negate a chosen command you can use the F7 key, which
aborts the command and you return to the previous cursor
position.
1.7. Writing on the Work Sheet
As we have seen, moving the cursor to different parts of the
work sheet on the screen is very easy. Writing on the work
sheet is equally straightforward.
EASYCALC must be able to differentiate between the different
kinds of inputs since they can be values, labels and formulas.
To do this all labels start with a depression of the SPACE key.
All inputs which have not been initiated with SPACE are
regarded by EASYCALC as either value or formula.
If you wish your labels to be all in capitals you can treat them
as values by not pressing the space bar, then changing them to
LABELS by pressing SHIFT SPACE. We are now going to con
struct the example shown in the following picture.
Now, you will write on the work sheet. Just to make sure that
you have not left old data on the sheet, start by pressing
(F7' 'CLR' {this is the shifted home key) and T
The screen will blank and the cursor will be placed at A1. Move
the cursor to A2, then type:
'SPACE' (this is the space bar) "GROSS INCOME"
On the middle line the text Label appears. This means an
alphanumeric input is required and this input will not be used
in calculations. Remember, if you make a mistake while typing,
use the DEL key to back up to the position you wish to correct.
"5000 + 2000"'RETURN'
If you entered all information correctly, EASYCALC will display
"7000" at coordinate B2.
When you press 'RETURN' the cursor remains at B2, but if after
making an input you press the ' ■* ' key the value will also be
accepted, and the cursor moves directly to C2.
All the 'CRSR1 keys work in the same way and can help to
make the input of data quicker.
1.8. Using Formulas and Recalculation
Move the cursor to A4 and then type:
'SPACE' "COSTS" ' - '
The words COSTS should now be at A4 and the cursor at B4.
We will now write a different kind of formula.
We want expenses to be 40% of the value of income. We could
write ".4"B2" — the sign * represents multiplication — but it
is easier to use EASYCALC percent-function (%). It works like
this: if you want to express 10 percent you just write %(10). In
our example then it will be %(40).
Type the following at B4:
"%(40)*B2"'RETURN'
In B4 the sum 2800 should be dsplayed and on the command
line the formula %40*B2.
Move the cursor to coordinate B2 and try to type:
"8000" 'RETURN'
As you can see the screen flashes red and an ERROR message
appears. EASYCALC will not let you write over an existing for
mula (5000 + 2000). You must first empty the position or alter
nately edit the formula. Blanking the position can be done with
the function F7 B and editing on the input line with F8. This
editing function will be explained later. We will blank the for
mula.
At positon B2 type:
'F7' 'B'
'F7"F3'"A6"'RETURN'
Now, write a formula to calculate the difference between in
come and expenditure. Type:
'SPACE'
After pressing SPACE we see the text LABEL on the command
line. EASYCALC looks at this first input to determine whether
this is alphanumeric (LABEL) or numeric (VALUE) input. Type:
"NET INCOME" ' - '
We are now ready to calculate net income which equals gross
income less costs. Type:
"B2-B4"'RETURN'
The answer 4800 is at B6. On the command line the formula
B2- B4 will be shown.
10
1.10. Formulas Through Cursor Movement
You already know how to move the cursor into different posi
tions, write messages or titles, a number or numbers and for
mulas which refer to other positions. You will by now realize
that hanging the values in B2, B4 or both will lead to new
values in B6, thanks to the recalculation function. When you
were writing the formula for Income minus Expenditure, you
most probably checked to see that income was at B2 and Ex
penditure at B4. If you are writing a number of formulas you
would have to keep careful track of positions. Due to the scroll
ing function, columns will disappear off the left edge of the
screen.
'+'
Move the cursor to B2 press:
11
1.11. Saving Information on Disk or Tape
When you have your DISK/TAPE inserted press:
12
Choose unit by either pressing;
'D' or T
NOTE:
A disk must be formatted before it can be used by EASYCALC.
The command line will display LOAD, SAVE.
Press 'S' for save.
We will call our example TESTEX. Enter
"TESTEX" and then press 'RETURN'
If you are using a tape recorder you will be instructed to press
RECORD and PLAY.
NOTE:
When using a tape recorder the operating system in Com
modore 64 will turn off the screen. It turns on again after the
saving or loading is finished. The save/load procedure takes
about 9 minutes.
NOTE:
The maximum number of files that can be stored on a disk is
nine.
When your file is stored, the screen will return your work. If you
want to erase the work sheet, use the F7 CLR function.
13
1.13. How EASYCALC Handles Data
EASYCALC uses two places for storing data:
• When working with EASYCALC your data is sent to the com
puter's internal memory, RAM. This memory is sufficient for
storing about 1000 memory positions — that is room for a
coordinate formula or a piece of text. This memory for stor
ing data will normally be enough but if this is not enough
you can easily store your work sheet on disk or on tape.
• When you have finished your work you can store the work
sheet, or part of it, on the disk/tape. There you store the
work sheet with reference to a file name. Of course you can
call it back for further use.
Section II Using EASYCALC
'F7' T
On the command line DISK, TAPE will be seen. Press either:
'D' or T
On command line appears LOAD, SAVE.
Press 'L'
Name the file to be loaded by typing:
"TESTEX."
15
Press:'RETURN'
Now, the TESTEX file will be fetched and the data placed in the
computer memory.
You can now see that your data is once again on the screen.
Before we continue, clear the screen using:
'F71 'CLR' T
Suppose you want to see how much money you will have
accumulated after one year if you save 500 with an interest of
15 percent.
WI-I-] ■ :■:
16
Move the cursor to A2 and press:
'SPACE' "YEAR" ' -* ' "1983" 'RETURN' 'F7' 'F' 'I'
Continue to A4 and press:
'SPACE' "INTEREST PERCENTAGE" ' - ' "15" 'RETURN'
Move the cursor to A6. Press:
'SPACE' "CAPITAL" ' ■* ' "5000" 'RETURN'
Now calculate the interest. First place the text AMOUNT OF
INTEREST in coordinate A8. Move the cursor to coordinate A8
and then type:
"B6*B4/100"'RETURN'
Saving 5000 at an interest rate of 15% makes at the end of the
first year, in this example, an interest amount of 750.
17
2.3. Replicating a Formula
Your screen should look like this:
!■)
Now calculate total interest over a ten year period: Every year
the capital will be increased by 5000 and the interest rate will
increase by half a percent each year.
Start by placing the cursor at coordinate C2 and type:
"B2 + 1" 'RETURN' 'F7"F'T
Repeat this formula to give values over ten years. The function
doing this is in the Edit command. Take a look. Press:
'F7' and 'E'
On the command line you will see EDIT; C D G I M P R T. To ex
plain this, take a look at section 5.4.
The function that you are looking for is REPLICATE. When you
know which function to use, just press the character.
Choose REPLICATE by pressing:
'R'
18
On the screen REPLICATE will be seen on the command line
and on the middle input line SOURCE RANGE C2 TO...
TARGET RANGE..TO...
Press:
'RETURN' 'RETURN'
What you have done so far is to state that you want to repeat
the formula in position C2. EASYCALC now wants to know
where the formula is to be repeated (target range). You intend
to expand our calculations for 10 years. The first year is B2, the
second is C2 and the tenth will be K2. As we want to copy the
formula in C2 to D2 continuing up to K2 type:
'RETURN'
and then move the cursor to K2 and press:
'RETURN'
When you are ready, the input line will look like this: SOURCE
RANGE C2 TO C2 TARGET RANGE D2 TO K2. Press:
'RETURN'
On the middle line you will now see: ABS. OR REL.
EASYCALC is asking if we want the same formula — B2 + 1 —
in all coordinates — ABSolute — or if the formula is to be
made — RELative — to the other coordinates. In our example
we want to increase by one each year, so the formula will be B2
+ 1 then C2 + 1 etc. Press:
'R' for relative
Numbers will fill the coordinates D2, E2, F2 etc. If you move
the cursor to the last coordinate K2 you will see 1992.
Go to C4. Now increase the interest by 0.5% per year.
Do this with the formula "B4 + 0.5" and then replicate this
across to column K4.
When done correctly the interest at K4 should be 19.5.
19
To recap, to repeat a formula:
20
2.4. Replicating a Chain of Formulas
To complete the calculation of interest over ten years you need
two more formulas. The first formula will calculate the capital
increase each year (B6 + 5000) plus the interest of the year
before (B8). This formula is to go at C6. Press:
'F7' 'F3' "C6" 'RETURN' "B6 + 5000 + B8" 'RETURN'
The answer in C6 should be 10750. The second formula will
calculate the yearly interest which will be C6*C4/100.
Cursor to C8, type:
"C6*C4/100" 'RETURN'
The answer in C8 should be 1666.25. Now you have all the
formulas to complete the calculations. Start by moving the cur
sor to C6 and then use the replicating function (REPLICATE).
Press:
'F7' lE' and 'R'
"K6"'RETURN'
State if the formula is unchanged or relative. In our case it is
relative. You will have to press R for every coordinate. Press:
'R' 'R' lR' and 'R'
You will now see all the formulas and values in all these coor
dinates. Check that in K6 you have 114700. and in K8 22366.5.
By now EASYCALC has done quite a lot of work for you, but
some of the figures are a little difficult to read. We can improve
this by reformatting the screen.
21
2.5. Screen Formatting
Type:
'F7' 'G' 'P '$'
The letters mean GLOBAL FORMAT and $ means two decimal
places. This is explained in detail further on in the manual.
Press:
(F7"F3'"B8" 'RETURN'
Now take a look at the following picture.
Mi ■MM
WmIF
g
MB MM*mi
^INTEREST 15 88 15 58 16.88
1
i
?
I
[■I i Mm m Mill!
22
2.6. Fixing Titles
Move the cursor to B1.
The values for each year are easily seen but not the titles. To
improve this, press:
'F7' and 'G'
On the command line GLOBAL: C F will be seen. Press:
'C to change the column width.
Now COLUMN WIDTH will be seen on the command line and
EASYCALC is waiting for a WIDTH on the input line. Choose
18 for width. Type:
"18" and 'RETURN'
The texts, except for interest percentage, are now visible in
full.
Use 'HOME' 'HOME' to go to A1, then press:
Try moving the cursor on the screen. As you see you cannot
move the cursor to the fixed A column.
You can write on the second A column, however, and values or
texts inserted there will be reproduced in the fixed A column
also. You can quickly move the cursor to the unfixed A column
by using the HOME function.
Before proceeding remove the TITLES function and set normal
column width. Type:
'F7"L"F7"G"C"8"RETURN'
23
2.7. Fast Recalculation
"20" 'RETURN'
EASYCALC will recalculate all the other values.
Change B4 back to 15 before you go on.
'F7"G"C"6'and 'RETURN'
As you can see, you now have more columns on the screen
since every column is smaller.
You can use this Global command whenever you want to, and
choose a working size between 5 and 18 characters per
column.
When you have only 6 characters per column you will see that
the text entries lose some characters. If you move the cursor to
positions A4 or A8 you will see on the command line that all
the words are still there, even though they are not shown on
the screen. All the texts are available as written, and if you
wish you can format the screen to get to see it all.
24
Section III EASYCALC Features
3.1. Formula Repetition
Start by loading EASYCALC. Press:
*F71 'CLR' 'Y' to clear the screen, then change the column
width to 7.
i. : ■ ■ ::
riLIJMN
r
■;SUM- 3600 3666 3666 5880 5808
JPERCEKT 6 6 6 12 1?
TOTfiL
: 49G88
1 49C,Hfl
First mark out the ten columns which start at column B1. One
way is starting in column B with 1, inserting 2 for column C
etc., but this is unnecessary. You can do it using the replicate
function.
25
In C1 the figure should be 2, but on the command line you see
1 + B1. Now we have created a formula to use. Next, press:
'F7' 'F 'R' (for Replicate)
Since just C1 is to be replicated you press:
lRETURN"RETURN" - '
26
3.2. Replicating Values and Texts
Move the cursor to A4 and then type:
'SPACE' "ROW 2" ' ' "150" and 'RETURN'
Fill all the columns in ROW 2 with 150 by using the replicate
function. Press:
27
Only coordinates B4 to D4 are changed. This is because E4 is
not related to D4. If you wanted all the values to be changed,
you would have to first of all place D4 in coordinate E4, but do
not do this in this example.
Now place more values in the table.
Move the cursor to A6 and press:
'SPACE' "ROW 4" * •+ ' "400"
Move the cursor to A8 and press:
28
3.3. Replicating a Column
Staying at coordinate C4, you will see B4 on the command line.
Relatively C4 is connected to B4 as C6 is to B6 etc. Write the
following at C4:
'F7' 'E' 'R' 'RETURN' 'RETURN'
"C6" 'RETURN' "C12" 'RETURN' and 'R1
If you have followed the instructions correctly you will have the
same values in COLUMN 2 as in COLUMN 1.
The NA message stands for Not Available. Erase those posi
tions which contain NA.
29
3.5. Sum Function
This function will total all the values in every COLUMN. First,
separate the total line from the values by underlining ROW 10
in the table.
Move the cursor to A13 and press:
"SUM(B4:B12)" 'RETURN'
Within the parentheses, the coordinates are to be totalled.
Now the sum for COLUMN 1 — 3000 — is shown. The rest of
the totals are obtained by replicating. Stay in coordinate B15
and type:
30
Now, create a sum total. Type:
'F7' 'F3' "A19" 'RETURN' 'SPACE' "TOTAL"
( * "'SUM(B15:K15)" and'RETURN'
In coordinate A20 you will now see 49600. It is as easy to get
the sum total of these numbers without first producing a row
of totals which are themselves added together. EASYCALC
can sum an area — in this example the matrix with the top left
corner B4 and the bottom right hand corner K12. Try this
method.
Move the cursor to A21 and type:
"SUM(B4:K12)" 'RETURN'
You should now have the same answer as in A20. Now, show
every SUM as a percentage of this TOTAL.
Move the cursor to coordinate A17 and type:
'SPACE' "PERCENT" ' - ' "B15/A21" and 'RETURN'
In COLUMN 1 the answer is 0.0605, ie approximately 6%.
31
3.6. Formatting a Single Coordinate
The value at B17 — 0.0605 — is difficult to read; so many
decimal places are unnecessary. The usual format for
EASYCALC is maximum precision (M), but integer format is
best here. First, multiply the formulas at B17 by 100 and then
format it to an integer value. Move the cursor to B17 and type:
(F8'
Then, edit the formula to read "B15/A21*100"
When ready, type:
'RETURN' 'F7' 'P T
■" ! ;..
32
3.7. Replicating a Format
Move the cursor to B17. We will now replicate the formula for
SUM as a percent of TOTAL. Write:
(F7"E"R"RETURN"RETURN" - '
'RETURN' "K17" and 'RETURN'
To answer the question ABSolute OR RELative, think of how
you want to treat the formula B15/A2T100. The first value at
B15 must change as you require different sums each time, but
A21 (total) remains the same. Press:
'R' (for relative at B15) and 'A' (for absolute at A21)
You should now have percentage values in the rest of the col
umns. As you can see, the formatting to integer value has also
been replicated.
33
3.9. NA (Not Available) Function
34
3.10. Inserting and Erasing Rows and Columns.
If you want to insert an extra row in your table, eg ROW 12, first
move to A13. Type:
'F7' 'E' T 'R'
I is for insert and R is for row. This creates an empty row at row
13. All the rows under 13 are moved one row down.
Do this insertion once again.
Now you have a place for ROW 12. Move the cursor to A14 and
type:
35
3.11. Moving Matrices With the Move Function
You are now going to move the matrix which contains the 2nd,
3rd and 4th values in ROW 6 and ROW 8. Move the cursor to
coordinate C8 and press:
'F7' 'E' 'M' 'RETURN'
You will see MOVE on the command line and FROM C8 to C8
on the input line.
The matrix to be moved is defined by the coordinates C8 and
E10, the upper left hand edge and bottom right hand corner,
respectively. Continue by giving the bottom corner coordinate.
Type:
"E10" 'RETURN'
Now give the coordinate to which the whole matrix is to be
moved. With the cursor at C19 press 'RETURN'
8 ■HMH wm-ym
m H'9B ■MM ■
1 c 3 4
1
ROM 2 288 288 288 3888
1 ROM
ROM 8
6 688
886
|
If :
;SUH: 3688 1668 1688 4488
jPERCENT 7 4 4 18
36
3.12. Recalculation Order
On many occasions now you have seen EASYCALC
recalculate values after every new input, for instance when you
change the values in the TABLE. Recalculation in EASYCALC
works by starting with the upper left corner and then
calculating down toward the lower right corner.
Each formula is calculated once only, unless you order a
second recalculation by pressing the up arrow key. This means
that coordinate A1 cannot be a formula that refers to other
coordinates. Formulas must be stored from the upper left hand
corner right down across the screen till you reach the bottom
right corner.
EASYCALC can look at the formulas either column by column
or row by row. In the right corner on the command line a C is
displayed. This is the RECALCULATION INDICATOR and
indicates the order of calculation — C for column or R for row.
Normally EASYCALC's recalculation is by column and
calculates A1, A2, A3...B1, B2, B3...etc.
In most circumstances this has no effect on the results of
recalculations, but there are instances when the correct result
is dependent on the direction of the recalculation and it is
important to know when this arises.
37
The conclusion from this experience is that you should
construct models so that they either lie in rows or columns
but, if possible, not in both directions. If you are uncertain type
t several times just to be sure your model has no "forward"
or "circular" references.
38
Section IV Worksheet Capabilities
4.1. More About Formats and Values
Load EASYCALC. If you have not already done so, clear the
screen.
Now press;
'F7' 'G' 'F and T
to change the global format to whole numbers — integer. The
only coordinate which was affected was D1 because the
others were individually formatted. Local formats always take
priority over global ones. At the right hand edge of the Com
mand line you will see "I" indicating the Global Format for the
current work sheet.
39
This has deleted the integer value and returns it to its original
form — you have the value 54.456 again. The Maximum Preci
sion format does not affect the left adjustment — M format is
only concerned with the way a number is rounded, not its posi
tion. Now do the same for C10. Move the cursor to C10 press:
'F7' 'F and 'NT
Change the global format back to normal format by pressing:
"9999999" 'RETURN'
This is the largest value to be shown in an 8 character wide
column.
40
4.3. Mathematical Priority
So far we have had relatively simple formulas in our examples.
If a formula contains more than one function you must under
stand in which order the formula will be calculated.
EASYCALC always calculates according to normal
mathematical laws. In the following list, 1 has the highest
priority, 11 the lowest.
41
4.4. A Small Matrix
42
4.5. Formatted Printouts
Format a printout for this work sheet. Press:
lF7' 'E' 'P'
Ail the lines of a work sheet — 254 lines — can be printed, but
as this example contains only 10 write this:
T 'RETURN' "10" 'RETURN'
Now, decide which columns to print. Press:
(C"RETURN'"10" 'RETURN'
For the other four columns you can have varying widths.
Remember the smallest width allowed is 1 character wide.
After entering all the column widths (do not forget the B
column) press RETURN once again, this tells EASYCALC it
can start the printout.
Note that the columns are in the exact order as they were
entered in the FORMAT command.
43
4.6. Minimum and Maximum Values
Start by searching for the smallest value in column E. Move the
cursor with the 'HOME' key to A1 and then type:
■MIN(E1:E10)" and 'RETURN'
In A1 '20' is seen, and it is easy to check that this is the
column's smallest value. The colon is used to split the start
and end values for the area which is to be searched. The blank
coordinates within E1 and E4 created no problems.
Now we look for the largest value within the matrix. Type:
' •* ' "MAX(B5:B10,C5:C10,D5:D10,E5:E10,F5:F10)"
'RETURN'
Here you see how the comma is used to separate the different
expressions.
l(MEAN(F5:F9)" 'RETURN'
The mean of 29, 20, 24.5, 500 and 50 should be 124.7. You can
check this by moving to A8 and typing:
"SUM(F5:F9)/5" 'RETURN'
This answer is also 124.7.
44
4.8. Absolute and Integer Functions
The ABSOLUTE function, ABS, works with an expression, and
gives the value's absolute value. To get the absolute value of
-150 write:
"ABS<-150)"
The answer is 150.
45
4.10. True and False Statements
These are expressions which impose certain conditions that
must be passed and cleared before further calculation can be
undertaken. This can be useful, for example, in a calculation of
interest which is dependent on the amount saved when 1000
will attract 11% while 2000 will get 13% and so on. By using
the IF...THEN...ELSE... structure, you can place conditions on
coordinate values.
46
4.11. Random Function
The RND random number function is used to produce random
numbers. If you want a random number which lies between
zero and 100 in coordinate G20, type:
'F7' lF3' "G20" 'RETURN' "RND(100)" 'RETURN'
The random value will stay in the coordinate until you place
another value there.
If you need a random number between 1 and 100 that changes
each time a recalculation is done then use the function
referring to a coordinate like this: in G19 type
"99" 'RETURN'
Cursor to G20, blank the old formula and insert the new one by
typing:
47
4.13. Manual and Automatic Recalculation
As you most probably noticed in a number of your earlier
examples, EASYCALC takes time when recalculating a value.
Every value is calculated to up to twelve positions and it can
take a number of seconds to recalculate many values over a
large sheet. Often, you do not need a recalculation for every
new value when you make an entry, but only when all the
values have been entered.
EASYCALC lets you choose between automatic and manual
recalculation. Automatic recalculation is set when you start up
EASYCALC.
If you want to avoid recalculation during every new input,
press:
EASYCALC now clears the screen and asks for LOWER and
UPPER LIMIT. This is the scale interval within which the bars
will lie. Since your values are 90,100,115 and 305 a range 0 to
500 will be fine. Type:
'0' 'RETURN' "500" 'RETURN'
48
You will now be asked to title your bar chart with a maximum
of 39 characters. Then press:
'RETURN'
To print press:
'F6'
Now you will be given the option of adding two more rows of
text to the printed version of the chart. When you have input
the data for the first you can move to the second line with the
'RETURN' key.
49
Section V Commands and Functions
5.1. Screen Structure
EASYCALC's screen contains not only the information that
you enter for your work, but also a number of different texts,
characters and values to tell you what commands or functions
you are using or have selected. What these symbols on the
screen mean will be explained here.
I Jl !
I
m (45
■
E 6546
50
4 Error codes. One character is used for User errors and
three for Formula input errors (See Appendix).
5 AC, AR, MC and MR gives type of recalculation. For
example, AC indicates automatic column-wise
recalculation, MR manual row-wise.
51
5.2. SYSTEM Command: BEFGLOTR-
B:Blank Cancel contents of cell under cursor
E:Edit command For screen and printer
FrFormat command .... Individual cell
G:Global command .... Global format and column width
L: Leave Title
O:Order Of recalculation
T:Transport command .. For Disk/Tape communication
R:Recalculate Automatic or manual
-; Automatic repetition of characters
at cell under cursor
52
5.7. Save a File on Disk/Tape
This function is used to store work on the disk/tape. The total
contents of the work sheet are stored, under its specific name,
on the disk/tape.
The contents of the RAM are still left intact after the file has
been saved so that you can continue working with it.
Note that 'F7' 'G' 'F' 'G' resets all previous global formats. If,
for example, left adjusted integer format has been chosen
earlier, then both these formats will be deleted. The color
format is not changed.
53
5.10. Column Width
The column width can vary between 5 and 18 characters. When
EASYCALC starts, the column width is set to 8.
To change the column width, type:
'F7' 'G1 'C
Give the column width and then press 'RETURN'
All the positions (coordinates) within the current work sheet
are set to the given width.
Note that title protected columns are not influenced by this
aid.
Note that all local formats except GLOBAL FORMAT have the
same effect as the corresponding global format except that
they only affect one coordinate instead of the whole work
sheet. Used locally, however, the GLOBAL FORMAT does not
have the same meaning as it does when used globally.
54
5.13. Global Format
Locally:
■F7' 'F T
55
5.17. Left Adjusting
'F7' 'F"L'
'F7' lF 'R'
Give the lower and upper limits of the scale for the bars of the
chart. Provide a title, maximum 39 characters.
The function ends by pressing 'F7'
56
5.22. Moving the Cursor Toward A1
The HOME key is used for fast cursor movements towards
coordinate A1.
5.23. GO TO
'F7' 'F3'
Then enter the coordinate to which the cursor is to be moved
and then press 'RETURN'
57
5.24. Order of Priority
EASYCALC always calculates according to normal
mathematical laws. In the following list 1 has the highest
priority, 11 the lowest.
NOTE:
The EASYCALC corrects formulas before saving them —
unnecessary brackets are removed, double minus signs are
changed to positive and when a number of plus signs are
written, only one remains.
1 Higher mathematical function references such as MIN,
MAX, ABSand INT
2 Functions and characters within parentheses
3 Exponent
4 Multiplication and division * and /
5 Addition and subtraction + and -
6 Less than and greater than < and >
Not equal to and equal to <> and =
Equal to or greater than = >
Equal to or less than = <
Greater than or equal to < =
Less than or equal to > =
7 NOT
8 AND
9 OR
10 THEN and ELSE
11 IF
In general, the higher mathematical functions are followed by
parentheses containing the range of the expression. The colon
character is used to describe the areas and each expression
within the parenthesis is differentiated with a comma.
NOTE:
That in the IF THEN ELSE function if any of the coordinates
give NA then the result will be given as NA even if the
condition is true.
58
5.25. All the Mathematical Functions
All the functions are presented here in groups within which
they all have the same structure. An example is given for each
group.
GROUP 1
COUNT Gives the number of coordinates containing a
constant or valid formula (without NA or error)
MAX Chooses the largest value within a given area
MIN Chooses the smallest value within a given area
MEAN Gives average value for a certain area
STDDEV Calculates the standard deviation of a given area
SUM Calculates the sum of a given area
Structure: FUNCTION (argument, argument, argument...)
Example: MEAN (A1:A5,B1:B5)
GROUP 2
GROUP 3
Example: SPACE NA
GROUP 4
GROUP 5
IF THEN ELSE
GROUP 6
59
5.26. Automatic Character Repeat
Used to repeat a character in a given coordinate.
If you want to fill a coordinate with, for example, equal signs,
type:
'F7' ' — ' ' = '
'RETURN'
'RETURN'
50
5.31. Self References in a Coordinate
This is used for creating new values at every calculation. To
create, for example, a counter at A1 go to A1 and type:
'F7' 'R' 'M' " - 1" 'RETURN' "A1 + 1" 'RETURN'
There will now be a zero in A1 with the formula on the
command line. Everytime the t key is pressed for a
recalculation the value at A1 is increased by one. If you return
to automatic recalculation the value will increase each time an
input is made. You can also test this with the automatic
recalculation feature and recalculate a number of times.
Note:
Because of the way EASYCALC works it will always calculate
your self-reference as it is input — this is why we used minus
one for the starting value. When the formula was accepted
EASYCALC calculated the value to be zero.
61
5.33. Copying an Area (Matrix)
A specified area can be copied within the current work sheet.
As an example move the area between A1 until C5 to J1.
'F7' 'E"C"RETURN'
Give the last coordinate position of the area you want to copy
either through cursor movement or direct entrance of the
coordinate (here C5). Then press
'RETURN'
Now input the starting coordinate of the area to receive the
copied area — press
"J1" 'RETURN'
Move the cursor to J1 (use GO TO) to check that the copy has
been made.
'RETURN" + "RETURN'
Now input the area they are to fill by typing
62
5.35. Inserting a Row or Column
This function inserts an empty row or column at any place on
the screen. To insert a row, type:
NOTE:
That the last used column/row can NOT be deleted. Here you
can replicate or move a blank column/row instead.
63
5.37. Setting a Title
In the first column of the screen it is useful to be able to
display text titles with a different column width to the rest of
the screen. It is also helpful for this column to be fixed in posi
tion when scrolling the work sheet.
To create a title column, scroll the work sheet until the column
is at the left edge of the screen and then type:
'F7' 'E' T
The title is removed by typing 'F7' (L'
64
5.39. Recalculation by Row/Column
"25"'RETURN'
65
Section VI Printout Functions
NOTE:
When using VIC 1515/1525 you have to change their device
number to 5; see their printer manuals.
6.1. Hardcopy
This function gives you a screen dump of everything except
the first three lines of the screen. Position the data you want to
print on the screen and press:
'F7' 'F6'
Note that when printing graphics you only need to press 'F6'
without using the F7 key.
Direct printout lets you choose a part of the current work sheet
to print with the same format as the global format for that work
sheet. Press:
Repeat this for each column that the printout is to include. End
with'RETURN'.
66
Section VII Formula References
7.1. Moving Relative References
There is now a row where all the values are dependent on the
value at A1, they are relative. What will happen to these
references if the formulas are moved to other coordinates?
Try by moving B1 and C1 to B5 and C5 respectively. With the
cursor at B1 type:
67
4 10 5 6
This works in the same way when moving formulas which con
tains absolute references. It is not possible to move a row to a
column or vice versa.
7.2. Copying Absolute References
"1000"
Now move the cursor to C1 and type:
"A1-100"'RETURN'
Repeat this formula from C1 to C10 by typing:
When you look at the formulas you will see that they all referto
A1, they are absolute.
,*
566
969
966
968
989
988
986
'..
Note that it works the same way when copying formulas which
contain relative references. It is not possible to copy a row to a
column or vice versa.
69
7.3. Replicating References
The two earlier reference examples showed how to use the
REPLICATE function for replicating formulas with relative or
absolute references. This example show how it works when
both relative and absolute references are involved.
Clear the screen and type:
»10"' -♦ '»20"( *- '• * ' "A1 + 10 + B1" 'RETURN'
'F7"E"R"RETURN"RETURN" * "RETURN'
"A10" 'RETURN' 'R' 'A'
When you have examined the formulas you will find that the A
coordinate is relative and the B coordinate absolute. Now we
shall replicate a part of this column.
Move the cursor to A6 and type:
■ H
Move the cursor to A14. As you can see, the formula there is
similar to the one at A6(A5+10+B1); it is absolute. If you
move the cursor to B14 and C14you will seethe same formula.
You will notice the difference when you examine the others.
Here the A reference has been related to its surrounding coor
dinates.
70
APPENDIX
Error Messages
1 User Errors
2 FORMULA ERRORS
Error Code Cause Remedy
100 Attempting to over Write the formula in
write an earlier input another position or
formula (All formulas delete the current
are protected formula
101 Formula expressed in Put the formula in
too complicated a several positions if it
manner uses IF THEN ELSE
try to use OR, AND
and NOT
102 Syntax error eg THEN Correct the syntax in
argument IF argument this example to:
ELSE argument IF..THEN...ELSE
103 Too many arguments Put the formula in
in a multiple (max 8) several positions
104 Attempting to mix Here it should be:
areas with arguments (A1:C5)+12
eg(A1:C5+12)
105 Attempting to insert a Erase the inner
multiple argument as multiple argument
an argument within function
another argument
function eg SUM
(A1:E3,MIN(B1:D2))
106 NPV is short of Input missing
arguments (must have argument
at least two)
71
INDEX
A
absolute functions 31
absolute references, copying 50
adjusting, left 40
adjusting, right 40
adjusting the column width 20
area, copying an 45
area, moving an 45
area, replicating an 46
arrow, up 5
automatic character repeat 43
automatic cursor movement 10
automatic recalculation 34
A1 41
A1, moving the cursor toward 41
B
bar, space 5
BEFGLOTR37
beginning the program 8
blanking a coordinate 43
C
calculation, interest rate 16
calculation symbols 5
CDGIMPRT37
CF37
CGMISLR37
chain of formulas, replicating a 23
character repeat, automatic 23
CLR3
clear screen 3
color format 39
column, deleting a 47
column, inserting a 46
column, recalculation by 48
column, replicating a 23
column width 38
column width, adjusting the 20
columns, erasing 25
columns, inserting 25
command, edit 37
command, format 37
command key 3
command, system 37
command, transport 37
conventions, user 3
coordinate, blanking a 43
72
coordinate, copying a 44
coordinate, moving a 44
coordinate, repeating a 44
coordinate, self references in a 44
copying an area 45
correcting errors 10
count functions 31
cursor movement 9, 41
cursor movement, automatic 10
cursor movement, formulas through 13
cursor, moving the 9, 41
D
data handling 15
delete 4, 47
deleting a column 47
deleting a row 47
direct printout 49
disk, get a file from 15
disk, getting data from 15
disk, save a file on 13
disk, saving information on 13
E
edit 14
edit command 37
editing the input line 14
erasing rows and columns 25
error messages 51
errors, correcting 10
errors, formula 51
errors, user 51
F
F3 4
F6 4
F7 3
F8 5
false statements 32
fast recalculation 20
faster cursor movement 10
fixing titles 19
format, color 39
format command 37
format, integer 40
format, maximum precision 40
format, replicating a 24
format, two decimal 40
formats 28, 38
73
formatted printout 49
formatting 38
formatting a single coordinate 24
formatting functions 38, 39
formatting, screen 36
formula repetition 21
formula replication 16
formulas, chain of 18
formulas, reference order for 27
formulas through cursor movement 13
formulas, using 12
function, percent 34
function, random 33
function, not available 25
function, sum 23
functions, absolute 31
functions, count 31
functions, formatting 39
functions, mathematical 42
G
getting data from disk 15
getting data from tape 15
global command 37
global format 39
GO TO 41
graphics on the printer 41
graphics on the screen 41
H
hardcopy 48
home 4
IF-THEN-ELSE32
input line, editing 14
inserting a column 25
inserting a row 25
inserting and erasing rows and columns 25
INST/DEL4
integer format 40
L
labels 12
large values 29
left adjusting 40
LS37
M
manual recalculation 34
mathematical functions 42
mathematical priority 42
matrix, small 30
maximum precision format 40
maximum values 31
mean functions 31
messages, error 51
minimum values 31
move cursor 10, 41
move function, moving matrices with the 45
moving a coordinate 44
moving an area 45
moving cursor 10, 41
moving cursor toward A1 41
moving relative references 49
moving matrices with the move function 45
multiple recalculations 48
N
NA25
not available function 25
0
order, recalculation 26
order, reference 27
P
percent function 34
printer, graphics on the 41
printouts, formatted 49
priority, mathematical 42
program start 8
R
random function 33
rate, interest 16
recalculation 12
recalculation, fast 20
recalculation, manual 34
recalculation order 26
reference order for formulas 27
repetition, formula 21
replicate a function 16
replicating a chain of formulas 18
replicating a column 23
replicating a format 24
replicating a formula 16
replicating values and texts 22
RETURN 3
rows, erasing 25
rows, inserting 25
75
s
save, disk 13
save, tape 13
saving information on disk 13
saving information on tape 13
screen formatting 19
screen, graphics on the 41
screen scrolling 9
screen structure 36
scrolling screen 9
SHIFT 3
single coordinate, formatting a 24
small matrix 30
small values 29
space bar 5
starting program 8
statements, false 32
statements, true 32
structure, screen 36
sum function 23
symbols, calculation 5
system command 37
T
tape, get a file from 15
tape, getting data from 15
tape, saving information on 13
texts, replicating 22
title, setting a 47
titles, fixing 19
transport command 37
true statements 32
U
up arrow 5
user conventions 3
user errors 51
using formulas 12
V
values 22, 28
values, maximum 31
values, minimum 31
values, replicating 22
values, small 29
W
width, column 20
work sheet, writing on the 11
writing on the work sheet 11
76
■
t commodore
COMPUTER
Commodore Business Machines. Inc.
1200 Wilson Drive • West Chester, PA 19380