pub fn powers<S: SemiringConfig>( cfg: &S, x: &S::Element, num_pows: usize, ) -> Vec<S::Element>
Powers [1, x, x^2, ..., x^(num_pows-1)] computed via the config.
[1, x, x^2, ..., x^(num_pows-1)]