improve_solutions¶
- luminet.solver.improve_solutions(func: Callable, x: numpy.ndarray, y: numpy.ndarray, kwargs: Dict) numpy.ndarray¶
Find the root of a function.
Uses brentq to find the root of a function.
- Parameters:
func (Callable) – function to find the root of
x (np.ndarray) – x values
y (np.ndarray) – y values
kwargs (Dict) – keyword arguments for the function
- Returns:
float – Root of the function i.e. where \(y = 0\)