ising 0.2.3

Ising simulation and algorithms
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod simulation;

pub mod algorithm;
pub mod lattice;

pub use simulation::Simulation;

/// `2.0 / (1.0 + 2_f64.sqrt()).ln()`
pub const CRITICAL_TEMPERATURE: f64 = 2.269_185_314_213_022;

#[cfg(test)]
mod tests {
    #[test]
    fn critical_temperature_constant() {
        assert_eq!(super::CRITICAL_TEMPERATURE, 2.0 / 2_f64.sqrt().ln_1p());
    }
}