Newer
Older
abgabensammlungSS15 / is / ubA / is10.tex
@Jan-Peter Hohloch Jan-Peter Hohloch on 11 Jul 2015 3 KB IS: 11.1
\documentclass[a4paper,12pt]{scrartcl}
\usepackage[ngerman]{babel}
\usepackage{graphicx} %BIlder einbinden
\usepackage{amsmath} %erweiterte Mathe-Zeichen
\usepackage{amsfonts} %weitere fonts
\usepackage[utf8]{inputenc} %Umlaute & Co
\usepackage{hyperref} %Links
\usepackage{ifthen} %ifthenelse
\usepackage{enumerate}
\usepackage{listings}
\lstset{language=Python}
\usepackage{ wasysym }
\usepackage{algpseudocode} %Pseudocode
\usepackage{dsfont} % schöne Zahlenräumezeichen
\usepackage{amssymb, amsthm} %noch stärker erweiterte Mathe-Zeichen
\usepackage{tikz} %TikZ ist kein Zeichenprogramm
\usetikzlibrary{trees,automata,arrows,shapes}

\pagestyle{empty}


\topmargin-50pt

\newcounter{aufgabe}
\def\tand{&}

\newcommand{\makeTableLine}[2][0]{%
  \setcounter{aufgabe}{1}%
  \whiledo{\value{aufgabe} < #1}%
  {%
    #2\tand\stepcounter{aufgabe}%
  }
}

\newcommand{\aufgTable}[1]{
  \def\spalten{\numexpr #1 + 1 \relax}
  \begin{tabular}{|*{\spalten}{p{1cm}|}}
    \makeTableLine[\spalten]{A\theaufgabe}$\Sigma$~~\\ \hline
    \rule{0pt}{15pt}\makeTableLine[\spalten]{}\\
  \end{tabular}
}

\def\header#1#2#3#4#5#6#7{\pagestyle{empty}
\begin{minipage}[t]{0.47\textwidth}
\begin{flushleft}
{\bf #4}\\
#5
\end{flushleft}
\end{minipage}
\begin{minipage}[t]{0.5\textwidth}
\begin{flushright}
#6 \vspace{0.5cm}\\
%                 Number of Columns    Definition of Columns      second empty line
% \begin{tabular}{|*{5}{C{1cm}|}}\hline A1&A2&A3&A4&$\Sigma$\\\hline&&&&\\\hline\end{tabular}\\\vspace*{0.1cm}
\aufgTable{#7}
\end{flushright}
\end{minipage}
\vspace{1cm}
\begin{center}
{\Large\bf Sheet #1}

{(Hand in #3)}
\end{center}
}



%counts the exercisenumber
\newcounter{n}

%Kommando für Aufgaben
%\Aufgabe{AufgTitel}{Punktezahl}
\newcommand{\Aufgabe}[2]{\stepcounter{n}
    \textbf{Exercise \arabic{n}: #1} (#2 Points)}


\begin{document}
    %\header{BlattNr}{Tutor}{Abgabedatum}{Vorlesungsname}{Namen}{Semester}{Anzahl Aufgaben}
    \header{10}{}{2015-07-16}{Intelligent Systems I}{\textit{Maximus Mutschler}\\ \textit{Jan-Peter Hohloch}
    }{SS 15}{2}
    \vspace{1cm}
    \Aufgabe{PCA}{50}
        \begin{enumerate}
            \item $c\approx\begin{pmatrix}
                1.25\\
                1.32\\
                3.38
            \end{pmatrix}$
            \item $cov\approx\begin{pmatrix}
                3.723&-2.408& 2.383\\
                -2.408 & 2.638 &-3.187\\
                2.383 & -3.187&4.371\\
            \end{pmatrix}$
            \item $\Lambda\approx\begin{pmatrix}
                8.967&0&0\\
                0& 1.680&0\\
                0&0& 0.0914
            \end{pmatrix}$\\
                $e_1\approx \begin{pmatrix}
                    0.541\\-0.533\\0.650
                \end{pmatrix}, e_2\approx \begin{pmatrix}
                    -0.809\\-0.119,\\0.576
                \end{pmatrix}, e_3\approx \begin{pmatrix}
                    0.230\\0.838\\0.496
                \end{pmatrix}$
            \item (-0.50162134, -0.4095013),( 4.1389303, -0.87209681),(-4.01511344, -0.33062239)\\
            ( 1.21222159,  2.84481044),
            ( 2.6224546, -0.92654987),
            (-3.4568717, -0.30604007)
            \item $\begin{pmatrix}
                     1.3099157 \\  1.63614581\\  2.82139275\end{pmatrix},\begin{pmatrix}
                     4.19474015\\ -0.78370499\\  5.57290581\end{pmatrix},\begin{pmatrix}
                    -0.65472492\\  3.50051061\\  0.58193304\end{pmatrix},\\\begin{pmatrix}
                    -0.39570057\\  0.33567277\\  5.80927587\end{pmatrix},\begin{pmatrix}
                     3.41836927\\  0.03149292\\  4.55537728\end{pmatrix},\begin{pmatrix}
                    -0.37259963\\  3.19988288\\  0.95911526
            \end{pmatrix}$
        \end{enumerate}
    \Aufgabe{Eigenfaces}{50}\\
        see ipyhon notebook.
\end{document}