Tutorial 1
Tutorial 1
.
The "i=" part underneath the summation sign tells you which
number to first plug into the given expression. The number on top of
the summation sign tells you the last number to plug into the given
expression. You always increase by one at each successive step. For
example,
= 3 + 6 + 11 + 18
= 38 .
We will need the following well-known summation rules.
1.
2.
3.
(n times) = cn,
where c is a
constant.
4.
PROBLEM 1 : Evaluate
PROBLEM 2 : Evaluate
PROBLEM 3 : Evaluate
PROBLEM 4 : Evaluate
SOLUTION 1 :
: SOLUTION 2
The above step is nothing more than changing the order and )
(.grouping of the original summation
15,150 + 400 =
. 15,550 =
: SOLUTION 3
: SOLUTION 4
. 45,016 =
P2
P2 ref to
P1*
P1
P1 ref to
null
null
null
10
20
10
21
20
0
2
5
1
0
2
5
1
0
2
5
1
A
10
Initialization
10
P1=&A
10
;P2=&C
20
;++P1=(*P2)*
21
21
15
21
15
15
90
16
90
16
84
135
0
84
A
A
1
2
5
1
1
2
5
1
5
1
20
;P1=P2
20
;P2=&B
20
;P1-=*P2*
20
;P1*=*P2*
5
1
0
9
5
1
135
0
9
6
1
0
135
0
9
6
8
84
;A=(*P2)++ * *P1
;P1=&A
;P2=*P1/=*P2*