Z3
Loading...
Searching...
No Matches
ComplexRef Class Reference
Inheritance diagram for ComplexRef:

Public Member Functions

 sort (self)
 real_part (self)
 imag_part (self)
Public Member Functions inherited from ArithRef
 is_int (self)
 is_real (self)
 __add__ (self, other)
 __radd__ (self, other)
 __mul__ (self, other)
 __rmul__ (self, other)
 __sub__ (self, other)
 __rsub__ (self, other)
 __pow__ (self, other)
 __rpow__ (self, other)
 __div__ (self, other)
 __truediv__ (self, other)
 __rdiv__ (self, other)
 __rtruediv__ (self, other)
 __mod__ (self, other)
 __rmod__ (self, other)
 __neg__ (self)
 __pos__ (self)
 __le__ (self, other)
 __lt__ (self, other)
 __gt__ (self, other)
 __ge__ (self, other)
 __abs__ (self)
Public Member Functions inherited from ExprRef
 as_ast (self)
 get_id (self)
 sort_kind (self)
 __eq__ (self, other)
 __hash__ (self)
 __ne__ (self, other)
 params (self)
 decl (self)
 kind (self)
 num_args (self)
 arg (self, idx)
 children (self)
 update (self, *args)
 from_string (self, s)
 serialize (self)
Public Member Functions inherited from AstRef
 __init__ (self, ast, ctx=None)
 __del__ (self)
 __deepcopy__ (self, memo={})
 __str__ (self)
 __repr__ (self)
 __eq__ (self, other)
 __hash__ (self)
 __nonzero__ (self)
 __bool__ (self)
 sexpr (self)
 ctx_ref (self)
 eq (self, other)
 translate (self, target)
 __copy__ (self)
 hash (self)
 py_value (self)
Public Member Functions inherited from Z3PPObject
 use_pp (self)

Additional Inherited Members

Data Fields inherited from AstRef
 ast = ast
 ctx = _get_ctx(ctx)
Protected Member Functions inherited from Z3PPObject
 _repr_html_ (self)

Detailed Description

A Complex expression supporting arithmetic, equality, and projections.

Complex numbers do not support ordering or exponentiation.

Definition at line 3325 of file z3py.py.

Member Function Documentation

◆ imag_part()

imag_part ( self)

Definition at line 3337 of file z3py.py.

3337 def imag_part(self):
3338 return ImagPart(self)
3339
3340

◆ real_part()

real_part ( self)

Definition at line 3334 of file z3py.py.

3334 def real_part(self):
3335 return RealPart(self)
3336

◆ sort()

sort ( self)
Return the sort (type) of the arithmetical expression `self`.

>>> Int('x').sort()
Int
>>> (Real('x') + 1).sort()
Real

Reimplemented from ArithRef.

Definition at line 3331 of file z3py.py.

3331 def sort(self):
3332 return ComplexSortRef(Z3_get_sort(self.ctx_ref(), self.as_ast()), self.ctx)
3333
Z3_sort Z3_API Z3_get_sort(Z3_context c, Z3_ast a)
Return the sort of an AST node.