I'm trying to improve that figure:
\documentclass{standalone}
\begin{document}
\usepackage{tikz}
\usepackage{pgfplots}
\begin{tikzpicture}
\begin{axis} [axis lines=center, height=46mm, width=120mm, ymin = 0.8499]
\addplot [domain=0:1, samples=3333, thick] { 1-(1-x)^floor(2/x) };
\end{axis}
\end{tikzpicture}
\end{document}
I'd like to
- make the curve discontinuous: the current down-going lines are pure artifact
- avoid the non-existing transititon there is near x=0.1
- if possible, make it faster. I'm ready to make a black triangle for x<1/30 or so.
I think an explicit loop drawing multiple curves in range ]1/(n+1),1/n[ is the way to go; but how?
\documentclass...
.