10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-11-03 20:54:00 +01:00
quantum_package/ocaml/Primitive.ml

16 lines
241 B
OCaml
Raw Normal View History

2014-08-13 17:54:32 +02:00
open Qptypes;;
open Core.Std;;
type t =
{ sym : Symmetry.t ;
expo : Positive_float.t ;
}
let to_string p =
let { sym = s ; expo = e } = p in
Printf.sprintf "(%s, %f)"
(Symmetry.to_string s)
(Positive_float.to_float e)
;;