Hi,
I have a problem which needs this sort of thing. As far as I know,
fun_cmp does not have a provide a mechanism for dealing with it yet. My
suggestion is to add a new optional argument to look like this: fun_cmp("5 (-1)^n (1/10)^(n-1)", vars=>['n'], test_points=>[[1,3,4,5,6]])
The idea is that you can hard-code the test points into the problem,
and this would override the random selection of points. With a function
like the one given in the example, I would definitely want small
integers (or everything is too close to 0), and want that some are odd
and some are even. I can't think of any problem with the loss of
randomness in function testing when it is used occasionally like this.
The test_points option would follow convensions similar to limits, so
that test_points=>[[1,3,4,5,6]] and test_points=>[1,3,4,5,6]
would be treated the same (if you have only one variable).
Comments or suggestions on this?
John
<| Post or View Comments |>
|