Re
return the Real part of a complex-valued expression
Im
return the Imaginary part of a complex-valued expression
Calling Sequence
Parameters
Description
Thread Safety
Examples
Re(x)
ℜ⁡x
Im(x)
ℑ⁡x
x
-
expression
The Re(x) calling sequence attempts to return the real part of x.
If x is a real extended numeric, then x is returned. If x is a complex extended numeric, then the real part of x is returned.
The Im(x) function attempts to return the imaginary part of x.
If x is a real extended numeric, then 0 is returned. If x is a complex extended numeric, then the imaginary part of x is returned.
You can enter the commands Re and Im using their 1-D or 2-D calling sequences. For example, Re(3+4*I) is equivalent to ℜ⁡3+4⁢I.
If x includes a function f, then Re(x) and Im(x) attempt to execute the procedures `Re/f` and `Im/f` to determine the real and imaginary parts of the corresponding part of x.
By this method, the functionality of these commands can be extended. For example, Re(sin(3+4*I)*ln(3+4*I)) executes the procedures `Re/sin`, `Im/sin`, `Re/ln`, and `Im/ln`.
To specify that unknown variables should be assumed to represent real values, use the assume or the evalc command.
The Re and Im commands are thread-safe as of Maple 15.
For more information on thread safety, see index/threadsafe.
ℑ⁡x⁢y
assume⁡z,real
ℜ⁡x⁢y+z
z~+ℜ⁡x⁢y
ℜ⁡x⁢z
z~⁢ℜ⁡x
ℜ⁡π+I⁢exp⁡1
π
ℜ⁡cosh⁡3+4⁢I
cosh⁡3⁢cos⁡4
ℑ⁡cosh⁡3+4⁢I
sinh⁡3⁢sin⁡4
ℑ⁡exp⁡I
sin⁡1
ln⁡−1
I⁢π
ℑ⁡ln⁡−1
ℑ⁡polar⁡3,π7
3⁢sin⁡π7
ℜ⁡polar⁡exp⁡x+4⁢I
ⅇℜ⁡x⁢cos⁡arg⁡ⅇx+4⁢I
evalc⁡
ⅇx⁢cos⁡4
See Also
assume
complex
evalc
float
numeric_type
RealDomain
Download Help Document