ising/
lib.rs

1mod simulation;
2
3pub mod algorithm;
4pub mod lattice;
5
6pub use simulation::Simulation;
7
8/// `2.0 / (1.0 + 2_f64.sqrt()).ln()`
9pub const CRITICAL_TEMPERATURE: f64 = 2.269_185_314_213_022;
10
11#[cfg(test)]
12mod tests {
13    #[test]
14    fn critical_temperature_constant() {
15        assert_eq!(super::CRITICAL_TEMPERATURE, 2.0 / 2_f64.sqrt().ln_1p());
16    }
17}