10
1
mirror of https://gitlab.com/scemama/QCaml.git synced 2024-11-06 22:23:42 +01:00
QCaml/common/lib/constants.ml

45 lines
1.6 KiB
OCaml
Raw Normal View History

2020-12-27 16:55:53 +01:00
2020-12-28 01:55:03 +01:00
(* | ~epsilon~ | Value below which a float is considered null. Default is \epsilon = 2.10^{-15} |
* | ~integrals_cutoff~ | Cutoff value for integrals. Default is \epsilon | *)
2020-12-27 16:55:53 +01:00
2020-12-28 01:55:03 +01:00
(* [[file:~/QCaml/common/constants.org::*Thresholds][Thresholds:2]] *)
let epsilon = 2.e-15
2020-12-17 19:52:09 +01:00
let integrals_cutoff = epsilon
2020-12-28 01:55:03 +01:00
(* Thresholds:2 ends here *)
(* | ~pi~ | $\pi = 3.141~592~653~589~793~12$ |
* | ~two_pi~ | $2 \pi$ |
* | ~sq_pi~ | $\sqrt{\pi}$ |
* | ~sq_pi_over_two~ | $\sqrt{\pi} / 2$ |
* | ~pi_inv~ | $1 / \pi$ |
* | ~two_over_sq_pi~ | $2 / \sqrt{\pi}$ | *)
2018-01-19 17:42:12 +01:00
2020-12-28 01:55:03 +01:00
(* [[file:~/QCaml/common/constants.org::*Mathematical%20constants][Mathematical constants:2]] *)
2020-12-27 16:55:53 +01:00
let pi = acos (-1.)
let two_pi = 2. *. pi
let sq_pi = sqrt pi
2018-02-01 19:06:29 +01:00
let sq_pi_over_two = sq_pi *. 0.5
2020-12-27 16:55:53 +01:00
let pi_inv = 1. /. pi
let two_over_sq_pi = 2. /. sq_pi
(* Mathematical constants:2 ends here *)
2018-01-19 17:42:12 +01:00
2020-12-28 01:55:03 +01:00
(* | ~a0~ | Bohr's radius : $a_0 = 0.529~177~210~67(23)$ angstrom |
* | ~a0_inv~ | $1 / a_0$ |
* | ~ha_to_ev~ | Hartree to eV conversion factor : $27.211~386~02(17)$ |
* | ~ev_to_ha~ | eV to Hartree conversion factor : 1 / ~ha_to_ev~ | *)
(* [[file:~/QCaml/common/constants.org::*Physical%20constants][Physical constants:2]] *)
2018-05-30 20:16:18 +02:00
let a0 = 0.529_177_210_67
2018-02-13 17:36:25 +01:00
let a0_inv = 1. /. a0
2018-05-30 20:16:18 +02:00
let ha_to_ev = 27.211_386_02
let ev_to_ha = 1. /. ha_to_ev
2020-12-27 16:55:53 +01:00
(* Physical constants:2 ends here *)