mathrc 0.2.2

Rust Mathematics Library
Documentation
1
2
3
4
5
6
pub fn sum<F>(
    k: u64, n: u64,
    f: F
) -> f64 where F: Fn(u64)-> f64, {
    (k..=n).map(f).sum()
}