File:
[LON-CAPA] /
loncom /
html /
adm /
help /
tex /
Function_Plot_Response_Custom_Rule.tex
Revision
1.2:
download - view:
text,
annotated -
select for diffs
Sat Aug 20 17:48:11 2016 UTC (7 years, 11 months ago) by
raeburn
Branches:
MAIN
CVS tags:
version_2_12_X,
version_2_11_X,
version_2_11_5_msu,
version_2_11_5,
version_2_11_4_uiuc,
version_2_11_4_msu,
version_2_11_4,
version_2_11_3_uiuc,
version_2_11_3_msu,
version_2_11_3,
version_2_11_2_uiuc,
version_2_11_2_msu,
version_2_11_2_educog,
version_2_11_2,
HEAD
- Use LaTeX-style single and double quotes.
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}
7: \item \&fpr\_val(``label'')
8: \item \&fpr\_f(\$x)
9: \item \&fpr\_dfdx(\$x)
10: \item\&fpr\_d2fdx2(\$x)
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'')
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}
21: if (&fpr_vectorlength("Normal") < &fpr_vectorlength("Gravity"))
22: {return 1;}
23: else
24: {return 0;}
25: \end{verbatim}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>