%%%%%%%%%%%%%%%%%%%%%%%% Aufgabe 3 ->function Dg.m <-%%%%%%%%%%%%%%%%%%%%%%%%%%%

function erg = Dg(x);

% Berechnet die Jacobimatrix des ueberbestimmten  Systems g(x) = 0
% Dg_(k,i) = dg_k / dx_i
% wobei g_k(x) = z(t_k; x) - z_k,  k=1, ..., 9
% mit   x := [a_1, a_2, a_3 ]'

t = [   0;   .5;    1;  1.5;    2;    3;    5;    8;   10];
z = [3.85; 2.95; 2.63; 2.33; 2.24; 2.05; 1.82; 1.80; 1.75];

erg = [ones(9,1), exp(x(3)*t), x(2)*t.*exp(x(3)*t) ];
