Annotation of loncom/html/adm/help/tex/Function_Plot_Response_Custom_Rule.tex, revision 1.2

1.1       www         1: \label{Function_Plot_Response_Custom_Rule}
                      2: 
                      3: 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.
                      4: 
                      5: Available evaluation functions:
                      6: \begin{enumerate}
1.2     ! raeburn     7: \item \&fpr\_val(``label'')
1.1       www         8: \item \&fpr\_f(\$x)
                      9: \item \&fpr\_dfdx(\$x)
                     10: \item\&fpr\_d2fdx2(\$x)
1.2     ! raeburn    11: \item (\$xs,\$xe,\$ys,\$ye)=\&fpr\_vectorcoords(``Name'')
        !            12: \item (\$x,\$y)=\&fpr\_objectcoords(``Name'')
        !            13: \item \&fpr\_vectorlength(``Name'')
        !            14: \item \&fpr\_vectorangle(``Name'')
1.1       www        15: \end{enumerate}
                     16: 
                     17: Returning 1 is correct, while returning 0 is incorrect.
                     18: 
                     19: Example comparing the lengths of two vectors:
                     20: \begin{verbatim}
1.2     ! raeburn    21: if (&fpr_vectorlength("Normal") < &fpr_vectorlength("Gravity"))
1.1       www        22: {return 1;}
                     23: else
                     24: {return 0;}
                     25: \end{verbatim}

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>