I define 2 arrays r and p and draw them.
I would like now to compute the min of r and p in order to draw it in a similar way. The resulting array would be {0.2, 0.4, 0.8, 0.8, 0.4, 0.0, 0.1, 0.0, 0.1 ,0.5}, but I would like to compute it automatically.
Do you have any idea ?
Here is a MWE regardig the definition and the drawing of r and p :
\begin{tikzpicture}
\def\r{{0.2}, {0.4}, {1.0}, {0.8}, {1.0}, {0.0}, {0.3}, {0.5}, {0.1}, {0.5}};
\def\p{{0.9}, {0.5}, {0.8}, {0.8}, {0.4}, {0.3}, {0.1}, {0.0}, {0.8}, {0.7}};
\filldraw (0, 0.2) node {$r$}
\foreach \y [count=\x from 0] in \r { -- (\x, \y) circle[radius=1pt] };
\filldraw (0, 0.9) node {$r$}
\foreach \y [count=\x from 0] in \p { -- (\x, \y) circle[radius=1pt] };
\end{tikzpicture}

\documentclassand the appropriate packages so that those trying to help don't have to recreate it.This is especially important for
– Peter Grill Nov 07 '14 at 17:00tikzas there are numerous libraries. While solving problems can be fun, setting them up is not. Then, those trying to help can simply cut and paste your MWE and get started on solving the problem.