## WeBWorK Problems

by Murphy Waggoner -
Number of replies: 1
Howdy,

I have a question where the students provide the lower, upper limits of integration, the integrand and the value.

The integral is measuring the area of a polar region.  Thus, the limits of integration could be on any 2pi interval, but the lower limit = upper limit - pi.

I calculated

$upper = Compute("pi/2")->with(period => 2*pi); As long as the student enters a correct possible upper limit, I want to check the lower limit as pi less than their upper limit. So I want ANS($upper->cmp);
$lower = Compute("$studentsupper - pi");