WeBWorK Problems

Correct answer is graded as incorrect.

Correct answer is graded as incorrect.

by Jason Diemer -
Number of replies: 2

The problem Rochester/SetIntegrals0Theory/S05.01.AreaDistance.PTP03.pg from OPL is rejecting some correct answers:

Image showing WeBWorK rejecting a solution that it shows is the correct answer.

Not every student is running into an issue with this problem.  The random seed for this particular version is 1716.  I'm at a loss as to why this is happening.  I've checked the code and cannot find anything amiss, but I'm not a pg expert.


In reply to Jason Diemer

Re: Correct answer is graded as incorrect.

by Glenn Rice -

The problem is that the tolerance is set to low for the answer.  The problem sets the tolerance to 0 with absolute tolerance type (tol => 0, tolType => 'absolute').  If you change the tolerance to tol => 1E-12 it should work.  Setting the tolerance to absolute 0 should never be done.  Machine precision does not work at absolute 0 for many numbers.

I have not seen this happen with an integer before, so there may be some other issue at play in this as well.

In reply to Glenn Rice

Re: Correct answer is graded as incorrect.

by Jason Diemer -

Thanks much!  That has addressed the issue.  Thanks for the quick turnaround on this.