Documentation Center

  • Trial Software
  • Product Updates


(Simple) Complex Numbers


DOM_COMPLEX is the type of complex numbers with integer, rational, or floating-point components.

Complex numbers of type DOM_COMPLEX have two operands, their real and imaginary part. These are objects of type DOM_FLOAT, DOM_INT, or DOM_RAT. Complex numbers with other components (such as ) are not of domain type DOM_COMPLEX, but DOM_EXPR.

Function Calls

Calling a complex number as a function returns that number unchanged. The arguments of the call are not evaluated.


Most MuPAD® functions operate on complex numbers. Use Re and Im to access the real and imaginary part, respectively.


Every object of type DOM_COMPLEX has two operands, the real and the imaginary part.


Objects of type DOM_COMPLEX are essentially written as expressions in rectangular form. The imaginary unit is displayed as I.

Element Creation

Complex numbers can be constructed by typing in the corresponding expression, such as 3+4*I. The keyword for typing the imaginary unit I is I (a capital letter i).

See Also

MuPAD Domains

Was this topic helpful?