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

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: 
1.4     ! albertel   43: We also support these functions from Math::Cephes 
        !            44: \begin{verbatim}
1.1       bowersj2   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: 
1.4     ! albertel   69: \end{verbatim}
        !            70: 
        !            71:  Please see Math::Cephes for more information 
1.1       bowersj2   72: 

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