Difference between revisions of "Context Function Categories"
Jump to navigation
Jump to search
(Add Default.pm and Functions.pm links) |
m (Go to specific line in Functions.pm) |
||
Line 49: | Line 49: | ||
See <code>[https://github.com/openwebwork/pg/blob/master/lib/Parser/Context/Default.pm pg/lib/Parser/Context/Default.pm]</code> for the definitions of all the functions, and |
See <code>[https://github.com/openwebwork/pg/blob/master/lib/Parser/Context/Default.pm pg/lib/Parser/Context/Default.pm]</code> for the definitions of all the functions, and |
||
− | <code>[https://github.com/openwebwork/pg/blob/master/lib/Parser/Context/Functions.pm pg/lib/Parser/Context/Functions.pm]</code> for the code that defines the categories. |
+ | <code>[https://github.com/openwebwork/pg/blob/master/lib/Parser/Context/Functions.pm#L55 pg/lib/Parser/Context/Functions.pm]</code> for the code that defines the categories. |
<br> |
<br> |
Revision as of 06:13, 12 August 2012
The functions available to be used in student answers are controlled via the functions
object of the current Context. See Answer Checkers and the Context for details about how to enable and disable these functions. This can be done either singly or by categories of functions.
The available function categories are the following:
Category | Functions Included |
---|---|
SimpleTrig
|
sin , cos , tan , sec , csc , cot
|
InverseTrig
|
asin , acos , atan , asec , acsc , acot , arcsin , arccos , arctan , arcsec , arccsc , arccot , atan2
|
SimpleHyperbolic
|
sinh , cosh , tanh , sech , csch , coth
|
InverseHyperbolic
|
asinh , acosh , atanh , asech , acsch , acoth , arcsinh , arccosh , arctanh , arcsech , arccsch , arccoth
|
Numeric
|
log , log10 , exp , sqrt , abs , int , sgn , ln , logten
|
Vector
|
norm , unit
|
Complex
|
arg , mod , Re , Im , conj
|
Hyperbolic
|
all of SimpleHyperbolic and InverseHyperbolic
|
Trig
|
all of SimpleTrig , InverseTrig , and Hyperbolic
|
All
|
all of Trig , Numeric , Vector , and Complex
|
See pg/lib/Parser/Context/Default.pm
for the definitions of all the functions, and
pg/lib/Parser/Context/Functions.pm
for the code that defines the categories.