--- loncom/html/adm/help/tex/CAPA_LON-CAPA_function_diffs.tex 2003/06/10 15:24:24 1.1 +++ loncom/html/adm/help/tex/CAPA_LON-CAPA_function_diffs.tex 2003/06/10 15:27:06 1.2 @@ -74,25 +74,25 @@ choose(i,...) & \&choose(\$i,...) &   \hline /MAP(seed;w,x,y,z;a,b,c,d) & \parbox{6.49cm}{ -Option 1 - \&map(\$seed,[$\backslash$\$w,$\backslash$\$x,$\backslash$\$y,$\backslash$\$z],[\$a,\$b,\$c,\$d]) or !! - Option 2 - \&map(\$seed,$\backslash$@mappedArray,[\$a,\$b,\$c,\$d]) !! - Option 3 - @mappedArray = \&map(\$seed,[\$a,\$b,\$c,\$d]) !! - Option 4 - (\$w,\$x,\$y,\$z) = \&map(\$seed,$\backslash$@a) !! - where \$a='A'!! - \$b='B'!! - \$c='B'!! - \$d='B'!! +Option 1 - \&map(\$seed,[$\backslash$\$w,$\backslash$\$x,$\backslash$\$y,$\backslash$\$z],[\$a,\$b,\$c,\$d]) or \\ + Option 2 - \&map(\$seed,$\backslash$@mappedArray,[\$a,\$b,\$c,\$d]) \\ + Option 3 - @mappedArray = \&map(\$seed,[\$a,\$b,\$c,\$d]) \\ + Option 4 - (\$w,\$x,\$y,\$z) = \&map(\$seed,$\backslash$@a) \\ + where \$a='A'\\ + \$b='B'\\ + \$c='B'\\ + \$d='B'\\ \$w, \$x, \$y, and \$z are variables } & 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 ($\backslash$) before the arguments in the second and third groups. \\ \hline -rmap(seed;a,b,c,d;w,x,y,z) & \parbox{6.49cm}{Option 1 - \&rmap(\$seed,[$\backslash$\$w,$\backslash$\$x,$\backslash$\$y,$\backslash$\$z],[\$a,\$b,\$c,\$d]) or !! - Option 2 - \&rmap(\$seed,$\backslash$@rmappedArray,[\$a,\$b,\$c,\$d]) !! - Option 3 - @rmapped\_array = \&rmap(\$seed,[\$a,\$b,\$c,\$d]) !! - Option 4 - (\$w,\$x,\$y,\$z) = \&rmap(\$seed,$\backslash$@a) !! - where \$a='A'!! - \$b='B'!! - \$c='B'!! - \$d='B'!! +rmap(seed;a,b,c,d;w,x,y,z) & \parbox{6.49cm}{Option 1 - \&rmap(\$seed,[$\backslash$\$w,$\backslash$\$x,$\backslash$\$y,$\backslash$\$z],[\$a,\$b,\$c,\$d]) or \\ + Option 2 - \&rmap(\$seed,$\backslash$@rmappedArray,[\$a,\$b,\$c,\$d]) \\ + Option 3 - @rmapped\_array = \&rmap(\$seed,[\$a,\$b,\$c,\$d]) \\ + Option 4 - (\$w,\$x,\$y,\$z) = \&rmap(\$seed,$\backslash$@a) \\ + where \$a='A'\\ + \$b='B'\\ + \$c='B'\\ + \$d='B'\\ \$w, \$x, \$y, and \$z are variables } & In CAPA, the arguments are divided into three groups separated by a semicolon ;. In LON-CAPA, the separation is done by using [] brackets (with create an unamed vector reference) or using an array @a. Note the backslash ($\backslash$) before the arguments in the second and third groups (Which cause Perl to send to variable locations rather than the variable values, similar to a C pointer). \\ \hline