File: cmpf.mli

package info (click to toggle)
ocamlcreal 0.7-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, squeeze, stretch, wheezy
  • size: 384 kB
  • ctags: 751
  • sloc: ml: 2,699; ansic: 1,067; makefile: 15
file content (78 lines) | stat: -rw-r--r-- 1,143 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78

(** Comparison between floating-point numbers and exact arithmetic *)

open Gmp

type t 
  
val add : t -> t -> t
val neg : t -> t
val sub : t -> t -> t

val abs : t -> t
    
val mul : t -> t -> t
val inv : t -> t
val div : t -> t -> t
    
val pow_int : t -> int -> t
    
val sqrt : t -> t

val ln : t -> t
    
val exp : t -> t
val pow : t -> t -> t

val sin : t -> t
val cos : t -> t
val tan : t -> t
    
val arcsin : t -> t
val arccos : t -> t
val arctan : t -> t

val arctan_reciproqual : int -> t

val sinh : t -> t
val cosh : t -> t
val tanh : t -> t
    
val zero : t
val one : t
val two : t

val pi : t
val pi_over_2 : t

val e : t

val cmp : t -> t -> int

(*s Coercions *)

val of_int : int -> t
val of_z : Z.t -> t
val of_q : Q.t -> t
val of_float : float -> t
val of_string : string -> t

val to_float : t -> int -> float
val to_q : t -> int -> Q.t

(*s Pretty-print *)

val set_precision : int -> unit

val to_string : t -> string

val pp : Format.formatter -> t -> unit

(*s Infix operators *)

module Infixes : sig
  val ( + ) : t -> t -> t
  val ( - ) : t -> t -> t
  val ( * ) : t -> t -> t
  val ( / ) : t -> t -> t
end