Z3
 
Loading...
Searching...
No Matches
ComplexExpr.cs
Go to the documentation of this file.
1/* Copyright (c) 2026 Microsoft Corporation */
2using System;
3
4namespace Microsoft.Z3
5{
7 public class ComplexExpr : ArithExpr
8 {
9 internal ComplexExpr(Context ctx, IntPtr obj) : base(ctx, obj) { }
10
12 public RealExpr RealPart { get { return Context.MkRealPart(this); } }
13
15 public RealExpr ImagPart { get { return Context.MkImagPart(this); } }
16 }
17}
Arithmetic expressions (Int, Real, or Complex). Ordering requires Int or Real.
Definition ArithExpr.cs:31
A Complex expression. Complex numbers have no ordering.
Definition ComplexExpr.cs:8
RealExpr ImagPart
The Real-valued imaginary component.
RealExpr RealPart
The Real-valued real component.
The main interaction with Z3 happens via the Context.
Definition Context.cs:34
RealExpr MkRealPart(ArithExpr value)
Returns the Real-valued real component of a Complex expression.
Definition Context.cs:965
RealExpr MkImagPart(ArithExpr value)
Returns the Real-valued imaginary component of a Complex expression.
Definition Context.cs:972
Real expressions.
Definition RealExpr.cs:32