\documentclass[11pt]{beamer} \usepackage{ucs} \usetheme{Warsaw} \usepackage[utf8]{inputenc} \usepackage{polski} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \usepackage{tikz} \usepackage{mathtools} \usepackage{amsmath} \usepackage{amsthm} \usepackage{tikz} \usepackage{pgfplots} \newtheorem{tw}{Twierdzenie} %\theoremstyle{definition} %\newtheorem{definition}{Definicja} \author{Izabela Kosmala} \title{Wykresy funkcji} %\subtitle{} \institute{Uniwersytet im. Adama Mickiewicza} \date{09.11.2017 r.} \begin{document} \begin{frame} \titlepage \end{frame} \begin{frame}{\(x\mapsto x^2-2x+3\)} \begin{tikzpicture} \begin{axis}[ axis x line=center , axis y line=center , xtick ={-10,-9,...,10}, ytick ={1,2,...,10}, xlabel ={$x$}, ylabel ={$y$}, xlabel style ={ below right}, ylabel style ={ right}, xmin=-10.5, xmax =10.5, ymin=-0.5, ymax =10.5, title={Wykres funkcji \(x\mapsto x^2-2x+3\)} ] \addplot[color=black ,line width =0.5pt ,smooth,domain=-10:10] plot(\x,\x^2-2*\x+3); \end{axis} \end{tikzpicture} \end{frame} \begin{frame}{\( x\mapsto \cos 2x\)} \begin{tikzpicture} \draw[domain =0:2*pi,smooth] plot(\x,{cos(2*\x r)}); \end{tikzpicture} \end{frame} \begin{frame}{\( x\mapsto\sin \tfrac{1}{x}\)} \begin{tikzpicture} \begin{axis}[] \addplot[smooth] gnuplot[raw gnuplot ]{ plot[-10:10] sin(1/x) }; \end{axis} \end{tikzpicture} \end{frame} \begin{frame}{\( (x,y)\mapsto x^2+y^2\)} \begin{tikzpicture} \begin{axis}[colorbar] \addplot3[surf,domain=-360:360,samples=50]{x^2+y^2}; \end{axis} \end{tikzpicture} \end{frame} \begin{frame}{\((x,y)\mapsto x^2−y^2 + 2 x y ^2+1\)} \begin{tikzpicture} \begin{axis}[colorbar] \addplot3[surf] table[] {"Book1.dat"}; \end{axis} \end{tikzpicture} \end{frame} \end{document}