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.

double x.get double error( )<br />

bigfloat x.get bigfloat error( )<br />

bigfloat x.get lower bound( )<br />

bigfloat x.get upper bound( )<br />

returns the absolute error of the current double approximation<br />

of x, i.e., |x − x.to double( )| ≤ x.get double error( ).<br />

returns the absolute error of the current bigfloat approximation<br />

of x, i.e., |x − x.to bigfloat( )| ≤ x.get bigfloat error( ).<br />

returns the lower bound of the current interval approximation<br />

of x.<br />

returns the upper bound of the current interval approximation<br />

of x.<br />

rational x.high( )<br />

rational x.low( )<br />

returns a rational upper bound of the current interval approximation<br />

of x.<br />

returns a rational lower bound of the current interval approximation<br />

of x.<br />

bool x.possible zero( ) returns true if 0 is in the current interval approximation of x<br />

integer x.separation bound( )<br />

void x.print separation bounds( )<br />

returns the separation bound of x.<br />

prints the different separation bounds.<br />

bool x.is general( ) returns true if the expression defining x contains a ⋄-operator,<br />

false otherwise.<br />

bool x.is rational( ) returns true if the expression is rational, false otherwise.<br />

rational x.to rational( )<br />

returns the rational number given by the expression.<br />

Precondition: is rational( ) has is true.<br />

int x.compare(const real& y)<br />

returns the sign of x-y.<br />

int compare all(const growing array& R, int& j)<br />

compares all elements in R. It returns i such that R[i] = R[j]<br />

and i ≠ j. Precondition: Only two of the elements in R are<br />

equal. [ Experimental ]<br />

int x.sign( ) returns the sign of (the exact value of) x.

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

Saved successfully!

Ooh no, something went wrong!