mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-25 14:28:05 +02:00
Merge pull request #27 from PeterMerkert/master
Aufgabe 2 für Klausur 2 Musterlösung geschrieben
This commit is contained in:
commit
54acbaf035
2 changed files with 23 additions and 36 deletions
|
@ -1,43 +1,30 @@
|
||||||
\section*{Aufgabe 2}
|
\section*{Aufgabe 2}
|
||||||
\subsection*{Teilaufgabe a)}
|
\subsection*{Teilaufgabe a)}
|
||||||
Formel: $y_i = \frac{b_i - \sum_{j=1}^{i-1} y_j \cdot l_{ij}}{l_{ii}} $
|
|
||||||
|
|
||||||
Anmerkung: $l_{ii}$ kann nicht $0$ sein, da L dann nicht mehr invertierbar wäre.
|
\textbf{Behauptung:} Für $x \in \mathbb{R}$ gilt, dass $cos(x_k) = x_{k+1}$ gegen den einzigen Fixpunkt $x^{*} = cos(x^{*})$ konvergiert.
|
||||||
|
|
||||||
Algorithmus:
|
\textbf{Beweis:}
|
||||||
|
Sei $ D := [-1, 1]$.\\
|
||||||
|
Trivial: $D$ ist abgeschlossen.
|
||||||
|
|
||||||
\begin{algorithm}[H]
|
Sei $ x \in D$, so gilt:
|
||||||
\begin{algorithmic}
|
\begin{align*}
|
||||||
\For{$i=1$ to $i=n$}
|
0 < cos(x) \leq 1
|
||||||
\State $sum \gets 0$
|
\end{align*}
|
||||||
\For{$j = 1$ to $j = i-1$}
|
Also: $cos(x) \in D$.\\ Wenn $x \not\in D$, so gilt $y := cos(x)$ und $cos(y) \in D$. D.h. bereits nach einem Iterationschritt wäre $cos(x) \in D$ für $x \in \mathbb{R}$! Dies ist wichtig, da damit gezeigt ist, dass $cos(x_k) = x_{k+1}$ für jedes $x \in \mathbb{R}$ konvergiert! Es kommt nur dieser einzige Iteratationsschritt für $x \not\in \mathbb{R}$ hinzu.
|
||||||
\State $sum \gets sum + y_i \cdot l_{ij}$
|
|
||||||
\EndFor
|
|
||||||
\State $y_i \gets \frac{b_i - sum}{l_{ii}}$
|
|
||||||
\EndFor
|
|
||||||
\end{algorithmic}
|
|
||||||
\caption{TODO}
|
|
||||||
\end{algorithm}
|
|
||||||
|
|
||||||
\subsubsection*{(b)}
|
Nun gilt mit $ x, y \in D, x < y, \xi \in (x,y) $ und dem Mittelwert der Differentialrechnung:
|
||||||
\begin{algorithm}[H]
|
\begin{align*}
|
||||||
\begin{algorithmic}
|
\frac{cos(x) - cos(y)}{x - y} = cos'(\xi) \\
|
||||||
\Require Matrix $A$, Vektor $b$
|
\Leftrightarrow cos(x) - cos(y) = cos'(\xi) * (x - y) \\
|
||||||
\Procedure{LoeseLGS}{$A$, $b$}
|
\Leftrightarrow | cos(x) - cos(y) | = | cos'(\xi) * (x - y) | \leq | cos'(\xi) | * | (x - y) |
|
||||||
\State $P, L, R \gets \Call{LRZer}{A}$
|
\end{align*}
|
||||||
\State $b^* \gets P \cdot b$
|
Da $ \xi \in (0, 1) $ gilt:
|
||||||
\State $c \gets \Call{VorSub}{L, b^*}$
|
\begin{align*}
|
||||||
\State $x \gets \Call{RueckSub}{R, c}$
|
0 \leq | cos'(\xi) | = | sin(\xi) | < 1
|
||||||
\State \Return $x$
|
\end{align*}
|
||||||
\EndProcedure
|
Damit ist gezeigt, dass $cos(x) : D \rightarrow D$ Kontraktion auf $D$.
|
||||||
\end{algorithmic}
|
|
||||||
\caption{Löse ein LGS $Ax = b$}
|
|
||||||
\end{algorithm}
|
|
||||||
|
|
||||||
\subsection*{Teilaufgabe c)}
|
Damit sind alle Voraussetzung des Banachschen Fixpunktsatzes erfüllt.
|
||||||
Aufwand:
|
|
||||||
\begin{itemize}
|
Nach dem Banachschen Fixpunktsatz folgt die Aussage.
|
||||||
\item Vorwärts-/Rückwärtssubstitution: jeweils $\frac{1}{2} \cdot n^2$
|
|
||||||
\item LR-Zerlegung: $\frac{1}{3}n^3$
|
|
||||||
\item gesamt: $\frac{1}{3}n^3+n^2$
|
|
||||||
\end{itemize}
|
|
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue