Class AlgebraicNum

All Implemented Interfaces:
Comparable

public class AlgebraicNum extends ArithExpr
Algebraic numbers
  • Method Details

    • toUpper

      public RatNum toUpper(int precision)
      Return a upper bound for a given real algebraic number. The interval isolating the number is smaller than 1/10^precision.
      Parameters:
      precision - the precision of the result
      Returns:
      A numeral Expr of sort Real
      Throws:
      Z3Exception - on error
      See Also:
    • toLower

      public RatNum toLower(int precision)
      Return a lower bound for the given real algebraic number. The interval isolating the number is smaller than 1/10^precision.
      Parameters:
      precision - precision
      Returns:
      A numeral Expr of sort Real
      Throws:
      Z3Exception - on error
      See Also:
    • toDecimal

      public String toDecimal(int precision)
      Returns a string representation in decimal notation. Remarks: The result has at most precision decimal places.
      Parameters:
      precision - precision
      Returns:
      String
      Throws:
      Z3Exception - on error