Lentz's algorithm (source code)

= Lentz's algorithm
{wiki=Lentz's_algorithm}

Lentz's algorithm is a numerical method used for computing the value of certain types of functions, particularly those that can be expressed in the form of an infinite series or continued fractions. This algorithm is particularly useful for evaluating functions that are difficult to calculate directly due to issues such as convergence or numerical instability.