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

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) 
1.6       www        20: \item roundto(x,n)
1.10      www        21: \item cas(s,e,l) 
1.1       bowersj2   22: \item web({}``a'',''b'',''c'') or web(a,b,c) 
                     23: \item html({}``a'') or html(a) 
                     24: \item j0(x), j1(x), jn(n,x), jv(y,x) 
                     25: \item y0(x), y1(x), yn(n,x), yv(y,x) 
                     26: \item random 
                     27: \item choose 
                     28: \item tex({}``a'',''b'') or tex(a,b) 
                     29: \item var\_in\_tex(a) 
                     30: \item to\_string(x), to\_string(x,y) 
1.11      www        31: \item class(), sec(), classid() 
                     32: \item name(), firstname(), middlename(), lastname(), student\_number()
1.3       albertel   33: \item check\_status(partid)
1.8       www        34: \item open\_date(partid), due\_date(partid), answer\_date(partid) 
1.9       www        35: \item open\_date\_epoch(partid), due\_date\_epoch(partid), answer\_date\_epoch(partid)
                     36: \item submission(partid,responseid,version)
                     37: \item currentpart()
1.1       bowersj2   38: \item sub\_string() 
                     39: \item array\_moments(array) 
1.3       albertel   40: \item format(x,y),prettyprint(x,y,target),dollarformat(x,target) 
1.7       albertel   41: \item languages
1.1       bowersj2   42: \item map(...) 
                     43: \item caparesponse\_check 
                     44: \item caparesponse\_check\_list
1.12      www        45: \item parameter\_setting(name,partid)
                     46: \item stored\_data(name,partid)
1.13    ! www        47: \item wrong\_bubbles(correct,lower,upper,step,\@given)
1.1       bowersj2   48: \end{itemize}
                     49: 
                     50: 
1.4       albertel   51: We also support these functions from Math::Cephes 
                     52: \begin{verbatim}
1.1       bowersj2   53: 
                     54:  bdtr:  Binomial distribution
                     55:  bdtrc:  Complemented binomial distribution
                     56:  bdtri:  Inverse binomial distribution
                     57:  btdtr:  Beta distribution
                     58:  chdtr:  Chi-square distribution
                     59:  chdtrc:  Complemented Chi-square distribution
                     60:  chdtri:  Inverse of complemented Chi-square distribution
                     61:  fdtr:  F distribution
                     62:  fdtrc:  Complemented F distribution
                     63:  fdtri:  Inverse of complemented F distribution
                     64:  gdtr:  Gamma distribution function
                     65:  gdtrc:  Complemented gamma distribution function
                     66:  nbdtr:  Negative binomial distribution
                     67:  nbdtrc:  Complemented negative binomial distribution
                     68:  nbdtri:  Functional inverse of negative binomial distribution
                     69:  ndtr:  Normal distribution function
                     70:  ndtri:  Inverse of Normal distribution function
                     71:  pdtr:  Poisson distribution
                     72:  pdtrc:  Complemented poisson distribution
                     73:  pdtri:  Inverse Poisson distribution
                     74:  stdtr:  Student's t distribution
                     75:  stdtri:  Functional inverse of Student's t distribution
                     76: 
1.4       albertel   77: \end{verbatim}
                     78: 
                     79:  Please see Math::Cephes for more information 
1.1       bowersj2   80: 

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