MCPcopy Create free account
hub / github.com/Z3Prover/z3 / mkReal

Method mkReal

src/api/java/Context.java:2703–2710  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 4

modelConverterTestMethod · 0.80
basicTestsMethod · 0.80
modelConverterTestMethod · 0.80
basicTestsMethod · 0.80

Calls 5

nCtxMethod · 0.95
getRealSortMethod · 0.95
mkNumeralMethod · 0.80
getNativeObjectMethod · 0.80
mkIntMethod · 0.80

Tested by

no test coverage detected