fn poly_coeffs_gcd(p: &Poly) -> usize {
    if p.is_zero() {
        return 0;
    }
    let mut cont: usize = p.vec[0] as usize;
    for i in &p.vec {
        cont = gcd(cont, i.abs() as usize);
        if cont == 1 {
            break;
        }
    }
    cont as usize
}
/// Returns the GCD of a polynomial's term coefficients.
Returns the GCD of a polynomial's term coefficients.
Returns the GCD of a polynomial ' s term coefficients .
fn poly_coeffs_gcd(p: &Poly) -> usize {
    if p.is_zero() {
        return 0;
    }
    let mut cont: usize = p.vec[0] as usize;
    for i in &p.vec {
        cont = gcd(cont, i.abs() as usize);
        if cont == 1 {
            break;
        }
    }
    cont as usize
}
fn poly_coeffs_gcd ( p : & Poly ) -> usize { if p . is_zero ( ) { return 0 ; } let mut cont : usize = p . vec [ 0 ] as usize ; for i in & p . vec { cont = gcd ( cont , i . abs ( ) as usize ) ; if cont == 1 { break ; } } cont as usize }
Returns the GCD of a polynomial's term coefficients.
Returns the GCD of a polynomial ' s term coefficients .
p
&Poly
p
&Poly