Create a real from a fraction. @param num numerator of rational. @param den denominator of rational. @return A Term with value num/den and sort Real @see #mkNumeral(String v, R ty)
(int num, int den)
| 2701 | * @see #mkNumeral(String v, R ty) |
| 2702 | **/ |
| 2703 | public RatNum mkReal(int num, int den) |
| 2704 | { |
| 2705 | if (den == 0) { |
| 2706 | throw new Z3Exception("Denominator is zero"); |
| 2707 | } |
| 2708 | |
| 2709 | return new RatNum(this, Native.mkReal(nCtx(), num, den)); |
| 2710 | } |
| 2711 | |
| 2712 | /** |
| 2713 | * Create a real numeral. |
no test coverage detected