I can draw polynomials using Tikz in Latex but I am not able to draw graphs of logarithms,exponential etc.


1 Answer 1


You can try some thing like this:


\begin{axis}[restrict y to domain=-10:10]
\addplot [blue,domain=-10:10, samples=200]{log10(x)};
\addplot [red, domain=-10:10, samples=200]{exp(x)};


enter image description here

You can refer to the PGFPLOTS manual for more plots.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .