version 1.7, 2001/06/14 21:26:06
|
version 1.9, 2001/07/27 18:13:57
|
Line 62
|
Line 62
|
the response to go in. It checks all styles of numerical |
the response to go in. It checks all styles of numerical |
supported in CAPA. Possible args are: |
supported in CAPA. Possible args are: |
<ul> |
<ul> |
<li><i>answer</i> required, specifies the correct answer, must be a perl list</li> |
<li><i>answer</i> required, specifies the correct answer, may be either a perl list or scalar</li> |
<li><i>type</i> optional, CAPA style str args, cs/ci/mc</li> |
|
<li><i>units</i> optional, specifies unit of correct answer, CAPA style</li> |
<li><i>units</i> optional, specifies unit of correct answer, CAPA style</li> |
</ul> |
</ul> |
</li> |
</li> |
<li> |
<li> |
|
<b><stringresponse></b> implements a string answer, |
|
it needs an internal <b><textline></b> for the |
|
response to go in. It can check the string for either case |
|
or order. |
|
<ul> |
|
<li><i>answer</i> required, specifies the correct answer, may be either a perl list or scalar</li> |
|
<li><i>type</i> optional, CAPA style str args, cs/ci/mc |
|
<ul> |
|
<li>cs - case senesitive, order important</li> |
|
<li>ci - case insenesitive, order important</li> |
|
<li>mc - case insenesitive, order unimportant</li> |
|
</ul> |
|
</li> |
|
</ul> |
|
<li> |
<b><essayresponse></b> implements a ungraded large |
<b><essayresponse></b> implements a ungraded large |
text response, it need an internal <b><textarea></b> |
text response, it need an internal <b><textarea></b> |
for the response to go in. |
for the response to go in. |
Line 351
|
Line 365
|
<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 458
|
Line 464
|
</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 565
|
Line 578
|
using an array @a. Note the backslash (\) before the arguments in the |
using an array @a. Note the backslash (\) before the arguments in the |
second and third groups.</td> |
second and third groups.</td> |
</tr> |
</tr> |
|
|
|
<tr> |
|
<td valign="top">NOT IMPLEMENTED IN CAPA</td> |
|
<td valign="top">$a=&xmlparse($string) </td> |
|
<td valign="top">Runs the internal parser over the |
|
argument parsing for display. <b>Warning</b> This will |
|
result in different strings in different targets. Don't use |
|
the results of this function as an answer.</td> |
|
<td valign="top">New to LON-CAPA</td> |
|
</tr> |
|
|
<tr> |
<tr> |
<td valign="top">tex(a,b), tex("a","b")</td> |
<td valign="top">tex(a,b), tex("a","b")</td> |
Line 757
|
Line 780
|
<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 852
|
Line 875
|
<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: Tue June 12 15:25 EDT 2001 |
Last modified: Fri Jul 13 12:10:52 EDT 2001 |
<!-- hhmts end --> |
<!-- hhmts end --> |
</body> |
</body> |
</html> |
</html> |