--- 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/27 14:20:01 1.3
@@ -43,13 +43,13 @@ sinh(x), cosh(x), tanh(x) & \&sinh(\$x)
asinh(x), acosh(x), atanh(x) & \&asinh(\$x), \&acosh(\$x), \&atanh(\$x) & \\
\hline
-/DIS(\$x,''nn'') & \&format(\$x,''nn'') & The difference is obvious. \\
+/DIS(\$x,''nn'') & \&format(\$x,'nn') & The difference is obvious. \\
\hline
-Not in CAPA & \&prettyprint(\$x,''nn'') & \\
+Not in CAPA & \&prettyprint(\$x,'nn') & \\
\hline
-Not in CAPA & \&dollarformat(\$x & \\
+Not in CAPA & \&dollarformat(\$x) & \\
\hline
roundto(x,n) & \&roundto(\$x,\$n) & \\
@@ -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