mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 04:03:39 +00:00
parent
90098633ef
commit
e5dffeace4
|
@ -46,7 +46,7 @@ class ComplexExpr:
|
||||||
other = _to_complex(other)
|
other = _to_complex(other)
|
||||||
return ComplexExpr(self.r*other.r - self.i*other.i, self.r*other.i + self.i*other.r)
|
return ComplexExpr(self.r*other.r - self.i*other.i, self.r*other.i + self.i*other.r)
|
||||||
|
|
||||||
def __mul__(self, other):
|
def __rmul__(self, other):
|
||||||
other = _to_complex(other)
|
other = _to_complex(other)
|
||||||
return ComplexExpr(other.r*self.r - other.i*self.i, other.i*self.r + other.r*self.i)
|
return ComplexExpr(other.r*self.r - other.i*self.i, other.i*self.r + other.r*self.i)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue