Buzen's algorithm: Difference between revisions

Content deleted Content added
m Task 70: Update syntaxhighlight tags - remove use of deprecated <source> tags
Line 35:
It will be assumed that the ''X<sub>m</sub>'' have been computed by solving the relevant equations and are available as an input to our routine. Although ''g'' is in principle a two dimensional matrix, it can be computed in a column by column fashion starting from the leftmost column. The routine uses a single column vector ''C'' to represent the current column of ''g''.
 
<sourcesyntaxhighlight lang="pascal">
C[0] := 1
for n := 1 step 1 until N do
Line 43:
for n := 1 step 1 until N do
C[n] := C[n] + X[m]*C[n-1];
</syntaxhighlight>
</source>
 
At completion, ''C'' contains the desired values ''G(0), G(1)'' to ''G(N)''. <ref name="buzen-1973" />