polycore 0.1.3

Fields, prime fields, sparse and dense polynomials, and sparse echelon forms.
Documentation
1
2
3
4
5
6
7
8
9
10
use polycore::{Fp, Primes, crt};

fn main() {
    let image = |p| {
        let h = (1..=20).fold(Fp::new(0, p), |s, k| s + Fp::new(1, p) / Fp::new(k, p));
        Some(vec![h.value()])
    };
    let h = crt::reconstruct(image, Primes::below(100)).expect("enough primes");
    println!("H_20 = {}", h[0]);
}