Posts

How to graph a logistic equation using tikz

Image
up vote 3 down vote favorite I am not sure why this doesn't work. At first I thought the issue was x values close to zero. So I broke it up into two separate graphs that ignored x values close to zero. I have tried copying code snippets form others. Theirs works (using different function to graph), but mine does not. The error I get is:! PGF Math Error: p' or p(' in {2500*exp(0.05*-10.0)/(100+25*(exp(0.05*-10.0)-1))}') documentclass{standalone} usepackage{tikz} begin{document} begin{center} begin{tikzpicture}[scale=0.1] draw [<->,very thick] (0,-10) -- (0,100) node [above] {$y$}; draw [<->,very thick] (-10,0) -- (160,0) node [right] {$x$}; draw [domain=-10:160,samples=1000] plot (x,{2500*exp(0.05*x)/(100+25*(exp(0.05*x)-1))}); end{tikzpicture}...