WeBWorK Problems

Can't generate enough valid points for comparison

Can't generate enough valid points for comparison

by Anton Betten -
Number of replies: 3
Hi all, 

   I get "Can't generate enough valid points for comparison" 
I don't know what is wrong with my code.

Pls see attached.

Thanks, Anton
In reply to Anton Betten

Re: Can't generate enough valid points for comparison

by Danny Glin -
This means that the system can't find any x-values to substitute where the expression would be defined.

In your example, the domain of $ans is [0,1], so all of your test points are outside of this domain.

There are a couple ways to fix this:
  1. Replace your test points with values between 0 and 1
  2. Replace "test_points=>..." with "limits=>[0,1]", which would force WeBWorK to choose x-values between 0 and 1 for evaluation.
There is more info about domains and such at http://webwork.maa.org/wiki/FormulaDomain1

Danny
In reply to Danny Glin

Re: Can't generate enough valid points for comparison

by Anton Betten -
Hi Danny,

   thanks for the reply. limits=>[2,10] does the trick.

Best wishes, Anton
In reply to Anton Betten

Re: Can't generate enough valid points for comparison

by Danny Glin -
Yeah, I clearly didn't get enough sleep yesterday.  x>1 seems like the correct domain.