/**
  * Sets the 'math' subelement of this {@link Rule} to a copy of the given {@link ASTNode}.
  *
  * <p>
  *
  * @param math the {@link ASTNode} structure of the mathematical formula.
  *     <p>
  * @return integer value indicating success/failure of the function. The possible values returned
  *     by this function are:
  *     <li>{@link libsbmlConstants#LIBSBML_OPERATION_SUCCESS LIBSBML_OPERATION_SUCCESS }
  *     <li>{@link libsbmlConstants#LIBSBML_INVALID_OBJECT LIBSBML_INVALID_OBJECT }
  *         <p>
  * @note The subelement 'math' is present in SBML Levels&nbsp;2 and&nbsp;3. In SBML Level&nbsp;1,
  *     the equivalent construct is the attribute named 'formula'. LibSBML provides a unified
  *     interface to the underlying math expression and this method can be used for models of all
  *     Levels of SBML.
  *     <p>
  * @see #setFormula(String formula)
  */
 public int setMath(ASTNode math) {
   return libsbmlJNI.Rule_setMath(swigCPtr, this, ASTNode.getCPtr(math), math);
 }