Message Boards Message Boards

0
|
4879 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

Complex numbers display incorrect

Posted 9 years ago

Hi, I am a new user of mathematica. I was trying some functions to get familiar with mathematica. After that, when I input I (imaginary unit), the output only display a red rectangle. And I found, all complex numbers displayed a red rectangle. I can only restart mathematica to solve this problem. So, I want to know how to solve this problem and what cause it. Thanks!

POSTED BY: Qy Liu
2 Replies

You can visualize complex numbers on the plane:

Graphics[Point[ReIm[{I, 2 - I, I^2, 0}]], Frame -> True]

with Mathematica 10.1 syntax, or

Graphics[Point[Map[{Re[#], Im[#]} &, {I, 2 - I, I^2, 0}]], 
 Frame -> True]

with older syntax.

POSTED BY: Gianluca Gorni
Posted 9 years ago

In Mathematica, the imaginary i is I (capital i), or esc+i+i+esc, or

Complex[0,1]

An example:

In[12]:= Sin[2. + 3. I]

Out[12]= 9.1545 - 4.16891 I

or:

In[14]:= Sin[Complex[2., 3]]

Out[14]= 9.1545 - 4.16891 I
POSTED BY: Erik Mahieu
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract