File:  [LON-CAPA] / loncom / html / adm / help / tex / Script_Functions.tex
Revision 1.10: download - view: text, annotated - select for diffs
Sat Jun 14 16:41:34 2008 UTC (16 years, 2 months ago) by www
Branches: MAIN
CVS tags: version_2_9_X, version_2_9_99_0, version_2_9_1, version_2_9_0, version_2_8_X, version_2_8_99_1, version_2_8_99_0, version_2_8_2, version_2_8_1, version_2_8_0, version_2_7_X, version_2_7_99_1, version_2_7_99_0, version_2_7_1, version_2_7_0, version_2_6_99_1, version_2_6_99_0, version_2_10_0_RC2, version_2_10_0_RC1, version_2_10_0, bz6209-base, bz6209, bz5969, bz2851, PRINT_INCOMPLETE_base, PRINT_INCOMPLETE, HEAD, GCI_3, GCI_2, GCI_1, BZ5971-printing-apage, BZ5434-fox
Document library argument to 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,l) 
   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(partid), due\_date(partid), answer\_date(partid) 
   35: \item open\_date\_epoch(partid), due\_date\_epoch(partid), answer\_date\_epoch(partid)
   36: \item submission(partid,responseid,version)
   37: \item currentpart()
   38: \item sub\_string() 
   39: \item array\_moments(array) 
   40: \item format(x,y),prettyprint(x,y,target),dollarformat(x,target) 
   41: \item languages
   42: \item map(...) 
   43: \item caparesponse\_check 
   44: \item caparesponse\_check\_list
   45: \end{itemize}
   46: 
   47: 
   48: We also support these functions from Math::Cephes 
   49: \begin{verbatim}
   50: 
   51:  bdtr:  Binomial distribution
   52:  bdtrc:  Complemented binomial distribution
   53:  bdtri:  Inverse binomial distribution
   54:  btdtr:  Beta distribution
   55:  chdtr:  Chi-square distribution
   56:  chdtrc:  Complemented Chi-square distribution
   57:  chdtri:  Inverse of complemented Chi-square distribution
   58:  fdtr:  F distribution
   59:  fdtrc:  Complemented F distribution
   60:  fdtri:  Inverse of complemented F distribution
   61:  gdtr:  Gamma distribution function
   62:  gdtrc:  Complemented gamma distribution function
   63:  nbdtr:  Negative binomial distribution
   64:  nbdtrc:  Complemented negative binomial distribution
   65:  nbdtri:  Functional inverse of negative binomial distribution
   66:  ndtr:  Normal distribution function
   67:  ndtri:  Inverse of Normal distribution function
   68:  pdtr:  Poisson distribution
   69:  pdtrc:  Complemented poisson distribution
   70:  pdtri:  Inverse Poisson distribution
   71:  stdtr:  Student's t distribution
   72:  stdtri:  Functional inverse of Student's t distribution
   73: 
   74: \end{verbatim}
   75: 
   76:  Please see Math::Cephes for more information 
   77: 

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