Forum archive 2000-2006

David Vos - Granularity of function evaluator

David Vos - Granularity of function evaluator

by Arnold Pizer -
Number of replies: 0
inactiveTopicGranularity of function evaluator topic started 3/19/2002; 11:35:12 AM
last post 3/19/2002; 11:35:12 AM
userDavid Vos - Granularity of function evaluator  blueArrow
3/19/2002; 11:35:12 AM (reads: 801, responses: 0)
Is it possible to have an answer to a webwork problem be a function that is only defined on integer intervals? i.e.

f(n) = (-1)^n

If n is a fraction, then the function is undefined.

I can use function_cmp("(-1)^n", "n", 1, 1001), however. That should at least work for our current version of webwork, but relies very heavily on the implementation.

It would be nice if you could specify the granularity of the function evalutator as a parameter. Just a suggestion.

David

<| Post or View Comments |>