1

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

2
5

You can try some thing like this:

\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.3}
\begin{document}

\begin{tikzpicture}
\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)};
\end{axis}
\end{tikzpicture}

\end{document}

enter image description here

You can refer to the PGFPLOTS manual for more plots.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.