algebraic_root method

Z3_ast algebraic_root(
  1. Z3_context c,
  2. Z3_ast a,
  3. int k
)

\brief Return the a^(1/k)

\pre Z3_algebraic_is_value(c, a) \pre k is even => !Z3_algebraic_is_neg(c, a) \post Z3_algebraic_is_value(c, result)

def_API('Z3_algebraic_root', AST, (_in(CONTEXT), _in(AST), _in(UINT)))

Implementation

Z3_ast algebraic_root(
  Z3_context c,
  Z3_ast a,
  int k,
) {
  return _algebraic_root(
    c,
    a,
    k,
  );
}