function [abc,t] = lab2_quadrdiscr(D1,D2)

a = D1.Sigma^2 - D2.Sigma^2;
b = 2*(D2.Sigma^2)*D1.Mean - 2*(D1.Sigma^2)*D2.Mean;
c = (D2.Mean*D1.Sigma)^2 - (D1.Mean*D2.Sigma)^2 - ...
   2*((D1.Sigma*D2.Sigma)^2)*log( (D1.Sigma*D2.Prior) / (D2.Sigma*D1.Prior) );

t(1) = (-b + sqrt(b^2 - 4*a*c)) / (2*a);
t(2) = (-b - sqrt(b^2 - 4*a*c)) / (2*a);
t = [min(t) max(t)];

abc = [ a b c ];
