Diff for /doc/homework/homework5.html between versions 1.5 and 1.6

version 1.5, 2001/06/12 21:05:31 version 1.6, 2001/06/13 19:53:03
Line 523 Line 523
     </tr>      </tr>
   
     <tr>      <tr>
                <td valign="top">map(seed;a,b,c,d;w,x,y,z)</td>
                <td valign="top">Option 1 - &amp;map($seed,[\$w,\$x,\$y,\$z],\@a) or <br> 
                     Option 2 - &amp;map($seed,\@a,[$w,$x,$y,$z]) <br>
                     where @a=('A','B','C','D') <br>
                           $w='W'<br>
                           $x='X'<br>
                           $y='Y'<br>
                           $z='Z'</td>
                <td valign="top">Assigns to the variables $w, $x, $y and $z the values of the
                     variables A, B, C and D depending on the seed. (Option 1 of calling map). 
                     In option 2, the values of $w, $x .. are mapped into the array @a. The two
                     options illustrate the different grouping.</td>
                <td valign="top">In CAPA, the arguments are divided into three groups separated
                     by a semicolon ;. In LON-CAPA, the separation is done by using [] brackets or
                     using an array @a. Note the backslash (\) before the arguments in the
                     second and third groups.</td>
       </tr>
   
   
       <tr>
                <td valign="top">rmap(seed;a,b,c,d;w,x,y,z)</td>
                <td valign="top">&amp;rmap($seed,[\$w,\$x,\$y,\$z],\@a) or <br> 
                     &amp;rmap($seed,\@a,[$w,$x,$y,$z]) <br>
                     where @a=('A','B','C','D') <br>
                           $w='W'<br>
                           $x='X'<br>
                           $y='Y'<br>
                           $z='Z'</td>
                <td valign="top">The rmap functions does the reverse action of map if the same seed
                     is used in calling map and rmap. </td>
                <td valign="top">In CAPA, the arguments are divided into three groups separated
                     by a semicolon ;. In LON-CAPA, the separation is done by using [] brackets or
                     using an array @a. Note the backslash (\) before the arguments in the
                     second and third groups.</td>
       </tr>
   
       <tr>
              <td valign="top">tex(a,b), tex("a","b")</td>               <td valign="top">tex(a,b), tex("a","b")</td>
              <td valign="top">&amp;tex($a,$b), &amp;tex("a","b")</td>               <td valign="top">&amp;tex($a,$b), &amp;tex("a","b")</td>
              <td valign="top">Returns a if the output mode is in tex otherwise               <td valign="top">Returns a if the output mode is in tex otherwise

Removed from v.1.5  
changed lines
  Added in v.1.6


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>