Inheritance diagram for RCFNum:Public Member Functions | |
| RCFNum (Context ctx, String value) | |
| RCFNum (Context ctx, int value) | |
| RCFNum | add (RCFNum other) |
| RCFNum | sub (RCFNum other) |
| RCFNum | mul (RCFNum other) |
| RCFNum | div (RCFNum other) |
| RCFNum | neg () |
| RCFNum | inv () |
| RCFNum | power (int k) |
| boolean | lt (RCFNum other) |
| boolean | gt (RCFNum other) |
| boolean | le (RCFNum other) |
| boolean | ge (RCFNum other) |
| boolean | eq (RCFNum other) |
| boolean | neq (RCFNum other) |
| boolean | isRational () |
| boolean | isAlgebraic () |
| boolean | isInfinitesimal () |
| boolean | isTranscendental () |
| String | toString (boolean compact) |
| String | toString () |
| String | toDecimal (int precision) |
Static Public Member Functions | |
| static RCFNum | mkPi (Context ctx) |
| static RCFNum | mkE (Context ctx) |
| static RCFNum | mkInfinitesimal (Context ctx) |
| static RCFNum[] | mkRoots (Context ctx, RCFNum[] coefficients) |
Static Public Member Functions inherited from Z3Object | |
| static long[] | arrayToNative (Z3Object[] a) |
| static int | arrayLength (Z3Object[] a) |
Real Closed Field (RCF) numerals.
RCF numerals can represent:
Definition at line 31 of file RCFNum.java.
Create an RCF numeral from a rational string.
| ctx | Z3 context |
| value | String representation of a rational number (e.g., "3/2", "0.5", "42") |
| Z3Exception | on error |
Definition at line 39 of file RCFNum.java.
Create an RCF numeral from a small integer.
| ctx | Z3 context |
| value | Integer value |
| Z3Exception | on error |
Definition at line 49 of file RCFNum.java.
Add two RCF numerals.
| other | The RCF numeral to add |
| Z3Exception | on error |
Definition at line 129 of file RCFNum.java.
Referenced by Solver.__iadd__().
Divide two RCF numerals.
| other | The RCF numeral to divide by |
| Z3Exception | on error |
Definition at line 168 of file RCFNum.java.
|
inline |
Check if this RCF numeral is equal to another.
| other | The RCF numeral to compare with |
| Z3Exception | on error |
Definition at line 260 of file RCFNum.java.
Referenced by AstRef.__eq__(), and SortRef.cast().
|
inline |
Check if this RCF numeral is greater than or equal to another.
| other | The RCF numeral to compare with |
| Z3Exception | on error |
Definition at line 248 of file RCFNum.java.
|
inline |
Check if this RCF numeral is greater than another.
| other | The RCF numeral to compare with |
| Z3Exception | on error |
Definition at line 224 of file RCFNum.java.
|
inline |
Compute the multiplicative inverse.
| Z3Exception | on error |
Definition at line 190 of file RCFNum.java.
|
inline |
Check if this RCF numeral is an algebraic number.
| Z3Exception | on error |
Definition at line 292 of file RCFNum.java.
|
inline |
Check if this RCF numeral is an infinitesimal.
| Z3Exception | on error |
Definition at line 301 of file RCFNum.java.
|
inline |
Check if this RCF numeral is a rational number.
| Z3Exception | on error |
Definition at line 283 of file RCFNum.java.
|
inline |
Check if this RCF numeral is a transcendental number.
| Z3Exception | on error |
Definition at line 310 of file RCFNum.java.
|
inline |
Check if this RCF numeral is less than or equal to another.
| other | The RCF numeral to compare with |
| Z3Exception | on error |
Definition at line 236 of file RCFNum.java.
|
inline |
Check if this RCF numeral is less than another.
| other | The RCF numeral to compare with |
| Z3Exception | on error |
Definition at line 212 of file RCFNum.java.
Create an RCF numeral representing e (Euler's constant).
| ctx | Z3 context |
| Z3Exception | on error |
Definition at line 76 of file RCFNum.java.
Create an RCF numeral representing an infinitesimal.
| ctx | Z3 context |
| Z3Exception | on error |
Definition at line 86 of file RCFNum.java.
Create an RCF numeral representing pi.
| ctx | Z3 context |
| Z3Exception | on error |
Definition at line 66 of file RCFNum.java.
Find roots of a polynomial.
The polynomial is a[n-1]*x^(n-1) + ... + a[1]*x + a[0].
| ctx | Z3 context |
| coefficients | Polynomial coefficients (constant term first) |
| Z3Exception | on error |
Definition at line 100 of file RCFNum.java.
Multiply two RCF numerals.
| other | The RCF numeral to multiply |
| Z3Exception | on error |
Definition at line 155 of file RCFNum.java.
|
inline |
Negate this RCF numeral.
| Z3Exception | on error |
Definition at line 180 of file RCFNum.java.
|
inline |
Check if this RCF numeral is not equal to another.
| other | The RCF numeral to compare with |
| Z3Exception | on error |
Definition at line 272 of file RCFNum.java.
|
inline |
Raise this RCF numeral to a power.
| k | The exponent |
| Z3Exception | on error |
Definition at line 201 of file RCFNum.java.
Subtract two RCF numerals.
| other | The RCF numeral to subtract |
| Z3Exception | on error |
Definition at line 142 of file RCFNum.java.
|
inline |
Convert this RCF numeral to a decimal string.
| precision | Number of decimal places |
| Z3Exception | on error |
Definition at line 341 of file RCFNum.java.
|
inline |
Convert this RCF numeral to a string (non-compact).
| Z3Exception | on error |
Definition at line 331 of file RCFNum.java.
Referenced by RCFNum.toString().
|
inline |
Convert this RCF numeral to a string.
| compact | If true, use compact representation |
| Z3Exception | on error |
Definition at line 320 of file RCFNum.java.