Annotation of loncom/html/adm/help/tex/Script_Functions.tex, revision 1.3

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() 
1.3     ! albertel   32: \item check\_status(partid)
1.1       bowersj2   33: \item open\_date(), due\_date(), answer\_date() 
                     34: \item sub\_string() 
                     35: \item array\_moments(array) 
1.3     ! albertel   36: \item format(x,y),prettyprint(x,y,target),dollarformat(x,target) 
1.1       bowersj2   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 \begin{verbatim}
                     44: 
                     45:  bdtr:  Binomial distribution
                     46:  bdtrc:  Complemented binomial distribution
                     47:  bdtri:  Inverse binomial distribution
                     48:  btdtr:  Beta distribution
                     49:  chdtr:  Chi-square distribution
                     50:  chdtrc:  Complemented Chi-square distribution
                     51:  chdtri:  Inverse of complemented Chi-square distribution
                     52:  fdtr:  F distribution
                     53:  fdtrc:  Complemented F distribution
                     54:  fdtri:  Inverse of complemented F distribution
                     55:  gdtr:  Gamma distribution function
                     56:  gdtrc:  Complemented gamma distribution function
                     57:  nbdtr:  Negative binomial distribution
                     58:  nbdtrc:  Complemented negative binomial distribution
                     59:  nbdtri:  Functional inverse of negative binomial distribution
                     60:  ndtr:  Normal distribution function
                     61:  ndtri:  Inverse of Normal distribution function
                     62:  pdtr:  Poisson distribution
                     63:  pdtrc:  Complemented poisson distribution
                     64:  pdtri:  Inverse Poisson distribution
                     65:  stdtr:  Student's t distribution
                     66:  stdtri:  Functional inverse of Student's t distribution
                     67: 
                     68: \end{verbatim} Please see Math::Cephes for more information 
                     69: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>