Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

DOM_COMPLEX

(Simple) Complex Numbers

MuPAD® notebooks are not recommended. Use MATLAB® live scripts instead.

MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.

Description

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.

Operations

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

Operands

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

Output

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?