sci-cream 0.0.2

Library that facilitates the mathematical analysis of ice cream mixes and their properties.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![doc = include_str!("../docs/freezing-point-depression.md")]
#![doc = include_str!("../docs/sweeteners.md")]
#![doc = include_str!("../docs/bibliography.md")]

/// Asserts for floating point comparisons in doc tests
#[macro_export(local_inner_macros)]
macro_rules! assert_eq_float {
    ($given:expr, $expected:expr) => {
        approx::assert_abs_diff_eq!($given, $expected, epsilon = 0.001)
    };
}

// @todo See if it's possible to export only for doc tests
pub use assert_eq_float;