Difference between revisions of "Category:PGML Answers"
(Initial version) |
m (Fix link to passing options to answer checkers) |
||
(One intermediate revision by the same user not shown) | |||
Line 17: | Line 17: | ||
* [[Numeric Answers - PGML|Numeric Answers]] |
* [[Numeric Answers - PGML|Numeric Answers]] |
||
* [[Formula Answers - PGML|Formula Answers]] |
* [[Formula Answers - PGML|Formula Answers]] |
||
− | * [[Answers from Variables - PGML|Answers from Variables]] |
||
* [[MathObject Answers - PGML|MathObject Answers]] |
* [[MathObject Answers - PGML|MathObject Answers]] |
||
− | ** [[MathObject Answers - PGML# |
+ | ** [[MathObject Answers - PGML#Passing_Options_to_Answer_Checkers|Passing Options to Answer Checkers]] |
** [[MathObject Answers - PGML#Answer_Arrays|Answer Arrays]] |
** [[MathObject Answers - PGML#Answer_Arrays|Answer Arrays]] |
||
** [[MathObject Answers - PGML#MultiAnswer_Checkers|MultiAnswer Checkers]] |
** [[MathObject Answers - PGML#MultiAnswer_Checkers|MultiAnswer Checkers]] |
Latest revision as of 07:53, 13 May 2015
Answer Checking in PGML
Answer blanks in PGML are indicated by [___________]
where the number of underscores determines the width of the answer blank on screen. Usually, the answer is tied to the blank by enclosing it in braces following the answer blank. (If not, you will need to use ANS()
outside the PGML code to provide an answer checker for the blank.) For example:
$f = Formula("sin(x)+x^2"); $Df = $f->D; BEGIN_PGML If [:f(x) = [$f]:], then [:f'(x) = :] [______________________]{$Df} END_PGML
produces a problem that displays a formula and asks for its derivative.
The answer you provide can be given in a variety of formats. It can be a number or a variable containing a number, a string that represents a MathObject to be used as the answer or a variable holding a MathObject, or a number of other possible values. These are described below.
References
Pages in category "PGML Answers"
The following 6 pages are in this category, out of 6 total.