If I try to find a root of f, and it evaluates to something other than a number at any point in the interval, find_root aborts. Why can't it just ignore the invalid points? Very often you search for a solution in [0,%pi], where f is not defined on the endpoints.
It should just ignore those points.
Log in to post a comment.