BSD 4_4_Lite2 development
[unix-history] / usr / share / man / cat6 / arithmetic.0
ARITHMETIC(6) BSD Reference Manual ARITHMETIC(6)
N\bNA\bAM\bME\bE
arithmetic - quiz on simple arithmetic
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
a\bar\bri\bit\bth\bhm\bme\bet\bti\bic\bc [\b[ -o +-x/ ]\b] [\b[ -r range ]\b]
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
_\bA_\br_\bi_\bt_\bh_\bm_\be_\bt_\bi_\bc asks you to solve problems in simple arith-
metic. Each question must be answered correctly before
going on to the next. After every 20 problems, it prints
the score so far and the time taken. You can quit at any
time by typing the interrupt or end-of-file character.
The options are as follows:
-o By default, _\ba_\br_\bi_\bt_\bh_\bm_\be_\bt_\bi_\bc asks questions on addition
of numbers from 0 to 10, and corresponding subtrac-
tion. By supplying one or more of the characters
+\b+-\b-x\bx/\b/, you can ask for problems in addition, sub-
traction, multiplication, and division, respec-
tively. If you give one of these characters more
than once, that kind of problem will be asked cor-
respondingly more often.
-r If a _\br_\ba_\bn_\bg_\be is supplied, _\ba_\br_\bi_\bt_\bh_\bm_\be_\bt_\bi_\bc selects the num-
bers in its problems in the following way. For
addition and multiplication, the numbers to be
added or multiplied are between 0 and _\br_\ba_\bn_\bg_\be, inclu-
sive. For subtraction and division, both the
required result and the number to divide by or sub-
tract will be between 0 and _\br_\ba_\bn_\bg_\be. (Of course,
_\ba_\br_\bi_\bt_\bh_\bm_\be_\bt_\bi_\bc will not ask you to divide by 0.) The
default _\br_\ba_\bn_\bg_\be is 10.
When you get a problem wrong, _\ba_\br_\bi_\bt_\bh_\bm_\be_\bt_\bi_\bc will remember the
numbers involved, and will tend to select those numbers
more often than others, in problems of the same sort.
Eventually it will forgive and forget.
_\bA_\br_\bi_\bt_\bh_\bm_\be_\bt_\bi_\bc cannot be persuaded to tell you the right
answer. You must work it out for yourself.
D\bDI\bIA\bAG\bGN\bNO\bOS\bST\bTI\bIC\bCS\bS
``What?'' if you get a question wrong. ``Right!'' if you
get it right. ``Please type a number.'' if arithmetic
doesn't understand what you typed.
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
bc(1), dc(1)
4th Berkeley Distribution May 31, 1993 1