pub fn pari_qf_to_qf(pari_qf: GEN) -> Self {
        // TODO: add check that GEN is indeed a qfb
        let a_string = pari_qf_comp_to_decimal_string(pari_qf, 1);
        let b_string = pari_qf_comp_to_decimal_string(pari_qf, 2);
        let c_string = pari_qf_comp_to_decimal_string(pari_qf, 3);

        let a: BigInt = str::parse(&a_string).unwrap();
        let b: BigInt = str::parse(&b_string).unwrap();
        let c: BigInt = str::parse(&c_string).unwrap();

        BinaryQF { a, b, c }
    }
// construct BinaryQF from pari GEN encoded qfb
construct BinaryQF from pari GEN encoded qfb
construct BinaryQF from pari GEN encoded qfb
pub fn pari_qf_to_qf(pari_qf: GEN) -> Self {
        // TODO: add check that GEN is indeed a qfb
        let a_string = pari_qf_comp_to_decimal_string(pari_qf, 1);
        let b_string = pari_qf_comp_to_decimal_string(pari_qf, 2);
        let c_string = pari_qf_comp_to_decimal_string(pari_qf, 3);
        let a: BigInt = str::parse(&a_string).unwrap();
        let b: BigInt = str::parse(&b_string).unwrap();
        let c: BigInt = str::parse(&c_string).unwrap();
        BinaryQF { a, b, c }
    }
pub fn pari_qf_to_qf ( pari_qf : GEN ) -> Self { // TODO: add check that GEN is indeed a qfb let a_string = pari_qf_comp_to_decimal_string ( pari_qf , 1 ) ; let b_string = pari_qf_comp_to_decimal_string ( pari_qf , 2 ) ; let c_string = pari_qf_comp_to_decimal_string ( pari_qf , 3 ) ; let a : BigInt = str :: parse ( & a_string ) . unwrap ( ) ; let b : BigInt = str :: parse ( & b_string ) . unwrap ( ) ; let c : BigInt = str :: parse ( & c_string ) . unwrap ( ) ; BinaryQF { a , b , c } }
construct BinaryQF from pari GEN encoded qfb
construct BinaryQF from pari GEN encoded qfb
pari_qf
GEN
pari_qf
GEN