Subversion Repositories wimsdev

Rev

Rev 5920 | Rev 11210 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5920 Rev 5921
Line 1... Line 1...
1
!! +var+ +exec+ +string+
1
!! +var+ +exec+ +string+
2
$lst_tit recursion$lst_titend$type_both
2
$lst_tit recursion$lst_titend$type_both
3
  $(lst_syntax)recursion $emph fn$emphend for $emph v$emphend=$emph v1$emphend
3
  $(lst_syntax)recursion $emph fn$emphend for $emph v$emphend=$emph v1$emphend
4
  to $emph v2$emphend [step $emph st $emphend], or <br/>
4
  to $emph v2$emphend [step $emph st $emphend], or <br/>
5
$ !recursion $emph fn$emphend for $emph v$emphend in
5
$ !recursion $emph fn$emphend for $emph v$emphend in
6
  $emph v1,v2,v3,...$emphend</tt>
6
  $emph v1,v2,v3,...$emphend</span>
7
  $lst_mean Computes the outcome of a recursion using the function
7
  $lst_mean Computes the outcome of a recursion using the function
8
  $emph fn$emphend in which the
8
  $emph fn$emphend in which the
9
  variable $emph v $emphend is replaced successively by values $emph v1$emphend,
9
  variable $emph v $emphend is replaced successively by values $emph v1$emphend,
10
  ..., $emph v2$emphend. <p>
10
  ..., $emph v2$emphend. <p>
11
  In the second syntax, the values are given with respect to each item in
11
  In the second syntax, the values are given with respect to each item in
12
  the list $emph v1,v2,...$emphend. <p>
12
  the list $emph v1,v2,...$emphend. <p>
13
  The function $emph fn$emphend should use the variable $emph last$emphend
13
  The function $emph fn$emphend should use the variable $emph last$emphend
14
  to indicate the value of the previous recursion step.
14
  to indicate the value of the previous recursion step.
15
  And the starting value can be put into the WIMS variable
15
  And the starting value can be put into the WIMS variable
16
  <tt>$$recursion_start</tt>.
16
  <span class="tt">$$recursion_start</span>.
17
  </p>
17
  </p>