Skip to content

Instantly share code, notes, and snippets.

@dfbarrero
Last active May 12, 2017 18:27
Show Gist options
  • Select an option

  • Save dfbarrero/0543623a566f56e2df42ecd681681b8f to your computer and use it in GitHub Desktop.

Select an option

Save dfbarrero/0543623a566f56e2df42ecd681681b8f to your computer and use it in GitHub Desktop.
Example of how to graph a symbolic expression with LaTeX and Tikz
\documentclass{article}
\usepackage{tikz}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
xlabel=$x$,
ylabel={$g(x) = \frac{1}{1+e^{-x}}$}
]
\addplot[mark=none] {1/(1+e^(-x))};
\end{axis}
\end{tikzpicture}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment