If you are familiar with WeBWorK, then it may be a surprise to you to be interacting with a WeBWorK problem this way, without having logged in to WeBWorK.
You can also declare a seed to specify a version of any problem that has randomization. Here is the same problem (βcopiedβ in the PreTeXt source), but with a seed specified.
You can code your problem with randomization, but then use a specific seed and WeBWorKβs $envir{problemSeed} to override that randomization for the purposes of the version that will appear in HTML and print output.
One of the strengths of WeBWorK is its ability to give intelligent feedback for incorrect answers.
There is general feedback for when the studentβs answer is in an entirely different ballpark from the correct answer. Try entering something like βyβ.
There is general feedback for when the studentβs answer is not in the right form. Try entering βx^2*x^3β, which, right or wrong, is unsimplified.
And problems can be written to detect and respond to common mistakes. Try entering an answer where you multiply the two exponents (instead of adding them, which would be correct.)
Hints can be inserted into exercises. Whether a hint is visible in the HTML depends on the value of $showHint in PGcourse.pl in the WeBWorK course that is hosting these exercises. How the hint is displayed in the pdf output is controlled in the usual way that an PTX hint is controlled.
This problem has no randomization at all, not even if it were exported to be part of a problem set on a WeBWorK server. As such, it really doesnβt need any lines of Perl code in its setup, so you have the option of skipping that part of the authoring process.
If you like, you can have a WeBWorK inside a PROJECT-LIKE block. Just like with an <exercise>, it can be preceded with an optional <introduction> and followed by an optional <conclusion>.