WeBWorK Problems

Checking 1-(-1)^n

Re: Checking 1-(-1)^n

by Danny Glin -
Number of replies: 0
This leaves open the possibility that the (randomly chosen) test points will either all be even or all be odd.  You may want to add:
$f->{test_at} = [[2],[3]];
(where $f is your function)

to ensure that you are testing at at least one even and one odd value.

Danny