\documentclass[12pt]{article}
\usepackage[finnish]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{ifthen}
\usepackage{textcomp}
\usepackage{lmodern}
\usepackage{enumerate}
\newcommand{\R}{\mathbb{R}}
\newcommand{\C}{\mathbb{C}}
\newcommand{\Q}{\mathbb{Q}}
\newcommand{\N}{\mathbb{N}}
\newcommand{\No}{\mathbb{N}_0}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\V}[1]{\mathbf{#1}}
\newcommand{\abs}[1]{\mathop{|#1|}}
\newcommand{\arcosh}{\mathop{\mathrm{arcosh}}}
\newcommand{\viiva}{\noindent \line(1,0){390.0}}
\usepackage[a4paper,text={170mm,230mm}]{geometry}
\usepackage{versions}

\setlength{\parskip}{\medskipamount}
\setlength{\parindent}{0pt}
\setlength{\emergencystretch}{15pt}

\pagestyle{empty}

% Laskuri teht. juoksevaan numeroimiseen:

\newcounter{tehtnro}
\setcounter{tehtnro}{0}
% Perusymparistojen maarittelyt:

\newenvironment{Tehtava}%[1]
% before
{\stepcounter{tehtnro} \makebox[10mm][r]{\bfseries\large\thetehtnro.\ }\begin{minipage}[t]{150mm}\setlength{\parskip}{\medskipamount}}
% After
{\end{minipage}\vspace{5mm}}

\newenvironment{tehtava}{}{}
\newenvironment{vihje}{\par\footnotesize\textbf{Vihje:}\ }{}
\newenvironment{ratk}{\par\footnotesize\textbf{Ratkaisu:}\ }{}


\newenvironment{tlista}{}{\vspace{8pt}\newline}


\newcommand{\tosio}[2]{\vspace{8pt}\newline #1) \ #2}


\newcommand{\pdfnl}{\newline}

% jos haluat vain teht‚àö¬ßv‚àö¬ßt ilman vihjeit‚àö¬ß, ota kommentointi pois komennon



% jos haluat vain teht. ilman vihjeit, ota kommentointi pois taman komennon
% edest.
%\excludeversion{vihje}

%\excludeversion{ratk}

% Jos haluat vain vihjeet ilman teht, poista kommentointi t. komennon
% edest.
%\excludeversion{tehtava}


\begin{document}

\noindent \textbf{Aalto-yliopisto, Matematiikan ja Systeemianalyysin laitos \hfill Apiola/Kuortti }

\noindent \textbf{Mat-x.xxxx Matemaattiset ohjelmistot}


\viiva
\\
 \noindent Harjoitus 1  \hfill 14.3.2012
\\
\viiva


\input{H1T1}


\input{H1T2}


\input{H1T3}


\input{H1T4}


\input{H1T5}


\input{H1T6}



\input{H1T7}


\input{H1T8}

\input{H1T9}

\input{H1T20}

\input{H1T21}

\input{H1T22}

\input{H1T24}

\input{H1T26}

\input{H1T28}

\input{H1T30}

\input{H1T32}

\input{H1T34}

\input{H1T36}
\end{document}