gsl_poly_solve_quadratic() -- question
Brian Gough
bjg@network-theory.co.uk
Sun Feb 2 22:59:00 GMT 2003
Daniel Carrera writes:
> Hello,
> >From the manual:
>
> "If no real roots are found then x0 and x1 are not modified."
>
> Isn't there a problem with this behaviour?
> How is the programmer supposed to know if roots were not found, or if they
> were found but just happen to equal the initial values of x0 and x1?
>
The function returns the number of roots (either 0 or 2).
--
Brian Gough
----------------------------------------------------------------------
Network Theory Ltd Phone: 0117 3179309 (+44 117 3179309)
15 Royal Park WWW: http://www.network-theory.co.uk/
Bristol BS8 3AL Email: bjg@network-theory.co.uk
United Kingdom
----------------------------------------------------------------------
More information about the Gsl-discuss
mailing list