Capture a video of a given X Window with gstreamer.
xwininfo| import warnings | |
| from typing import Callable, Iterable | |
| import numpy as np | |
| from scipy.optimize import root_scalar | |
| def multi_root(f: Callable, bracket: Iterable[float], args: Iterable = (), n: int = 30) -> np.ndarray: | |
| """ Find all roots of f in `bracket`, given that resolution `n` covers the sign change. | |
| Fine-grained root finding is performed with `scipy.optimize.root_scalar`. |