--- doc/homework/homework5.html 2001/07/13 16:15:01 1.8 +++ doc/homework/homework5.html 2001/12/07 15:05:03 1.12 @@ -122,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 @@ -215,6 +236,12 @@ <window> the text in between is put in a popup javascript window
  • +
  • + <m> the inside text is LaTeX, and is + converted to HTML (or MathML) on the fly, if the argument + eval is set to "on" the intervening text will have + a perl var expansion done to it before being converted. +
  • @@ -365,14 +392,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) @@ -472,6 +491,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 @@ -537,7 +563,7 @@ - map(seed;a,b,c,d;w,x,y,z) + /MAP(seed;w,x,y,z;a,b,c,d) 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])
    @@ -574,10 +600,14 @@ $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 - 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 - second and third groups. + In CAPA, the arguments are divided into + three groups separated by a semicolon ;. In LON-CAPA, the + separation is done by using [] brackets (with create an + unamed vector reference) or using an array @a. Note the + backslash (\) before the arguments in the second and + third groups (Which cause Perl to send to variable + locations rather than the variable values, similar to a C + pointer). @@ -781,13 +811,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 @@ -876,7 +906,7 @@
    Guy Albertelli
    -Last modified: Fri Jul 13 12:10:52 EDT 2001 +Last modified: Fri Dec 7 10:03:55 EST 2001