%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Elidon Dhamo                                                          %
%                                                                       %
%        Loesungen zu den Uebungen des Matlab-Kurses / WS02/03          %
%                                                                       %
% Aufgaben 17 - 20                                            13.11.02  %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


% Aufgabe 17
% PI - Berechnung
% s. Funktion: "aufg17.m"
PI = aufg17(1000, 1e-6)

% Aufgabe 18
% Kumulatives Produkt
% s. Funktion: "aufg18.m"
P = aufg18([1:10]')


% Aufgabe 19
% s. Funktion "plott2D.m"
plott2D('sin', -pi, pi, 1000)

% Aufgabe 20
% Kumulatives Produkt, erweitert
% s. Funktion: "cumulprod.m"
x = [1:5];
X = [x;x];
P = cumulprod(X,2)
P = cumulprod(X)