Complex
Usage
Notes
Further Examples
This number xx is only approximately real.
In[1]:=
|
Out[1]=
|
In[2]:=
|
Out[2]=
|
Chop gets rid of the small imaginary part.
In[3]:=
|
Out[3]=
|
In[4]:=
|
Out[4]=
|
This defines the rule rr that converts a complex number into a list made up of its real and imaginary parts.
In[5]:=
|
You can apply the rule to all the elements of a list.
In[6]:=
|
Out[6]=
|
In[7]:=
|
Out[7]=
|
In[8]:=
|
|