Genaille and Lucas sticks for multiplication and division

GL sticks provide an easy method to perform multiplications and divisions: just read the result...


genaille-and-lucas-sticks

Edit and compile if you like:

% Genaille and Lucas sticks for multiplication and division
% Author : Arnaud Lefebvre (IREM Rouen)
% GL sticks provide an easy method to perform multiplications
% and divisions: just read the result...
\documentclass{article}
\usepackage{tikz}
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
\setlength\PreviewBorder{5pt}%
%-----------------------------------------------
% environment for drawing sticks
% an option of the form scale=VALUE can be given
%------------------------------------------------
\newenvironment{sticks}[1][scale=.6]
{\begin{tikzpicture}[#1]\def\W{0}\def\WS{0}}
{\end{tikzpicture}}
%------------------------------------------------------------
% \stickME draws an empty multiplication stick
%------------------------------------------------------------
\newcommand{\stickME}{%
\begin{scope}[xshift=\W cm]
\pgfmathparse{\W+2}
\global\let\W\pgfmathresult
\draw [black,rounded corners] (2,0) -- (2,24) -- (0,24) -- (0,0);
\draw (0,0) -- (2,0);
\foreach \x in {.5,1,...,22} {
\draw (1.5,\x) -- (2,\x);
}
\draw (1.5,0) -- (1.5,22);
\foreach \x in {4.5,8.5,12,15,17.5,19.5,21,22} {
\draw (0,\x) -- (2,\x);
}
\end{scope}
}
%--------------------------------------------------------
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Click to download: genaille-and-lucas-sticks.texgenaille-and-lucas-sticks.pdf
Open in Overleaf: genaille-and-lucas-sticks.tex