cleanup, add Berkeley header
[unix-history] / usr / src / games / arithmetic / arithmetic.6
CommitLineData
6bc80c78 1.\" @(#)arithmetic.6 6.2 (Berkeley) %G%
fb330e38 2.\"
84f5f3d8 3.TH ARITHMETIC 6 ""
fb330e38
KM
4.AT 3
5.SH NAME
6arithmetic \- provide drill in number facts
7.SH SYNOPSIS
8.B /usr/games/arithmetic
9[
10.B +\-x/
11] [ range ]
12.SH DESCRIPTION
13.I Arithmetic
b575e270
KM
14types out simple arithmetic problems, and waits for an answer to be typed in.
15If the answer is correct, it types back \*(lqRight!\*(rq, and a new problem.
16If the answer is wrong, it replies \*(lqWhat?\*(rq,
fb330e38 17and waits for another answer.
6bc80c78 18After every twenty problems, it publishes
b575e270 19statistics on correctness and the time required to answer.
fb330e38 20.PP
b575e270 21To quit the program, type an interrupt (delete).
fb330e38 22.PP
b575e270 23The first optional argument determines the kind of problem to be generated;
fb330e38 24.B +\-x/
b575e270 25respectively cause addition, subtraction, multiplication, and division
fb330e38
KM
26problems to be generated.
27One or more characters can be given;
28if more than one is given, the different types of
29problems will be mixed in random order; default is
6bc80c78 30.B +\-.
fb330e38
KM
31.PP
32.I Range
33is a decimal number;
34all addends, subtrahends, differences, multiplicands, divisors,
35and quotients will be less than or equal to the value of
36.IR range .
37Default
38.I range
39is 10.
40.PP
41At the start, all numbers less than or equal to
42.I range
b575e270 43are equally likely to appear.
fb330e38
KM
44If the respondent makes a mistake,
45the numbers in the problem which was missed
46become more likely to reappear.
47.PP
48As a matter of educational philosophy, the program will
b575e270 49not give correct answers, since the learner should, in principle,
fb330e38
KM
50be able to calculate them.
51Thus the program is intended to provide drill for
b575e270 52someone just past the first learning stage, not to teach number facts
fb330e38
KM
53.I de
54.IR novo .
b575e270 55For almost all users, the relevant statistic should be
fb330e38 56time per problem, not percent correct.