At Tue, 5 Apr 2011 19:51:48 -0400,
James Ward wrote:
> with the simpler:
> 
> if (b == 0)
>         {
>           double r = sqrt (-c / a);
>           *x0 = -r;
>           *x1 =  r;
>         }
>
> you could also move the assignment of disc after the linear case,
> 
> disc = b * b - 4 * a * c;
> 
> since disc is not used in the linear case.

Thanks. I'll make both those changes.

_______________________________________________
Bug-gsl mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gsl

Reply via email to