module Real:sig..end
Real Arithmetic
val mk_sort : context -> Sort.sortCreate a real sort.
val get_numerator : Expr.expr -> Expr.exprThe numerator of a rational numeral.
val get_denominator : Expr.expr -> Expr.exprThe denominator of a rational numeral.
val get_ratio : Expr.expr -> Q.tGet a ratio from a real numeral
val to_decimal_string : Expr.expr -> int -> stringReturns a string representation in decimal notation. The result has at most as many decimal places as indicated by the int argument.
val numeral_to_string : Expr.expr -> stringReturns a string representation of a numeral.
val mk_const : context -> Symbol.symbol -> Expr.exprCreates a real constant.
val mk_const_s : context -> string -> Expr.exprCreates a real constant.
val mk_numeral_nd : context -> int -> int -> Expr.exprCreate a real numeral from a fraction.
Arithmetic.Real.mk_numeral_sval mk_numeral_s : context -> string -> Expr.exprCreate a real numeral.
val mk_numeral_i : context -> int -> Expr.exprCreate a real numeral.
val mk_is_integer : context -> Expr.expr -> Expr.exprCreates an expression that checks whether a real number is an integer.
val mk_real2int : context -> Expr.expr -> Expr.exprCoerce a real to an integer.
The semantics of this function follows the SMT-LIB standard for the function to_int. The argument must be of real sort.
module AlgebraicNumber:sig..end
Algebraic Numbers