--- doc/homework/homework5.html 2001/06/13 19:53:03 1.6 +++ doc/homework/homework5.html 2001/10/01 20:13:38 1.10 @@ -62,12 +62,26 @@ the response to go in. It checks all styles of numerical supported in CAPA. Possible args are:
  • + <stringresponse> implements a string answer, + it needs an internal <textline> for the + response to go in. It can check the string for either case + or order. + +
  • <essayresponse> implements a ungraded large text response, it need an internal <textarea> for the response to go in. @@ -108,6 +122,27 @@ value of a <foil>can only be "true" or "false" or "unused"
  • +
  • + <dataresponse> implements a straight data + storage entry idea, needs and interveing input tag like + <textline> to work correctly.
    + Arguments: + +
  • Foil Structure Tags @@ -351,14 +386,6 @@ Differences (if any) - - sin(x), cos(x), tan(x) - &sin($x), &cos($x), &tan($x) - Trigonometric functions where x is in radians. $x - can be a pure number, i.e., you can call &sin(3.1415) -   - - sin(x), cos(x), tan(x) &sin($x), &cos($x), &tan($x) @@ -458,6 +485,13 @@ + /DIS($x,"nn") + &format($x,"nn") + Display or format $x as nn where nn is nF or nE and n is an integer. +  The difference is obvious. + + + roundto(x,n) &roundto($x,$n) Rounds a real number to n decimal points. $x and @@ -524,17 +558,22 @@ map(seed;a,b,c,d;w,x,y,z) - Option 1 - &map($seed,[\$w,\$x,\$y,\$z],\@a) or
    - Option 2 - &map($seed,\@a,[$w,$x,$y,$z])
    - where @a=('A','B','C','D')
    - $w='W'
    - $x='X'
    - $y='Y'
    - $z='Z' + Option 1 - &map($seed,[\$w,\$x,\$y,\$z],[$a,$b,$c,$d]) or
    + Option 2 - &map($seed,\@mappedArray,[$a,$b,$c,$d])
    + Option 3 - @mappedArray = &map($seed,[$a,$b,$c,$d])
    + Option 4 - ($w,$x,$y,$z) = &map($seed,\@a)
    + where $a='A'
    + $b='B'
    + $c='B'
    + $d='B'
    + $w, $x, $y, and $z are variables Assigns to the variables $w, $x, $y and $z the values of the - variables A, B, C and D depending on the seed. (Option 1 of calling map). - In option 2, the values of $w, $x .. are mapped into the array @a. The two - options illustrate the different grouping. + $a, $b, $c and $c (A, B, C and D). The precise value for $w .. depends + on the seed. (Option 1 of calling map). + In option 2, the values of $a, $b .. are mapped into the array, @mappedArray. The two + options illustrate the different grouping. Options 3 and 4 give a consistent + way (with other functions) of mapping the items. For each option, the group can + be passed as an array, for example, [$a,$b,$c,$d] => \@a. In CAPA, the arguments are divided into three groups separated by a semicolon ;. In LON-CAPA, the separation is done by using [] brackets or using an array @a. Note the backslash (\) before the arguments in the @@ -544,13 +583,15 @@ rmap(seed;a,b,c,d;w,x,y,z) - &rmap($seed,[\$w,\$x,\$y,\$z],\@a) or
    - &rmap($seed,\@a,[$w,$x,$y,$z])
    - where @a=('A','B','C','D')
    - $w='W'
    - $x='X'
    - $y='Y'
    - $z='Z' + Option 1 - &rmap($seed,[\$w,\$x,\$y,\$z],[$a,$b,$c,$d]) or
    + Option 2 - &rmap($seed,\@rmappedArray,[$a,$b,$c,$d])
    + Option 3 - @rmapped_array = &rmap($seed,[$a,$b,$c,$d])
    + Option 4 - ($w,$x,$y,$z) = &rmap($seed,\@a)
    + where $a='A'
    + $b='B'
    + $c='B'
    + $d='B'
    + $w, $x, $y, and $z are variables The rmap functions does the reverse action of map if the same seed is used in calling map and rmap. In CAPA, the arguments are divided into three groups separated @@ -558,6 +599,16 @@ using an array @a. Note the backslash (\) before the arguments in the second and third groups. + + + NOT IMPLEMENTED IN CAPA + $a=&xmlparse($string) + Runs the internal parser over the + argument parsing for display. Warning This will + result in different strings in different targets. Don't use + the results of this function as an answer. + New to LON-CAPA + tex(a,b), tex("a","b") @@ -750,13 +801,13 @@ New to LON-CAPA - NOT IMPLEMENTED IN CAPA - @return_array=&random_multivariate_normal ($item_cnt,$seed,@mean,@covar)
    - NOTE: @mean should be a length p array of real numbers. @covar should be a length - p array of references to length p arrays or real numbers (i.e. a p by p matrix. + NOT DOCUMENTED IN CAPA + @return_array=&random_multivariate_normal ($item_cnt,$seed,\@mean,\@covar)
    + NOTE: @mean should be of length p array of real numbers. @covar should be a length + p array of references to length p arrays of real numbers (i.e. a p by p matrix. Generate $item_cnt deviates of multivariate_normal distribution with mean vector @mean and variance-covariance matrix. - New to LON-CAPA + Note the backslash before the @mean and @covar arrays. NOT IMPLEMENTED IN CAPA @@ -845,7 +896,7 @@
    Guy Albertelli
    -Last modified: Tue June 12 15:25 EDT 2001 +Last modified: Mon Oct 1 16:12:05 EDT 2001