This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gsl_poly_solve_quadratic() -- question


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                
----------------------------------------------------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]