Group Abstract Group Abstract

Message Boards Message Boards

0
|
3.3K Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:

How can I display complex numbers as x+iy rather than Re^(i \theta)?

Posted 5 years ago
POSTED BY: Andrew Projansky
3 Replies

In your Table you should use E to get the exponential function.

And you may want to have a look at this

n = 5;
mat = Table[(E^(2 I Pi/n))^(i*j), {i, 0, n - 1}, {j, 0, n - 1}];
dd = Det[mat]
dd1 = dd /. a_. Exp[b_ Complex[0, x_] ] -> a (Cos[x b] + Im Sin[x b])
dd1 // Expand
dd // FullSimplify
POSTED BY: Hans Dolhaine

Worked like a charm. Thank you!

POSTED BY: Andrew Projansky
Posted 5 years ago
POSTED BY: Bill Nelson
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard