--- doc/homework/homework5.html 2002/06/06 08:24:55 1.16 +++ doc/homework/homework5.html 2005/04/07 06:56:20 1.23 @@ -88,7 +88,7 @@
  • <essayresponse> implements a ungraded large - text response, it need an internal <textarea> + text response, it need an internal <textfield> for the response to go in.
  • @@ -249,6 +249,31 @@ A message to be shown to the students name which should be set to the value of which <hintpart> will be shown.
  • +
  • + <stringhint> has all the arguments that + <stringresponse>, does and the required attribute + name which should be set to the value of which + <hintpart> will be shown. +
  • +
  • + <formulahint> has all the arguments that + <formularesponse>, does and the required attribute + name which should be set to the value of which + <hintpart> will be shown. +
  • +
  • + <optionhint> required attribute name + which should be set to the value of which <hintpart> + will be shown. +
  • +
  • + <radiobuttonhint> has the required attribute + name which should be set to the value of which + <hintpart> will be shown, and answer which + should be a two element list, frist the type (foil or + concept) and then either the foil's name or the concept's + string +
  • @@ -260,9 +285,9 @@ A message to be shown to the students

  • @@ -665,18 +696,24 @@ A message to be shown to the students /DIS($x,"nn") &format($x,"nn") - Display or format $x as nn where nn is nF or nE and n is an integer. + Display or format $x as nn where nn is nF or nE and n is an integer. Also supports the first character being a $, it thjen will format the result with a call to &dollarformat() described below.  The difference is obvious. Not in CAPA &prettyprint($x,"nn") - Display or format $x as nn where nn is nF or nE and n is an integer. In E mode it will attempt to generate a pretty x10^3 rather than a E3 following the number + Display or format $x as nn where nn is nF or nE and n is an integer. Also supports the first character being a $, it then will format the result with a a call to &dollarformat() described below. In E mode it will attempt to generate a pretty x10^3 rather than a E3 following the number   + Not in CAPA + &dollarformat($x + Reformats $x to have a $ (or \$ if in tex mode) and to have , grouping thousands. +   + + roundto(x,n) &roundto($x,$n) Rounds a real number to n decimal points. $x and @@ -1013,7 +1050,7 @@ A message to be shown to the students NOT IMPLEMENTED IN CAPA - @return_array=&random_permutation ($item_cnt,@array) + @return_array=&random_permutation ($seed,@array) Returns @array randomly permuted. New to LON-CAPA @@ -1052,6 +1089,35 @@ A message to be shown to the students New to LON-CAPA +

    + We also support these functions from Math::Cephes +

    + bdtr:  Binomial distribution
    + bdtrc:  Complemented binomial distribution
    + bdtri:  Inverse binomial distribution
    + btdtr:  Beta distribution
    + chdtr:  Chi-square distribution
    + chdtrc:  Complemented Chi-square distribution
    + chdtri:  Inverse of complemented Chi-square distribution
    + fdtr:  F distribution
    + fdtrc:  Complemented F distribution
    + fdtri:  Inverse of complemented F distribution
    + gdtr:  Gamma distribution function
    + gdtrc:  Complemented gamma distribution function
    + nbdtr:  Negative binomial distribution
    + nbdtrc:  Complemented negative binomial distribution
    + nbdtri:  Functional inverse of negative binomial distribution
    + ndtr:  Normal distribution function
    + ndtri:  Inverse of Normal distribution function
    + pdtr:  Poisson distribution
    + pdtrc:  Complemented poisson distribution
    + pdtri:  Inverse Poisson distribution
    + stdtr:  Student's t distribution
    + stdtri:  Functional inverse of Student's t distribution
    +
    +Plase see Math::Cephes for more information + +

    <script> Variables

    @@ -1088,7 +1154,7 @@ A message to be shown to the students