Message Boards Message Boards

0
|
6557 Views
|
4 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Sum over random number?

Posted 8 years ago

Total[Table[E^(I 2 [Pi] RandomReal[]), 10000]]

Hi, I wrote this code to generate a series of complex number, e^i2??, and ? is between 0 to 1. Then, I sum them up. I expect the result should be very close to zero, but the value calculation giving me is a little large around +- 100.

Is my idea wrong?

Thanks

POSTED BY: ChiaWei Tu
4 Replies

Hello,

this is the Mean, not the total, which should convege to zero (Weyl's criterion).

Claude

POSTED BY: Claude Mante
Posted 8 years ago

You are right. My series is not converged. I know where the problem is now.

POSTED BY: ChiaWei Tu

You can think of it as doing a random walk in the complex plane with unit steps and random directions every step. Doesn't mean you always end up where you started.

POSTED BY: Kay Herbert
Posted 8 years ago

This is a good point of view. Thx.

POSTED BY: ChiaWei Tu
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