package smtml

  1. Overview
  2. Docs

doc/smtml/Smtml/Typed/Real/index.html

Module Typed.RealSource

Sourcetype t = real expr
Sourceval v : float -> t
Sourceval symbol : Symbol.t -> t
Sourceval neg : t -> t

neg t constructs the negation of the real number term t.

Sourceval add : t -> t -> t

add t1 t2 constructs the sum of the real number terms t1 and t2.

Sourceval sub : t -> t -> t

sub t1 t2 constructs the difference of the real number terms t1 and t2.

Sourceval mul : t -> t -> t

mul t1 t2 constructs the product of the real number terms t1 and t2.

Sourceval div : t -> t -> t

div t1 t2 constructs the quotient of the real number terms t1 and t2.

Sourceval pow : t -> t -> t

pow t1 t2 constructs the power of the real number terms t1 and t2.

Sourceval eq : t -> t -> bool expr

Alias for Bool.eq.

Sourceval lt : t -> t -> bool expr

lt t1 t2 constructs the less-than relation between t1 and t2.

Sourceval le : t -> t -> bool expr

le t1 t2 constructs the less-than-or-equal relation between t1 and t2.

Sourceval to_int : t -> int expr

to_int t converts the real number term t to an integer term.

Sourceval pp : t Fmt.t