[LON-CAPA-cvs] cvs: loncom /html/adm/help/tex Function_Plot_Response_Custom_Rule.tex Function_Plot_Response_Object.tex Function_Plot_Response_Vector.tex Function_Plot_Response_Vector_Rule.tex Function_Plot_Response_Vector_Sum_Rule.tex

www www at source.lon-capa.org
Fri Dec 2 10:09:46 EST 2011


www		Fri Dec  2 15:09:46 2011 EDT

  Added files:                 
    /loncom/html/adm/help/tex	Function_Plot_Response_Custom_Rule.tex 
                             	Function_Plot_Response_Object.tex 
                             	Function_Plot_Response_Vector.tex 
                             	Function_Plot_Response_Vector_Rule.tex 
                             	Function_Plot_Response_Vector_Sum_Rule.tex 
  Log:
  Function Plot Response documentation
  
  

Index: loncom/html/adm/help/tex/Function_Plot_Response_Custom_Rule.tex
+++ loncom/html/adm/help/tex/Function_Plot_Response_Custom_Rule.tex
\label{Function_Plot_Response_Custom_Rule}

Used to create rules that aren't options using the other rules.  The coding is done in Perl and follows Perl syntax.  Any variable written inside this rule will be recognized as normal and any evaluation function can be used as well.

Available evaluation functions:
\begin{enumerate}
\item \&fpr\_val(``label")
\item \&fpr\_f(\$x)
\item \&fpr\_dfdx(\$x)
\item\&fpr\_d2fdx2(\$x)
\item (\$xs,\$xe,\$ys,\$ye)=\&fpr\_vectorcoords(``Name")
\item (\$x,\$y)=\&fpr\_objectcoords(``Name")
\item \&fpr\_vectorlength(``Name")
\item \&fpr\_vectorangle(``Name")
\end{enumerate}

Returning 1 is correct, while returning 0 is incorrect.

Example comparing the lengths of two vectors:
\begin{verbatim}
if (&fpr_vectorlength(``Normal") < &fpr_vectorlength(``Gravity"))
{return 1;}
else
{return 0;}
\end{verbatim}

Index: loncom/html/adm/help/tex/Function_Plot_Response_Object.tex
+++ loncom/html/adm/help/tex/Function_Plot_Response_Object.tex
\label{Function_Plot_Response_Object}

\begin{itemize}
\item
``Label on Plot" - Determines the name of the object, as well as the name that will be visible in the problem.  This value MUST be capitalized and cannot include spaces or most symbols.  To be safe, stick with letters and numbers.

\item
``x" and ``y" - Determines where the object will be placed in the applet.  The object is not moveable by the students, so whatever value is chosen here is fixed.
\end{itemize}

Index: loncom/html/adm/help/tex/Function_Plot_Response_Vector.tex
+++ loncom/html/adm/help/tex/Function_Plot_Response_Vector.tex
\label{Function_Plot_Response_Vector}

\begin{itemize}
\item ``Label on Plot" - Determines the name of the vector, as well as the name that will be visible in the problem.  This value MUST be capitalized and cannot include spaces or most symbols.  To be safe, stick with letters and numbers.

\item ``Tail x", ``Tail y", ``Tip x", and ``Tip y" - Determines where the vector's tail and tip will be placed in the applet when the problem is first loaded.  Vectors are moveable by the students, and will not revert to these values after the student has submitted an answer.
\end{itemize}

Index: loncom/html/adm/help/tex/Function_Plot_Response_Vector_Rule.tex
+++ loncom/html/adm/help/tex/Function_Plot_Response_Vector_Rule.tex
\label{Function_Plot_Response_Vector_Sum_Rule}

\begin{itemize}
\item ``Index/Name" - This is an internal label for the rule.  Something must be entered here, and it must be different for each rule.  This same value will be used to add a conditional hint.

\item ``Comma-spearated list of vectors" - List all of the vectors that should be added up to be tested.

\item ``Length" - How long the sum of these vectors should be.

\item ``Absolute error length" - How accurate the length must be to get the answer correct.

\item ``Angle" - What direction should the sum of these vectors point.  All values are measured in degrees, counterclockwise starting at the positive x-axis.  Values must be $0\le\theta<360$

\item ``Absolute error angle" - How accurate the angle must be to get the answer correct.
\end{itemize}

Index: loncom/html/adm/help/tex/Function_Plot_Response_Vector_Sum_Rule.tex
+++ loncom/html/adm/help/tex/Function_Plot_Response_Vector_Sum_Rule.tex
\label{Function_Plot_Response_Vector_Sum_Rule}

\begin{itemize}
\item
``Index/Name" - This is an internal label for the rule.  Something must be entered here, and it must be different for each rule.  This same value will be used to add a conditional hint.

\item
``Comma-spearated list of vectors" - List all of the vectors that should be added up to be tested.

\item
``Length" - How long the sum of these vectors should be.

\item
``Absolute error length" - How accurate the length must be to get the answer correct.

\item
``Angle" - What direction should the sum of these vectors point.  All values are measured in degrees, counterclockwise starting at the positive x-axis.  Values must be $0\le\theta<360$

\item
``Absolute error angle" - How accurate the angle must be to get the answer correct.
\end{itemize}




More information about the LON-CAPA-cvs mailing list