[Solved] How to compute mutually recursive expressions in a loop?


It sounds like you mean this. Some kind of iterative function closing in on a value?

#!/usr/bin/env python3

c = 1
d = 1

b = 1
while True:
    a = 3 * b + c
    new_b = (a - d) / 5
    if b - new_b <= 0.25:
        break
    b = new_b

print(a, new_b)

2

solved How to compute mutually recursive expressions in a loop?