EnglishFrenchGermanSpainItalianDutchPortugueseRussianKoreanJapaneseArabic Chinese Simplified

Monday, April 18, 2011

RECCURENCE RELATION

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)
 
 

Artikel Terkait:

Comments :

0 comments to “RECCURENCE RELATION”

Post a Comment

 

Copyright © 2009 by Learn Technology

Template by Blogger Templates | Powered by Blogger