Mathedu Courses logo

Mathedu Courses

If you see this, something is wrong

Table of contents

First published on Tuesday, Feb 24, 2026 and last modified on Tuesday, Feb 24, 2026

Lecture 7 - Draw a sequence

Fabienne Chaplais Email

1 Lecture 7

from numpy import *
from matplotlib.pyplot import *
from numpy import *
from matplotlib.pyplot import *

u=zeros([101])
v=zeros([101])
for n in arange(101):
    u[n]=n 
    v[n]=2*n 

w=zeros([50])
for n in arange(50):
    w[n]=1/(n+1)
from numpy import *
from matplotlib.pyplot import *
from numpy import *
from matplotlib.pyplot import *

for n in arange(101):
    u[n]=n 
    v[n]=2*n 
figure()
plot(u)
plot(v)
grid()
title('$u_n$ = n, $v_n$ = 2n')
from numpy import *
from matplotlib.pyplot import *

for n in arange(101):
    u[n]=n 
    v[n]=2*n 
figure()
plot(u)
plot(v)
grid()
title('$u_n$ = n, $v_n$ = 2n')

w=zeros([50])
for n in arange(50):
    w[n]=1/(n+1)
figure()
plot(w)
grid()
title('$w_n$ = 1/(n+1)')
from numpy import *
from matplotlib.pyplot import *

u=arange(101)
v=2*arange(101)
figure()
plot(u)
plot(v)
grid()
title('$u_n$ = n, $v_n$ = 2n')

w=1/arange(1,51)
figure()
plot(w)
grid()
title('$w_n$ = 1/(n+1)')

Discussion: login to participate.