mirror of
https://github.com/QuantumPackage/qp2.git
synced 2024-08-25 13:41:47 +02:00
18 lines
275 B
OCaml
18 lines
275 B
OCaml
open Qptypes
|
|
open Core
|
|
|
|
type t =
|
|
{ sym : Symmetry.t ;
|
|
expo : AO_expo.t ;
|
|
} [@@deriving sexp]
|
|
|
|
let to_string p =
|
|
let { sym = s ; expo = e } = p in
|
|
Printf.sprintf "(%s, %22e)"
|
|
(Symmetry.to_string s)
|
|
(AO_expo.to_float e)
|
|
|
|
|
|
let of_sym_expo s e =
|
|
{ sym=s ; expo=e}
|