File:  [LON-CAPA] / loncom / html / adm / help / tex / Script_Functions.tex
Revision 1.6: download - view: text, annotated - select for diffs
Sun May 20 21:07:02 2007 UTC (17 years, 3 months ago) by www
Branches: MAIN
CVS tags: version_2_5_X, version_2_5_2, version_2_5_1, version_2_5_0, version_2_4_X, version_2_4_99_0, version_2_4_2, version_2_4_1, version_2_4_0, HEAD
Document &cas()

    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 cas(s,e) 
   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) 
   31: \item class(), sec() 
   32: \item name(), firstname(), lastname(), student\_number()
   33: \item check\_status(partid)
   34: \item open\_date(), due\_date(), answer\_date() 
   35: \item sub\_string() 
   36: \item array\_moments(array) 
   37: \item format(x,y),prettyprint(x,y,target),dollarformat(x,target) 
   38: \item map(...) 
   39: \item caparesponse\_check 
   40: \item caparesponse\_check\_list
   41: \end{itemize}
   42: 
   43: 
   44: We also support these functions from Math::Cephes 
   45: \begin{verbatim}
   46: 
   47:  bdtr:  Binomial distribution
   48:  bdtrc:  Complemented binomial distribution
   49:  bdtri:  Inverse binomial distribution
   50:  btdtr:  Beta distribution
   51:  chdtr:  Chi-square distribution
   52:  chdtrc:  Complemented Chi-square distribution
   53:  chdtri:  Inverse of complemented Chi-square distribution
   54:  fdtr:  F distribution
   55:  fdtrc:  Complemented F distribution
   56:  fdtri:  Inverse of complemented F distribution
   57:  gdtr:  Gamma distribution function
   58:  gdtrc:  Complemented gamma distribution function
   59:  nbdtr:  Negative binomial distribution
   60:  nbdtrc:  Complemented negative binomial distribution
   61:  nbdtri:  Functional inverse of negative binomial distribution
   62:  ndtr:  Normal distribution function
   63:  ndtri:  Inverse of Normal distribution function
   64:  pdtr:  Poisson distribution
   65:  pdtrc:  Complemented poisson distribution
   66:  pdtri:  Inverse Poisson distribution
   67:  stdtr:  Student's t distribution
   68:  stdtri:  Functional inverse of Student's t distribution
   69: 
   70: \end{verbatim}
   71: 
   72:  Please see Math::Cephes for more information 
   73: 

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