File:
[LON-CAPA] /
loncom /
html /
adm /
help /
tex /
Script_Functions.tex
Revision
1.5:
download - view:
text,
annotated -
select for diffs
Tue Jul 18 15:26:41 2006 UTC (18 years, 1 month ago) by
www
Branches:
MAIN
CVS tags:
version_2_3_X,
version_2_3_99_0,
version_2_3_2,
version_2_3_1,
version_2_3_0,
version_2_2_X,
version_2_2_99_1,
version_2_2_99_0,
version_2_2_2,
version_2_2_1,
version_2_2_0,
version_2_1_99_3,
version_2_1_99_2,
version_2_1_99_1,
HEAD
First name and last name functions, §ion actually only called &sec
1: \label{Script_Functions}
2:
3:
4: This is a list of functions that have been written that are available in the
5: Safe space scripting environment inside a problem:
6:
7: \begin{itemize}
8: \item sin(x), cos(x), tan(x)
9: \item asin(x), acos(x), atan(x), atan2(y,x)
10: \item log(x), log10(x)
11: \item exp(), pow(x,y), sqrt(x)
12: \item abs(x), sgn(x)
13: \item erf(x), erfc(x)
14: \item ceil(x), floor(x)
15: \item min(...), max(...)
16: \item factorial(n)
17: \item N\%M (modulo function)
18: \item sinh(x), cosh(x), tanh(x)
19: \item asinh(x), acosh(x), atanh(x)
20: \item roundto(x,n)
21: \item web({}``a'',''b'',''c'') or web(a,b,c)
22: \item html({}``a'') or html(a)
23: \item j0(x), j1(x), jn(n,x), jv(y,x)
24: \item y0(x), y1(x), yn(n,x), yv(y,x)
25: \item random
26: \item choose
27: \item tex({}``a'',''b'') or tex(a,b)
28: \item var\_in\_tex(a)
29: \item to\_string(x), to\_string(x,y)
30: \item class(), sec()
31: \item name(), firstname(), lastname(), student\_number()
32: \item check\_status(partid)
33: \item open\_date(), due\_date(), answer\_date()
34: \item sub\_string()
35: \item array\_moments(array)
36: \item format(x,y),prettyprint(x,y,target),dollarformat(x,target)
37: \item map(...)
38: \item caparesponse\_check
39: \item caparesponse\_check\_list
40: \end{itemize}
41:
42:
43: We also support these functions from Math::Cephes
44: \begin{verbatim}
45:
46: bdtr: Binomial distribution
47: bdtrc: Complemented binomial distribution
48: bdtri: Inverse binomial distribution
49: btdtr: Beta distribution
50: chdtr: Chi-square distribution
51: chdtrc: Complemented Chi-square distribution
52: chdtri: Inverse of complemented Chi-square distribution
53: fdtr: F distribution
54: fdtrc: Complemented F distribution
55: fdtri: Inverse of complemented F distribution
56: gdtr: Gamma distribution function
57: gdtrc: Complemented gamma distribution function
58: nbdtr: Negative binomial distribution
59: nbdtrc: Complemented negative binomial distribution
60: nbdtri: Functional inverse of negative binomial distribution
61: ndtr: Normal distribution function
62: ndtri: Inverse of Normal distribution function
63: pdtr: Poisson distribution
64: pdtrc: Complemented poisson distribution
65: pdtri: Inverse Poisson distribution
66: stdtr: Student's t distribution
67: stdtri: Functional inverse of Student's t distribution
68:
69: \end{verbatim}
70:
71: Please see Math::Cephes for more information
72:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>