10
1
mirror of https://gitlab.com/scemama/QCaml.git synced 2024-12-22 12:23:31 +01:00
QCaml/Utils/Charge.mli

26 lines
470 B
OCaml
Raw Normal View History

2018-03-03 21:33:32 +01:00
(** This type should be used for all charges in the program (electrons, nuclei,...). *)
2018-03-16 00:23:47 +01:00
type t
2018-01-02 22:02:01 +01:00
2018-03-16 00:23:47 +01:00
(** {2 Conversions} *)
2018-01-02 22:02:01 +01:00
2018-03-16 00:23:47 +01:00
val of_float : float -> t
2018-01-02 22:02:01 +01:00
val of_int : int -> t
2018-03-16 00:23:47 +01:00
val of_string: string -> t
2018-01-02 22:02:01 +01:00
2018-03-16 00:23:47 +01:00
val to_float : t -> float
val to_int : t -> int
2018-01-02 22:02:01 +01:00
val to_string: t -> string
2018-03-16 00:23:47 +01:00
(** {2 Operations} *)
2018-03-03 22:13:14 +01:00
val ( + ) : t -> t -> t
val ( - ) : t -> t -> t
val ( * ) : t -> float -> t
val ( / ) : t -> float -> t
2018-03-16 00:23:47 +01:00
(** {2 Printers } *)
val pp : Format.formatter -> t -> unit