Subversion Repositories wimsdev

Rev

Rev 5766 | Rev 5921 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. !! +var+ +exec+ +string+
  2. $lst_tit makelist$lst_titend$type_both
  3.   $(lst_syntax)makelist $emph templ$emphend for $emph v$emphend=$emph v1$emphend
  4.   to $emph v2$emphend [step $emph st $emphend], or <br/>
  5. $ !makelist $emph templ$emphend for $emph v$emphend in
  6.   $emph v1,v2,v3,...$emphend</tt>
  7.   $lst_mean Outputs a list consisting of $emph templ$emphend with
  8.   variable $emph v $emphend successively substituted by values $emph v1$emphend,
  9.   ..., $emph v2$emphend. <p>
  10.   In the second syntax, the substitutions are done with respect to each item in
  11.   the list $emph v1,v2,...$emphend. </p><p>
  12.   The variable $emph v $emphend should appear in $emph templ $emphend
  13.   as a math variable (that is, with no preceeding character). </p><p>
  14.   For example, the command</p>
  15. <pre>!makelist [x;x+1;xx] for x in a,x and y,1,(2,3)</pre>
  16.   gives the result
  17.   <pre>
  18.   !makelist [x;x+1;xx] for x in a,x and y,1,(2,3)
  19.   </pre>
  20.