Is it possible to use python to find local maxima/minima for a nested function?
For example f(a,b) = a*5 / (a-b)
And nesting them -> f( f( f(a, b), b ), b)
The nesting would need to be dynamically created, for example in a for loop:
def f(a,b):
return a*5 / (a-b)
input = 1
for x in range(3):
input = f(input, b)
This is easy, but could I get an equation out of it and then using Numpy/Sympy/SciPy or something to find local maxima/minima for given input range?
Thanks!
