$$\sum_{n=1}^{N} e^{2\pi in\sqrt2}$$
We have to use Accumulate
and ListLinePlot
, and my implementation so far with upper bound 50 (any upper bound is fine) is having trouble with the complex number. I tried to use Relm
, but same thing happens.
Sums= Accumulate[e^(2*pi*I*#*sqrt[2]) & /@ Range[50]];
ListLinePlot[Sums, PlotRange -> All, Filling -> Axis]