version 1.8, 2001/07/13 16:15:01
|
version 1.12, 2001/12/07 15:05:03
|
Line 122
|
Line 122
|
<i>value</i> of a <foil>can only be "true" or |
<i>value</i> of a <foil>can only be "true" or |
"false" or "unused" |
"false" or "unused" |
</li> |
</li> |
|
<li> |
|
<b><dataresponse></b> implements a straight data |
|
storage entry idea, needs and interveing input tag like |
|
<textline> to work correctly.<br> |
|
Arguments: |
|
<ul> |
|
<li> |
|
<i>name</i> internal name for the value, it will have |
|
the part id and respose id added on to it |
|
</li> |
|
<li> |
|
<i>type</i> type of data stored in this response |
|
field, should be one of the types supported by |
|
parameter.html |
|
</li> |
|
<li> |
|
<i>display</i> a string that will be used to describe |
|
the field when interfacing with humans |
|
</li> |
|
</ul> |
|
<li> |
</ul> |
</ul> |
<li> |
<li> |
<a name="foil">Foil Structure Tags</a> |
<a name="foil">Foil Structure Tags</a> |
Line 215
|
Line 236
|
<b><window></b> the text in between is put in a |
<b><window></b> the text in between is put in a |
popup javascript window |
popup javascript window |
</li> |
</li> |
|
<li> |
|
<b><m></b> the inside text is LaTeX, and is |
|
converted to HTML (or MathML) on the fly, if the argument |
|
<i>eval</i> is set to "on" the intervening text will have |
|
a perl var expansion done to it before being converted. |
|
</li> |
</ul> |
</ul> |
</li> |
</li> |
<li> |
<li> |
Line 365
|
Line 392
|
<td valign="top"><b>Differences (if any)</b</td> |
<td valign="top"><b>Differences (if any)</b</td> |
</tr> |
</tr> |
|
|
<tr> |
|
<td valign="top">sin(x), cos(x), tan(x)</td> |
|
<td valign="top">&sin($x), &cos($x), &tan($x)</td> |
|
<td valign="top">Trigonometric functions where x is in radians. $x |
|
can be a pure number, i.e., you can call &sin(3.1415)</td> |
|
<td valign="top"> </td> |
|
</tr> |
|
|
|
<tr> |
<tr> |
<td valign="top">sin(x), cos(x), tan(x)</td> |
<td valign="top">sin(x), cos(x), tan(x)</td> |
<td valign="top">&sin($x), &cos($x), &tan($x)</td> |
<td valign="top">&sin($x), &cos($x), &tan($x)</td> |
Line 472
|
Line 491
|
</tr> |
</tr> |
|
|
<tr> |
<tr> |
|
<td valign="top">/DIS($x,"nn")</td> |
|
<td valign="top">&format($x,"nn")</td> |
|
<td valign="top">Display or format $x as nn where nn is nF or nE and n is an integer.</td> |
|
<td valign="top"> The difference is obvious.</td> |
|
</tr> |
|
|
|
<tr> |
<td valign="top">roundto(x,n)</td> |
<td valign="top">roundto(x,n)</td> |
<td valign="top">&roundto($x,$n)</td> |
<td valign="top">&roundto($x,$n)</td> |
<td valign="top">Rounds a real number to n decimal points. $x and |
<td valign="top">Rounds a real number to n decimal points. $x and |
Line 537
|
Line 563
|
</tr> |
</tr> |
|
|
<tr> |
<tr> |
<td valign="top">map(seed;a,b,c,d;w,x,y,z)</td> |
<td valign="top">/MAP(seed;w,x,y,z;a,b,c,d)</td> |
<td valign="top">Option 1 - &map($seed,[\$w,\$x,\$y,\$z],[$a,$b,$c,$d]) or <br> |
<td valign="top">Option 1 - &map($seed,[\$w,\$x,\$y,\$z],[$a,$b,$c,$d]) or <br> |
Option 2 - &map($seed,\@mappedArray,[$a,$b,$c,$d]) <br> |
Option 2 - &map($seed,\@mappedArray,[$a,$b,$c,$d]) <br> |
Option 3 - @mappedArray = &map($seed,[$a,$b,$c,$d]) <br> |
Option 3 - @mappedArray = &map($seed,[$a,$b,$c,$d]) <br> |
Line 574
|
Line 600
|
$w, $x, $y, and $z are variables</td> |
$w, $x, $y, and $z are variables</td> |
<td valign="top">The rmap functions does the reverse action of map if the same seed |
<td valign="top">The rmap functions does the reverse action of map if the same seed |
is used in calling map and rmap. </td> |
is used in calling map and rmap. </td> |
<td valign="top">In CAPA, the arguments are divided into three groups separated |
<td valign="top">In CAPA, the arguments are divided into |
by a semicolon ;. In LON-CAPA, the separation is done by using [] brackets or |
three groups separated by a semicolon ;. In LON-CAPA, the |
using an array @a. Note the backslash (\) before the arguments in the |
separation is done by using [] brackets (with create an |
second and third groups.</td> |
unamed vector reference) or using an array @a. Note the |
|
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).</td> |
</tr> |
</tr> |
|
|
<tr> |
<tr> |
Line 781
|
Line 811
|
<td valign="top">New to LON-CAPA</td> |
<td valign="top">New to LON-CAPA</td> |
</tr> |
</tr> |
<tr> |
<tr> |
<td valign="top">NOT IMPLEMENTED IN CAPA</td> |
<td valign="top">NOT DOCUMENTED IN CAPA</td> |
<td valign="top">@return_array=&random_multivariate_normal ($item_cnt,$seed,@mean,@covar) <br> |
<td valign="top">@return_array=&random_multivariate_normal ($item_cnt,$seed,\@mean,\@covar) <br> |
NOTE: @mean should be a length p array of real numbers. @covar should be a length |
NOTE: @mean should be of length p array of real numbers. @covar should be a length |
p array of references to length p arrays or real numbers (i.e. a p by p matrix.</td> |
p array of references to length p arrays of real numbers (i.e. a p by p matrix.</td> |
<td valign="top">Generate $item_cnt deviates of multivariate_normal distribution with |
<td valign="top">Generate $item_cnt deviates of multivariate_normal distribution with |
mean vector @mean and variance-covariance matrix. </td> |
mean vector @mean and variance-covariance matrix. </td> |
<td valign="top">New to LON-CAPA</td> |
<td valign="top">Note the backslash before the @mean and @covar arrays.</td> |
</tr> |
</tr> |
<tr> |
<tr> |
<td valign="top">NOT IMPLEMENTED IN CAPA</td> |
<td valign="top">NOT IMPLEMENTED IN CAPA</td> |
Line 876
|
Line 906
|
<address><a href="mailto:albertel@marvin.lite.msu.edu">Guy Albertelli</a></address> |
<address><a href="mailto:albertel@marvin.lite.msu.edu">Guy Albertelli</a></address> |
<!-- Created: Thu May 17 15:05:35 EDT 2001 --> |
<!-- Created: Thu May 17 15:05:35 EDT 2001 --> |
<!-- hhmts start --> |
<!-- hhmts start --> |
Last modified: Fri Jul 13 12:10:52 EDT 2001 |
Last modified: Fri Dec 7 10:03:55 EST 2001 |
<!-- hhmts end --> |
<!-- hhmts end --> |
</body> |
</body> |
</html> |
</html> |