|
inlineconstexpr |
Defined in header
Parameters
g
: generator function.tol
: tolerance value. If negative the effective tolerance will be abs(tol)*eveeps(as(< u_t>) where u_t is the underlying floating type associated to the return type of the invocable g.max_terms
: no more than max_terms calls to the generator will be made,The generator type should be an invocable which supports the following operations:
Return value
The value of the continued fraction is returned. \(\displaystyle \frac{a_0}{b_0+\frac{a_1}{b_1+\frac{a_2}{b_2+\cdots\vphantom{\frac{1}{1}} }}}\)