function Alok_q = alok_q(q,x,e)

% Alok_q = alok_q(q,x,e)
%             Funkce realizuje lokalni prispevek do matice,
%             ktery odpovida bil. forme:
%              a(v,u) = q * \int_{x1}^{x2} v(x)*u(x) dx

x1 = x(e(1));
x2 = x(e(2));

D = (x2-x1) * q;
B = [0.5 0.5];

Alok_q = B' * D * B;
