Skip to content

Commit

Permalink
Obrázky nově nakreslené pomocí LaTeXového balíku Asymptote. Proto jse…
Browse files Browse the repository at this point in the history
…m musel přejmenovat soubory a přidat Makefile.
  • Loading branch information
snilard committed Apr 24, 2011
1 parent 28187ac commit d8615e4
Show file tree
Hide file tree
Showing 15 changed files with 62 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
*.log
*.out
*.synctex.gz
*.asy
cviceni_NUM_A4-*.pdf
cviceni_NUM_kindle-*.pdf
*.pre
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
all: cviceni_NUM.tex cviceni_NUM_A4.tex cviceni_NUM_kindle.tex
pdflatex cviceni_NUM_kindle.tex
asy cviceni_NUM_kindle*.asy
pdflatex cviceni_NUM_kindle.tex
pdflatex cviceni_NUM_A4.tex
asy cviceni_NUM_A4*.asy
pdflatex cviceni_NUM_A4.tex
56 changes: 51 additions & 5 deletions cviceni_NUM.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%!TEX root = cvičení NUM - kindle.tex
%!TEX root = cviceni_NUM_kindle.tex
%
% Cvičení z NUM
%
Expand Down Expand Up @@ -40,7 +40,8 @@
\usepackage{amsthm}
\usepackage{latexsym}

\usepackage{graphicx}
\usepackage[pdftex]{graphicx}
\usepackage{asymptote}


\newtheorem{definition}{Definice}
Expand All @@ -51,6 +52,8 @@

\newcommand{\inte}[2]{\int\limits_0^1 #1\,\mathrm{d}#2}
\newcommand{\R}{\mathbb{R}}
\newcommand{\bbA}{\mathbb{A}}
\newcommand{\bbF}{\mathbb{F}}
\newcommand{\pa}{\partial}

\title{Zápisky z cvičení NUM 2011}
Expand Down Expand Up @@ -230,7 +233,8 @@

Hledáme přesnost aproximace
$$ \psi = L_h(P_h y ) - P_h(L_y).$$
$P_h$ je projekce funkcí definovaných na $(a, b)$ do funkcí definovaných na síti $\overline{\omega_h}$.
$P_h$ je projekce funkcí definovaných na $(a, b)$ do funkcí definovaných na síti
$\overline{\omega_h}$.
\begin{align*}
\psi &= -(p(P_h y)_{\overline{x}})_x + qP_hy - f - P_h(-(py')' + qy - f) \\
\psi_j &= -(p(P_h y)_{\overline{x}})_x - P_h(-(py')') \quad \rightarrow O(h)
Expand All @@ -241,10 +245,42 @@
$$ p_{i \pm \frac{1}{2}} = p\left(a + \left(i \pm \frac{1}{2}\right)h \right) \quad
\rightarrow O(h^2)$$
\begin{enumerate}
\item ~\\ \includegraphics{mexson1.pdf}
\item ~\\ \vspace{-1cm}
\begin{asy}
size(7cm);
draw((0,0.5)--(1,0.5)); // vodorovná čára
draw((0.1,0.48)--(0.1,0.52)); // první svislítko
label("$i-1$",(0.1,0.48),S);
draw((0.5,0.48)--(0.5,0.52)); // druhé svislítko
label("$i$",(0.5,0.48),S);
label("$p_i$",(0.5,0.52),N);
draw((0.9,0.48)--(0.9,0.52)); // třetí svislítko
label("$i+1$",(0.9,0.48),S);
label("$p_{i+1}$",(0.9,0.52),N);
\end{asy}
$$ (pu_{\overline{x}})_x = \frac{(pu_{\overline{x}})_{i+1} - (pu_{\overline{x}})_i}
{h} = \frac{1}{h^2} (p_{i+1}(u_{i+1} - u_i) - p_i(u_i - u_{i-1})) $$
\item ~\\ \includegraphics{mexson2.pdf}
\item ~\\ \vspace{-1cm}
\begin{asy}
size(12cm);
draw((0,0.5)--(1,0.5)); // vodorovná čára
draw((0.1,0.49)--(0.1,0.51)); // první svislítko
label("$i-1$",(0.1,0.49),S);
label("$p_{i-1}$",(0.1,0.56),N);
label("$u_{i-1}$",(0.1,0.51),N);
draw((0.3,0.49)--(0.3,0.51)); // druhé svislítko
label("$p_{i-\frac{1}{2}}$",(0.3,0.53),N);
draw((0.5,0.49)--(0.5,0.51)); // třetí svislítko
label("$i$",(0.5,0.49),S);
label("$p_i$",(0.5,0.55),N);
label("$u_i$",(0.5,0.51),N);
draw((0.7,0.49)--(0.7,0.51)); // čtvrté svislítko
label("$p_{i+\frac{1}{2}}$",(0.7,0.53),N);
draw((0.9,0.49)--(0.9,0.51)); // páté svislítko
label("$i+1$",(0.9,0.49),S);
label("$p_{i+1}$",(0.9,0.55),N);
label("$u_{i+1}$",(0.9,0.51),N);
\end{asy}
$$ (pu')' \approx \frac{pu'|_{i + \frac{1}{2}} - pu'|_{i - \frac{1}{2}}}{h} =
\frac{1}{h^2}(p_{i + \frac{1}{2}}(y_{i+1} - y_i) - p_{i - \frac{1}{2}}(y_i - y_{i-1}))$$
\begin{align*}
Expand All @@ -253,4 +289,14 @@
\end{align*}
\end{enumerate}

Máme úlohu $ -(py')' + qy = F(y) $ na $(a,b),\ y(a)= \gamma_1,\ y(b)= \gamma_2,\ F(0) = 0,\
g \geq 0,\ F$ omezená, lipschitzovská.

Použijeme 1. schéma:
$$ -\frac{1}{h} \left( p_{i+1} \frac{u_{i+1} - u_i}{h} - p_{i} \frac{u_i - u_{i-1}}{h} \right)
+ q_i u_i = F(u_i), \quad i \in \widehat{m-1} $$
Maticový zápis:
$$ \bbA_h u= \bbF(u)+\varphi_h \qquad \bbA_h \in \R^{m-1,m-1};\ \varphi_h \in \R^{m-1};\
\bbF(n) \in \R ^{m-1} $$

\end{document}
Binary file renamed cvičení NUM - kindle.pdf → cviceni_NUM_A4.pdf
Binary file not shown.
File renamed without changes.
Binary file renamed cvičení NUM - A4.pdf → cviceni_NUM_kindle.pdf
Binary file not shown.
File renamed without changes.
Binary file removed mexson1.pdf
Binary file not shown.
Binary file removed mexson1.vdesigner/QuickLook/Preview.pdf
Binary file not shown.
Binary file removed mexson1.vdesigner/QuickLook/Thumbnail.jpg
Binary file not shown.
Binary file removed mexson1.vdesigner/VectorDesigner
Binary file not shown.
Binary file removed mexson2.pdf
Binary file not shown.
Binary file removed mexson2.vdesigner/QuickLook/Preview.pdf
Binary file not shown.
Binary file removed mexson2.vdesigner/QuickLook/Thumbnail.jpg
Binary file not shown.
Binary file removed mexson2.vdesigner/VectorDesigner
Binary file not shown.

0 comments on commit d8615e4

Please sign in to comment.