1

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

  • 1
    have a look at, for example, http://tex.stackexchange.com/questions/69411/pgfplots-cant-plot-some-usual-mathematical-functions and lots and lots of the other pgfplots questions – cmhughes Nov 02 '15 at 17:25
  • 3
    Is there a question? – Mico Nov 02 '15 at 17:25

1 Answers1

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.

AboAmmar
  • 46,352
  • 4
  • 58
  • 127