Continued fraction with relative precision in Python
Nice code, it does what it should and it is short. But it can be improved :)



General python tips:


Use type annotation. You can look at the type annotation of Sam Stafford in the previous answer, it will make your code more readable and will prevent bugs.
Remove redundant imports. Is numpy really needed here? You can use a simple abs.
Don't use lambda functions. According to PEP 8 "do not assign lambda expression, use a def", there are several reasons why, mostly due to readability.




Optimisation tips:
Note these tips contradict each other. Choose one and use it but you cannot use both.


If N is the number of elements until convergence, and a and b is the calculation time of each function (Assuming equal for every x) The time complexity now is O(N ^ 2 * a * b), for each i you calculate the entire series over and over.
If you will use exponential search you can reduce the complexity to O(N * log N * a * b). Which will be much much faster!
Readability vs. Runtime. If the readability is important to you you can ignore this tip. You can replace the recursion with a dynamic programing approach, this will remove the recursion and the iteration over i, the time complexity will be O(N * a * b) but you will need to rewrite a lot of the code.