Skip to main content
Logo image

Section 1.3 Open Problem Library

The Open Problem Library 1  (OPL) is a repository of curated WeBWorK problems. At last count it had something like 30,000 problems, searchable by topic.
Most of the problems in this sample chapter have their source authored within the same document as the narrative. However the problems in this section are from the OPL and elsewhere on the server that is hosting the WeBWorK caclulations. For HTML output we can connect to the server and render the problem here in an interactive fashion. For print/PDF we use the pretext script to connect to the server to produce PreTeXt code for the problem. We can use the exercise.text.* switches to control which parts of the problem (statements, solutions, hints) are incorporated.
Problems do not have to be in the OPL to reside on a server; any problem that is accessbile from the WeBWorK course which is hosting the WeBWorK computation may be used this way.

Checkpoint 1.3.1. Cylinder Volume.

This problem is one that Portland Community College has donated to the Open Problem Library.
A cylinder’s base’s radius is \({6\ {\rm m}}\text{,}\) and its height is \({10\ {\rm m}}\text{.}\)
  1. This cylinder’s volume, in terms of \(\pi\text{,}\) is .
  2. This cylinder’s volume, rounded to the hundredth place, is .
Answer 1.
\(360\pi\ {\rm m^{3}}\)
Answer 2.
\(1130.97\ {\rm m^{3}}\)
Solution.
We use \(r\) to represent the base’s radius, and \(h\) to represent the cylinder’s height.
A cylinder’s volume formula is \(V= (\text{base area}) \cdot \text{height}\text{.}\) A cylinder’s base is a circle, with its area formula \(A = \pi r^{2}\text{.}\)
Putting together these two formulas, we have a cylinder’s volume formula:
\(\displaystyle{ V= \pi r^{2} h }\)
Throughout these computations, all quantities have units attached, and we only show them in the final step.
  1. Using the volume formula, we have:
    \(\displaystyle{\begin{aligned} V \amp = \pi r^{2} h \\ \amp = \pi \cdot 6^{2} \cdot 10 \\ \amp = \pi \cdot 360 \\ \amp = 360 \pi \textrm{ m}^3 \end{aligned}}\)
    Don’t forget the volume unit \(\textrm{m}^3\text{.}\)
  2. To find the decimal version, we replace \(\pi\) with its decimal value, and we have:
    \(\displaystyle{\begin{aligned}[t] V\amp = 360 \pi \\ \amp \approx 360 \cdot 3.14\ldots \\ \amp \approx {1130.97\ {\rm m^{3}}} \end{aligned}}\)
    Don’t forget the volume unit \(\textrm{m}^3\text{.}\)
This uninteresting image, authored in syntax, is here only to make sure its automatically-assigned identifier is correct, given that the OPL problem just above is going to generate another image for its static representation.

Warning 1.3.2. Incompatible Problems.

Not all problems that come from the OPL are compatible with PreTeXt. The reasons vary. Perhaps the problem uses older WeBWorK macros that cannot be augmented to provide PreTeXt output. Perhaps the problem nests a table within a table, which PreTeXt will not support. Perhaps there are graphics in the problem that are not sized appropriately for PreTeXt output and there’s nothing you can do about it. And there are many more reasons.
Unfortunately the variety of reasons for which a problem may be incompatible means that at present, there is no way to validate a problem automatically. Using an incompatible problem might not raise any errors at any stage of the PreTeXt processing, but large chunks of the problem may be missing, especially in print output. So we recommend that you review all output modes when using an OPL problem. Chances are that if it is behaving in print, it will behave elsewhere. But that is an unproven theory at this point.
You have attempted of activities on this page.