version 1.2, 2001/05/19 03:40:19
|
version 1.3, 2001/05/31 20:51:31
|
Line 301
|
Line 301
|
<p> |
<p> |
A list of functions that have been written that are available in |
A list of functions that have been written that are available in |
the Safe space scripting environment inside a problem. The eventual |
the Safe space scripting environment inside a problem. The eventual |
goal is to provide all of the functions available in CAPA |
goal is to provide all of the functions available in CAPA. Detailed |
|
descriptions of each function and comparison with CAPA is given in |
|
<a href="homework6.html">CAPA to LON-CAPA Functions</a>. |
</p> |
</p> |
<ul> |
<ul> |
|
<li>sin(x), cos(x), tan(x)</li> |
|
<li>asin(x), acos(x), atan(x), atan2(y,x)</li> |
|
<li>log(x), log10(x)</li> |
|
<li>exp(), pow(x,y), sqrt(x)</li> |
|
<li>abs(x), sgn(x)</li> |
|
<li>erf(x), erfc(x)</li> |
|
<li>ceil(x), floor(x)</li> |
|
<li>min(...), max(...)</li> |
|
<li>factorial(n)</li> |
|
<li>N%M</li> |
|
<li>sinh(x), cosh(x), tanh(x)</li> |
|
<li>asinh(x), acosh(x), atanh(x)</li> |
|
<li>roundto(x,n)</li> |
|
<li>web("a","b","c") or web(a,b,c)</li> |
|
<li>html("a") or html(a)</li> |
|
<li>j0(x), j1(x), jn(n,x), jv(y,x)</li> |
|
<li>y0(x), y1(x), yn(n,x), yv(y,x)</li> |
<li>random</li> |
<li>random</li> |
<li>tan</li> |
|
<li>atan</li> |
|
<li>acos</li> |
|
<li>asin</li> |
|
<li>log10</li> |
|
<li>pow</li> |
|
<li>ceil</li> |
|
<li>floor</li> |
|
<li>format</li> |
|
<li>map</li> |
|
<li>choose</li> |
<li>choose</li> |
|
<li>tex("a","b") or tex(a,b)</li> |
|
<li>var_in_tex(a)</li> |
|
<li>to_string(x), to_string(x,y)</li> |
|
<li>class(), section()</li> |
|
<li>name(), student_number()</li> |
|
<li>open_date(), due_date(), answer_date()</li> |
|
<li>sub_string()</li> |
|
<li>array_moments(array)</li> |
|
<li>format(x,y)</li> |
|
<li>map(...)</li> |
<li>caparesponse_check</li> |
<li>caparesponse_check</li> |
<li>caparesponse_check_list</li> |
<li>caparesponse_check_list</li> |
</ul> |
</ul> |
Line 342
|
Line 361
|
seed the random number generator |
seed the random number generator |
</li> |
</li> |
<li>$pi - set to PI </li> |
<li>$pi - set to PI </li> |
|
<li>$rad2deg - converts radians to degrees </li> |
|
<li>$deg2rad - converts degrees to radians </li> |
</ul> |
</ul> |
|
|
<hr> |
<hr> |