This commit is contained in:
Grzegorz Adamski 2017-11-09 13:39:30 +01:00
parent 8af2381e45
commit 3a44f7a6db
2 changed files with 86 additions and 0 deletions

BIN
05/wykresy.pdf Normal file

Binary file not shown.

86
05/wykresy.tex Normal file
View File

@ -0,0 +1,86 @@
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usepackage{pgfplots}
\title{wykresy}
\author{Grzegorz Adamski}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
axis x line = center ,
axis y line = center ,
xtick ={ -5 , -4 ,-3,-2,-1,0,1,2,3,4 ,5} ,
ytick ={ -5 , -4 ,-3,-2,-1,0,1,2,3,4 ,5} ,
xlabel ={$x$},
ylabel ={$y$},
xlabel style ={ below right },
ylabel style ={ right },
xmin = -5.5 ,
xmax =5.5 ,
ymin = -5.5 ,
ymax =5.5 ,
title ={ $x^2-2x+3$ }
]
\addplot[domain = -3:5] plot(\x , \x*\x-2*\x+3);
\end{axis}
\end{tikzpicture}
\begin{tikzpicture}
\begin{axis}[
axis x line = center ,
axis y line = center ,
xtick ={ -5 , -4 ,-3,-2,-1,0,1,2,3,4 ,5} ,
ytick ={ -5 , -4 ,-3,-2,-1,0,1,2,3,4 ,5} ,
xlabel ={$x$},
ylabel ={$y$},
xlabel style ={ below right },
ylabel style ={ right },
xmin = -5.5 ,
xmax =5.5 ,
ymin = -5.5 ,
ymax =5.5 ,
title ={ $\cos(2x)$ }
]
\addplot[domain = -5:5,samples=500] plot{cos(deg(2*x))};
\end{axis}
\end{tikzpicture}
\begin{tikzpicture}
\begin{axis}[
axis x line = center ,
axis y line = center ,
xtick ={ -5 , -4 ,-3,-2,-1,0,1,2,3,4 ,5} ,
ytick ={ -5 , -4 ,-3,-2,-1,0,1,2,3,4 ,5} ,
xlabel ={$x$},
ylabel ={$y$},
xlabel style ={ below right },
ylabel style ={ right },
xmin = -5.5 ,
xmax =5.5 ,
ymin = -5.5 ,
ymax =5.5 ,
title ={ $\sin(\frac{1}{x})$ }
]
\addplot[domain = -5:5,samples=500] plot{sin(deg(1/x))};
\end{axis}
\end{tikzpicture}
\begin{tikzpicture}[ scale =0.7]
\begin {axis}[title ={ $x^2+y^2$ }]
\addplot3[ surf , domain =-10:10 , samples =50]{ x*x+y*y )};
\end {axis}
\end {tikzpicture}
\begin{tikzpicture}[scale =0.7]
\begin{axis}[title ={ $x^2-y^2 + 2xy^2+1$ }]
\addplot 3[surf,domain =-10:10, samples =50]{x*x-y*y + 2*x*y*y+1};
\end{axis}
\end{tikzpicture}
%\( x\mapsto \cos 2x\)
%\( x\mapsto\sin \tfrac{1}{x}\)
%\( (x,y)\mapsto x^2+y^2\)
%\((x,y)\mapsto x^2y^2 + 2 x y ^2+1\) z wykorzystaniem omówionych
% podczas prezentacji możliwości. Narysować wykres funkcji \(x\mapsto
% x^2-1\) z wykorzystaniem stablicowanych danych.
\end{document}