# Editing Writing Your Own Homework Problems Using PGML

Jump to navigation
Jump to search

**Warning:** You are not logged in. Your IP address will be publicly visible if you make any edits. If you **log in** or **create an account**, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision | Your text | ||

Line 27: | Line 27: | ||

TEXT(beginproblem()); |
TEXT(beginproblem()); |
||

$showPartialCorrectAnswers = 1; |
$showPartialCorrectAnswers = 1; |
||

+ | ###################################################################### |
||

The contents in the above box will rarely change much in your custom WebWork homework problems. Depending on what features |
The contents in the above box will rarely change much in your custom WebWork homework problems. Depending on what features |
||

Line 37: | Line 38: | ||

You will want to define a "context" for your PGML homework problem. If your answers will be numbers or formulas, then just set it to Numeric and do not worry about it for now. Later you may want to learn about other contexts to allow things like strings and inequalities. The second line tells WebWork to accept student submissions as correct if they differ from the correct answer given below by 1% or less. |
You will want to define a "context" for your PGML homework problem. If your answers will be numbers or formulas, then just set it to Numeric and do not worry about it for now. Later you may want to learn about other contexts to allow things like strings and inequalities. The second line tells WebWork to accept student submissions as correct if they differ from the correct answer given below by 1% or less. |
||

β | ###################################################################### |
||

BEGIN_PGML |
BEGIN_PGML |
||

Simplify [`2 + 4 \cdot 5`]. |
Simplify [`2 + 4 \cdot 5`]. |
||

Line 44: | Line 44: | ||

[____________]{"11x"} |
[____________]{"11x"} |
||

END_PGML |
END_PGML |
||

β | ###################################################################### |
||

β | The is what you will be changing the most as you create your own problems. What the student sees always goes in between BEGIN_PGML and END_PGML. If you want to include LaTeX, simply enclose it inside [` and `]. Your answer field is represented by [____________]. After the answer field, you specify the correct answer you desire in braces. In this example, the correct answer for the first question is a number and for the second it is an algebraic expression. If your answer is a number or formula, you can happily use the Compute function for a long time. Your problems can have only 1 question or even more than 2 if you wish |
+ | The is what you will be changing the most as you create your own problems. What the student sees always goes in between BEGIN_PGML and END_PGML. If you want to include LaTeX, simply enclose it inside [` and `]. Your answer field is represented by [____________]. After the answer field, you specify the correct answer you desire in braces. In this example, the correct answer for the first question is a number and for the second it is an algebraic expression. If your answer is a number or formula, you can happily use the Compute function for a long time. Your problems can have only 1 question or even more than 2 if you wish. |

+ | |||

+ | ###################################################################### |
||

ENDDOCUMENT(); |
ENDDOCUMENT(); |
||