[][src]Function lib_xalg::generate

pub fn generate<T: Required, S: BuildHasher>(
    depth: T,
    exponent_limit: T,
    coefficient_limit: T,
    operator_flags: &HashSet<OperatorFlag, S>
) -> Result<Formula<T>, ErrorKind>

Generate the formula AST.

  • depth: the depth of the AST of the formula. (depth >= 0)
  • exponent_limit: the max of the exponent of the monomials. Generates in [0..max). (exponent_limit >= 1)
  • coefficient_limit: the max of the coefficient of the monomials. Generates in [0..max). (coefficient_limit >= 2)
  • operator_flags: A set of flags, which controls the operators in the generating process.