31.01.2014 Views

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

int<br />

int<br />

real roots(const Polynomial& P, growing array& roots,<br />

algorithm type algorithm = isolating algorithm,<br />

bool is squarefree = true)<br />

same as above.<br />

real roots(const int Polynomial& iP, list& roots,<br />

algorithm type algorithm = isolating algorithm,<br />

bool is squarefree = true)<br />

returns all real roots of the polynomial iP.<br />

real diamond(int j, const Polynomial& P,<br />

algorithm type algorithm = isolating algorithm,<br />

bool is squarefree = true)<br />

returns the j-th smallest real root of the polynomial P .<br />

real diamond(rational l, rational u, const Polynomial& P,<br />

algorithm type algorithm = isolating algorithm,<br />

bool is squarefree = true)<br />

returns the real root of the polynomial P which is in the isolating<br />

interval [l,u].<br />

real diamond short(rational l, rational u, const Polynomial& P,<br />

algorithm type algorithm = isolating algorithm,<br />

bool is squarefree = true)<br />

returns the real root of the polynomial P which is in the isolating<br />

interval [l,u].<br />

Precondition: (u − l) < 1/4<br />

real<br />

real<br />

diamond(int j, const int Polynomial& iP,<br />

algorithm type algorithm = isolating algorithm,<br />

bool is squarefree = true)<br />

returns the j-th smallest real root of the polynomial iP.<br />

diamond(rational l, rational u, const int Polynomial& iP,<br />

algorithm type algorithm = isolating algorithm,<br />

bool is squarefree = true)<br />

returns the real root of the polynomial iP which is in the<br />

isolating interval [l,u].<br />

real abs(const real& x)<br />

absolute value of x<br />

real<br />

sqr(const real& x) square of x<br />

real dist(const real& x, const real& y)<br />

euclidean distance of point (x,y) to the origin<br />

real powi(const real& x, int n)<br />

x n , i.e., n.th power of x

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!