--- loncom/html/adm/help/tex/Math_Response_Problems.tex 2012/08/06 22:01:24 1.3 +++ loncom/html/adm/help/tex/Math_Response_Problems.tex 2013/06/26 08:14:55 1.4 @@ -1,84 +1,7 @@ \label{Math_Response_Problems} -Math Response is a way to have a problem graded based on an algorithm that is executed inside of a computer algebra system. -It is extremely powerful, as it tests answers for conditions rather than agreement with a particular correct answer. An unfortunate -byproduct, however, is that it cannot be analyzed by several of the LON-CAPA statistics tools. - -Which computer algebra system is to be used is specified in the cas argument of the mathresponse tag; currently, only Maxima is available. -LON-CAPA sets up two arrays inside the computer algebra system: RESPONSE and LONCAPALIST. RESPONSE contains the student input by component, for example, if "3,42,17" is entered, RESPONSE[2] would be 42. LONCAPALIST contains the arguments passed in the args of mathresponse. - -The answerdisplay is what is displayed when the problem is in "Show Answer" mode. - -The following example illustrates this. -\begin{verbatim} - - - - - Give an example of a function -
    -
  1. - which is orthogonal to $function with respect to the - scalar product - - \[ = - \frac{1}{\pi} \int_{-\pi}^{\pi}dx g(x) \cdot h(x)\] - -
  2. -
  3. - whose norm is 1. -
  4. -
- - - - -overlap:integrate((RESPONSE[1])*(LONCAPALIST[1]),x,-%pi,%pi)/%pi; -norm:integrate((RESPONSE[1])*(RESPONSE[1]),x,-%pi,%pi)/%pi; -is(overlap=0 and norm=1); - - - - - -overlap: integrate((LONCAPALIST[1])*(RESPONSE[1]),x,-%pi,%pi)/%pi; -is(not overlap = 0); - - - - -norm: integrate((RESPONSE[1])*(RESPONSE[1]),x,-%pi,%pi)/%pi; -is(not norm = 1); - - - - -The function you have provided does not have a norm of one. - - - - -The function you have provided is not orthogonal. - - - - +Math Response is a way to have a problem graded based on an algorithm that is executed inside of a +computer algebra system based on an algorithm written by the problem author. It is extremely powerful, +as it tests answers for conditions rather than agreement with a particular correct answer. An unfortunate +byproduct, however, is that it cannot be analyzed by several of the LON-CAPA statistics tools. - - -

-Note that with respect to the above norm, $\cos(nx)$ is perpendicular -to $\sin(nx)$ and perpendicular to $\cos(mx)$ for -$n\ne m$. -

- -
-
-\end{verbatim}