Secant Method Function Matlab Example Code Python Game