Annotation of loncom/html/adm/help/tex/Script_Functions.tex, revision 1.2
1.1 bowersj2 1: \label{Script_Functions}
2:
3:
1.2 ! vandui11 4: This is a list of functions that have been written that are available in the
! 5: Safe space scripting environment inside a problem:
1.1 bowersj2 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(), section()
31: \item name(), student\_number()
32: \item open\_date(), due\_date(), answer\_date()
33: \item sub\_string()
34: \item array\_moments(array)
35: \item format(x,y),prettyprint(x,y)
36: \item map(...)
37: \item caparesponse\_check
38: \item caparesponse\_check\_list
39: \end{itemize}
40:
41:
42: We also support these functions from Math::Cephes \begin{verbatim}
43:
44: bdtr: Binomial distribution
45: bdtrc: Complemented binomial distribution
46: bdtri: Inverse binomial distribution
47: btdtr: Beta distribution
48: chdtr: Chi-square distribution
49: chdtrc: Complemented Chi-square distribution
50: chdtri: Inverse of complemented Chi-square distribution
51: fdtr: F distribution
52: fdtrc: Complemented F distribution
53: fdtri: Inverse of complemented F distribution
54: gdtr: Gamma distribution function
55: gdtrc: Complemented gamma distribution function
56: nbdtr: Negative binomial distribution
57: nbdtrc: Complemented negative binomial distribution
58: nbdtri: Functional inverse of negative binomial distribution
59: ndtr: Normal distribution function
60: ndtri: Inverse of Normal distribution function
61: pdtr: Poisson distribution
62: pdtrc: Complemented poisson distribution
63: pdtri: Inverse Poisson distribution
64: stdtr: Student's t distribution
65: stdtri: Functional inverse of Student's t distribution
66:
67: \end{verbatim} Please see Math::Cephes for more information
68:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>