%% reads set of coefficients a,b,c from data file
d = load('data_for_quadratic_eq_solver.dat');

[Nrows, Ncols] = size(d);
solutions=zeros(Nrows,2); 

for i=1:Nrows
	a=d(i,1);
	b=d(i,2);
	c=d(i,3);
	[x1,x2] = quad_eq_solver(a,b,c);
	solutions(i,1)=x1;
	solutions(i,2)=x2;
end
