Navigation: Up, Table of Contents, Bibliography, Index, Title Page

## CGAL::simplest_rational_in_interval

### Definition

The function simplest_rational_in_interval computes the simplest rational number in an interval of two double values.

#include <CGAL/number_utils.h>

Rational | simplest_rational_in_interval ( double d1, double d2)
|  | computes the rational number with the smallest denominator in the interval [d1,d2].

### Implementation

See Knuth, "Seminumerical algorithms", page 654, answer to exercise 4.53-39.

### See Also

Rational CGAL::to_rational<Rational>(double d).

Next: sqrt

Navigation: Table of Contents, Bibliography, Index, Title Page

The CGAL Project . Tue, December 21, 2004 .