how to plot sequence of partial sums in Maple

2.8k Views Asked by At

I've seen other questions and tried to use internet and the built-in help but I'm still at a loss.

Given the sequence seq((n,1/2^n),n..20)), I want to plot the corresponding sequence of partial sums, but I can't figure out how.

I have:

with(plots):
PartialSums([seq(1/2^n, n = 1 .. 20)]) 

And that gives me the sequence, but how do I plot it with respect to n?

1

There are 1 best solutions below

3
On BEST ANSWER
L := ListTools:-PartialSums([seq(1/2^n, n = 1 .. 20)]):

plots:-listplot(L);