10
1
mirror of https://gitlab.com/scemama/QCaml.git synced 2024-07-04 18:35:50 +02:00
QCaml/common/charge.org
2020-12-27 16:36:25 +01:00

2.2 KiB

Charge

Type

This type should be used for all charges in the program (electrons, nuclei,…).

type t

Conversions

of_float / to_float

val of_float : float -> t
val to_float : t -> float

of_int / to_int

val of_int   : int -> t
val to_int   : t -> int

of_string / to_string

val of_string: string -> t
val to_string: t -> string

Simple operations

val ( + ) : t -> t -> t
val ( - ) : t -> t -> t
val ( * ) : t -> float -> t
val ( / ) : t -> float -> t

Printers

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