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