Open kriukov opened 9 years ago
Krawczyk1D: putting "x^2 - 4x + 4" instead of "(x - 2)^2" doesn't even return "maybe". Degenerate roots?
I am surprised about "x^2 - 4x + 4", but indeed degenerate roots cannot be identified by this kind of method. (Actually, I don't see how any method could identify them accurately.)
Both 1D and 2D Krawczyk returns "maybe a zero" instead of "unique zero" when we start with the interval at whose midpoint the derivative is 0, but it turns out that the affecting side are functions, not intervals (changing the intervals doesn't help).
Examples: using KrawczykMethod f(x) = (x - 2)^2 a = Interval(1, 3) # or another interval krawczyk(f, a)
Increase in precision doesn't help.
Another example: using KrawczykMethod2D f(x) = [(x[1] - 2)^2, (x[2] - 3)^2] a = [Interval(1, 3), Interval(2, 4)] # or another set of intervals krawczyk2d(f, a)