triqs_modest.module.root_finder

triqs_modest.module.root_finder()

Function dispatched to the following (C++) functions:

[1] (method: str,
     f: (float) -> float,
     x_init: float,
     y_value: float,
     precision: float,
     delta_x: float,
     max_loops: int = 1000,
     x_name: str = "",
     y_name: str = "",
     verbosity: bool = False)
  -> tuple[float, float]

Root finder f(x) = 0.


Parameters
method:

root finding method (dichtomy, bisection)

f:

f(x) (double -> double)

x_init:

initial value for x

y_value:

target value for y

precision:

precision for algorihtm

delta_x:

increment of x

max_loops:

max number of iterations for method

x_name:

name of x variable

y_name:

name of y variable f(x)

verbosity:

logging of root finder


Returns

x, f(x) where f(x) = y_value