use the iteration scheme for a SERIES of ISSUES the formula can be expressed in relationship/recurring relationship, which concerns the issue of accuracy of the representation of numbers on a computer.
Example :Lineup : 1,2,3,4,5,...,n
Algorithm lineup
Deklarasi
i,n : integer
Deskripsi
input(n)
i<1
s<0
while (i<=n) do
output(i)
ißi+1
endwhile
The series S = 1 + 2 + 3 + 4 + 5 + ... + n
The Algorithm To Calculate The series
The Declaration Of i, S, n: integer Description input (n) i< 1 S < 0 while (i < = n) do outputs (i) S S + 1 i i + 1 endwhile output (S) |
Comments :
0 comments to “RECCURENCE RELATION”
Post a Comment