$N_{t+1}=\frac{61}{60}N_t-5$
with $N_0=120$
and I want
N_t>0
I suppose that I need a code like:
Code: Select all
\begin{figure}[H]
\centering
\begin{tikzpicture}[scale=0.025]
\draw[->] (0,0)--(320,0);
\node at (330,-17) {$t$};
\draw[->] (0,0)--(0,250);
\node at (-17,200) {200};
\node at (-17,250) {$N_t$};
\node at (-17,20) {20};
\node at (-17,120) {120};
%\draw[scale=1.,domain=.1:4.2,smooth,variable=\x,blue] plot ({\x},{1+.1/\x});
%\draw[-] (-0.04,1)--(0.04,1);
\begin{scope}
\newcommand*{\lasty}{120}
\fill[blue] (0,6) circle (25pt);
\foreach \x in {10,20,30,...,310} {%
\fill[blue] (\x,61/60*\lasty-5) circle (25.pt);
\xdef\lasty{61/60*\lasty-5}
}
\foreach \x in {50,100,150,...,300} {%
\pgfmathsetmacro{\xpr}{int(\x/10)};
\node at (\x,-10) {\xpr};
}
\end{scope}
\end{tikzpicture}
\captionsetup{labelformat=empty}
\caption{\textbf{Figure1:} The number should be less than zero after 31 years}
\end{figure}
If you try these series in an excell file, you will find that in about 30 years (t->years) the series has to be zero and less than zero.
Could you please help me.
I also cant print the integer value on t axis