MapleSeqSeries.mws

Sequences and Series

with graphs

>    with(plots):

>    points:=array(1..40);

points := array(1 .. 40,[])

>    for i from 1 to 40 do

>    points[i]:=(i,(4/5)^i):

>    end do:

>    pointss:=convert(points,listlist):

>    pointplot(pointss,symbol=circle,symbolsize=12,color=red);

[Maple Plot]

>    Limit((4/5)^n,n=infinity);

Limit((4/5)^n,n = infinity)

>    value(%);

0

>    sums:=array(1..40);

sums := array(1 .. 40,[])

>    for i from 1 to 40 do

>    sums[i]:=(i,sum((4/5)^n,n=1..i)):

>    end do:

>    sumss:=convert(sums,listlist):sums:=array(1..40);

sums := array(1 .. 40,[])

>    pointplot(sumss,symbol=circle,symbolsize=12,color=red);

[Maple Plot]

>    Sum((4/5)^n,n=1..40);

Sum((4/5)^n,n = 1 .. 40)

>    value(%);

36374952367638670999902737796/9094947017729282379150390625

>    evalf(%);

3.999468309

>    evalf(sum((4/5)^n,n=1..100));

3.999999999

>    evalf(sum((4/5)^n,n=1..1000));

4.000000000

>    evalf(sum((4/5)^n,n=1..infinity));

4.

>    points2:=array(1..40);

points2 := array(1 .. 40,[])

>    for i from 1 to 40 do

>    points2[i]:=(i,(2^i)/i!):

>    end do:

>    points2s:=convert(points2,listlist):

>    pointplot(points2s,symbol=circle,symbolsize=12,color=red);

[Maple Plot]

>    Limit((2^n)/n!,n=infinity);

Limit(2^n/n!,n = infinity)

>    value(%);

0

>    sums2:=array(1..40);

sums2 := array(1 .. 40,[])

>    for i from 1 to 40 do

>    sums2[i]:=(i,sum((2^n)/n!,n=1..i)):

>    end do:

>    sums2s:=convert(sums2,listlist):

>    pointplot(sums2s,symbol=circle,symbolsize=12,color=red);

[Maple Plot]

>    Sum((2^n)/n!,n=1..40);

Sum(2^n/n!,n = 1 .. 40)

>    value(%);

6321507822147044267156945148666353348/989427502946028027927982317240234375

>    evalf(%);

6.389056099

>    Sum((2^n)/n!,n=1..100);

Sum(2^n/n!,n = 1 .. 100)

>    evalf(%);

6.389056099

>    sum((2^n)/n!,n=1..infinity);

exp(2)-1

>    evalf(%);

6.389056099

>    sum((2^n)/n!,n=0..infinity);

exp(2)

>    points3:=array(1..40);

points3 := array(1 .. 40,[])

>    for i from 1 to 40 do

>    points3[i]:=(i,20*sin(i)/i^2):

>    end do:

>    points3s:=convert(points3,listlist):

>    pointplot(points3s,symbol=circle,symbolsize=12,color=red);

[Maple Plot]

>    Limit(20*sin(n)/n^2,n=infinity);

Limit(20*sin(n)/n^2,n = infinity)

>    value(%);

0

>    i:='i';

i := 'i'

>    sums3:=array(1..40);

sums3 := array(1 .. 40,[])

>    for i from 1 to 40 do

>    sums3[i]:=(i,sum(20*sin(n)/n^2,n=1..i)):

>    end do:

>    sums3s:=convert(sums3,listlist):

>    pointplot(sums3s,symbol=circle,symbolsize=12,color=red);

[Maple Plot]

>    Sum(20*sin(n)/n^2,n=1..40);

Sum(20*sin(n)/n^2,n = 1 .. 40)

>    value(%);

1/80*sin(40)+20/729*sin(27)+20*sin(1)+20/1369*sin(37)+5/361*sin(38)+5/196*sin(28)+20/841*sin(29)+20/9*sin(3)+5*sin(2)+20/441*sin(21)+1/45*sin(30)+5/4*sin(4)+4/5*sin(5)+5/144*sin(24)+5/9*sin(6)+20/961*s...
1/80*sin(40)+20/729*sin(27)+20*sin(1)+20/1369*sin(37)+5/361*sin(38)+5/196*sin(28)+20/841*sin(29)+20/9*sin(3)+5*sin(2)+20/441*sin(21)+1/45*sin(30)+5/4*sin(4)+4/5*sin(5)+5/144*sin(24)+5/9*sin(6)+20/961*s...
1/80*sin(40)+20/729*sin(27)+20*sin(1)+20/1369*sin(37)+5/361*sin(38)+5/196*sin(28)+20/841*sin(29)+20/9*sin(3)+5*sin(2)+20/441*sin(21)+1/45*sin(30)+5/4*sin(4)+4/5*sin(5)+5/144*sin(24)+5/9*sin(6)+20/961*s...

>    evalf(%);

20.29093589

>    evalf(sum(20*sin(n)/n^2,n=1..40));

20.29093589

>    evalf(sum(20*sin(n)/n^2,n=1..100));

20.27712082

>    evalf(sum(20*sin(n)/n^2,n=1..1000));

20.27918052

>    evalf(sum(20*sin(n)/n^2,n=1..10000));

20.27918266

>    evalf(sum(20*sin(n)/n^2,n=1..20000));

20.27918222

>    evalf(sum(20*sin(n)/n^2,n=1..infinity));

sum(20*sin(n)/n^2,n = 1 .. infinity)

>    points4:=array(1..40);

points4 := array(1 .. 40,[])

>    for i from 1 to 40 do

>    points4[i]:=(i,(-1)^i*(i^5/exp(i))):

>    end do:

>    points4s:=convert(points4,listlist):

>    pointplot(points4s,symbol=circle,symbolsize=12,color=red);

[Maple Plot]

>    Limit((-1)^n*(n^5/exp(n)),n=infinity);

Limit((-1)^n*n^5/exp(n),n = infinity)

>    value(%);

0

>    sums4:=array(1..40);

sums4 := array(1 .. 40,[])

>    for i from 1 to 40 do

>    sums4[i]:=(i,sum((-1)^n*(n^5/exp(n)),n=1..i)):

>    end do:

>    sums4s:=convert(sums4,listlist):sums4:=array(1..40);

sums4 := array(1 .. 40,[])

>    pointplot(sums4s,symbol=circle,symbolsize=12,color=red);

[Maple Plot]

>    sums5:=array(20..40);

sums5 := array(20 .. 40,[])

>    for i from 20 to 40 do

>    sums5[i]:=(i,sum((-1)^n*(n^5/exp(n)),n=1..i)):

>    end do:

>    sums5s:=convert(sums5,listlist):sums5:=array(20..40);

sums5 := array(20 .. 40,[])

>    pointplot(sums5s,symbol=circle,symbolsize=12,color=red);

[Maple Plot]

>    Sum((-1)^n*(n^5/exp(n)),n=1..40);

Sum((-1)^n*n^5/exp(n),n = 1 .. 40)

>    value(%);

-1/exp(1)+5153632/exp(22)-6436343/exp(23)-9765625/exp(25)+11881376/exp(26)-14348907/exp(27)-20511149/exp(29)+24300000/exp(30)-28629151/exp(31)-39135393/exp(33)+45435424/exp(34)-52521875/exp(35)-6934395...
-1/exp(1)+5153632/exp(22)-6436343/exp(23)-9765625/exp(25)+11881376/exp(26)-14348907/exp(27)-20511149/exp(29)+24300000/exp(30)-28629151/exp(31)-39135393/exp(33)+45435424/exp(34)-52521875/exp(35)-6934395...
-1/exp(1)+5153632/exp(22)-6436343/exp(23)-9765625/exp(25)+11881376/exp(26)-14348907/exp(27)-20511149/exp(29)+24300000/exp(30)-28629151/exp(31)-39135393/exp(33)+45435424/exp(34)-52521875/exp(35)-6934395...

>    evalf(%);

.51041968e-1

>    evalf(sum((-1)^n*(n^5/exp(n)),n=1..100));

.51041968e-1

>    evalf(101^5/exp(101));

.1438348738e-33

>