verry.optimize.krawczyk_scalar#
- verry.optimize.krawczyk_scalar(fun, x, fprime=None)#
Apply the Krawczyk test to the univariate scalar-valued function.
- Parameters:
- Returns:
r0 (Literal[“EXISTS”, “NOTEXISTS”, “UNIQUE”, “UNKNOWN”])
r1 (Interval | None) – If r0 is
"EXISTS"
or"UNIQUE"
, r1 is the set containing the root; otherwise, r1 isNone
.
Warning
fun must be a \(C^1\)-function on x. Futhermore, fun must neither be a constant nor contain conditional branches (cf. Common pitfalls).
See also