File:
[LON-CAPA] /
loncom /
html /
adm /
help /
tex /
Function_Plot_Response_Custom_Rule.tex
Revision
1.1:
download - view:
text,
annotated -
select for diffs
Fri Dec 2 15:09:46 2011 UTC (12 years, 8 months ago) by
www
Branches:
MAIN
CVS tags:
version_2_11_1,
version_2_11_0_RC3,
version_2_11_0_RC2,
version_2_11_0_RC1,
version_2_11_0,
loncapaMITrelate_1,
HEAD,
BZ4492-merge,
BZ4492-feature_horizontal_radioresponse
Function Plot Response documentation
\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}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>