module type Rat = sig end
The argument signature of the functor
Euclid.Make
May only be instantiated with a structure isomorphic to
the rationals.
type q
Rationals.
val eq : q -> q -> bool
Equality.
val (+) : Euclid.Rat.q -> Euclid.Rat.q -> Euclid.Rat.q
Addition.
val zero : q
Neutral element of addition.
val inv : q -> q
Inverse of Addition.
val (*) : Euclid.Rat.q -> Euclid.Rat.q -> Euclid.Rat.q
Multiplication.
val one : q
val (/) : Euclid.Rat.q -> Euclid.Rat.q -> Euclid.Rat.q
Inverse of Multiplication.
val floor : q -> q
Floor function on rationals.
val is_int : q -> bool
Integer test of a rational.