This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: gsl_poly_solve_quadratic() -- question
- From: Brian Gough <bjg at network-theory dot co dot uk>
- To: Daniel Carrera <dcarrera at math dot umd dot edu>
- Cc: gsl-discuss at sources dot redhat dot com
- Date: Sun, 2 Feb 2003 22:56:16 +0000
- Subject: Re: gsl_poly_solve_quadratic() -- question
- References: <20030125025858.GB3342@math.umd.edu>
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
----------------------------------------------------------------------