ARITHMETIC(1)
π ARITHMETIC(1) π
okay so this is the manual page for arithmetic, living in the User Contributed Perl Documentation set. itβs giving tiny quiz bestie with main character energy, and honestly? weβre obsessed. π
πΈ NAME πΈ
arithmetic β improve your arithmetic skills. thatβs the whole mission, no cap.
π¦ SYNOPSIS π¦
arithmetic [-o +-x/] [-r range]
β¨ DESCRIPTION β¨
arithmetic prompts you with simple arithmetic exercises, and verifies your answers. if you get it right, it replies with Right!. if you get it wrong, it replies with What?. and if arithmetic thinks your answer is not a number, it responds with Please type a number! and repeats the exercise. not me getting read to filth by a math program π
After 20 questions, arithmetic tells you how many exercises you answered correctly, and how much time it took. you can quit at any time by typing the interrupt or end-of-file character. exit strategy iconique.
If you answer an exercise incorrectly, arithmetic remembers the numbers involved, and favours those over others. itβs giving study buddy with a very specific grudge, but make it cute π«Ά
π OPTIONS π
arithmetic accepts the following options:
-o +-x/β by default,arithmeticonly asks addition exercises. by giving the-ooption,arithmeticrandomly chooses from the given operators. if an operator is given multiple times, that operator will be picked more often. the more it is repeated, the more it will be picked.-r rangeβ for addition and multiplication,arithmeticpicks both operands in the range from0torange, inclusively. for subtraction and division, both the answer, and the right operand will be in this range. the default range is10.
π ENVIRONMENT π
The working of arithmetic is not influenced by any environment variables. literally not a single one, bestie. clean vibes only. β¨
π BUGS π
None known. π slay, honestly.
π REVISION HISTORY π
the receipts, exactly as they appear:
$Log: arithmetic,v $
Revision 1.2 2004/08/05 14:17:43 cwest
cleanup, new version number on website
Revision 1.1 2004/07/23 20:09:59 cwest
initial import
Revision 1.1 1999/03/14 07:44:35 abigail
Initial revision
π AUTHOR π
The Perl implementation of arithmetic was written by Abigail, perlpowertools@abigail.be. π
π«Ά COPYRIGHT and LICENSE π«Ά
This program is copyright by Abigail 1999.
This program is free and open software. You may use, copy, modify, distribute, and sell this program (and any modified variants) in any way you wish, provided you do not restrict others from doing the same.
periodt. thatβs the legal tea, and itβs actually very generous. π
thatβs the whole manual, bestie π«Ά β source/version: perl v5.42.2, dated 2026-02-15.
π¦ where this page comes from
- alpine 3.24: perl-power-tools-doc 1.053-r1 Β· GPL-2.0-or-later AND Artistic-1.0-Perl AND Artistic-2.0 AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms