Cython:scipy.optimize.cython_optimize.brentq 函数的 mitr 参数 - 这个参数有什么用?

Cython : mitr argument of scipy.optimize.cython_optimize.brentq function - What is this argument used for?

mitr 参数是函数 scipy.optimize.cython_optimize.brentq 的参数,在参考指南 https://docs.scipy.org/doc/scipy/reference/optimize.cython_optimize.html 中设置为 10。 brentq 函数如何使用这个参数?找不到任何解释。

是的,mitrscipy.optimize.cython_optimize documentation examples corresponds to maxiter in brentq, bisect, ridder, etc. I agree it's confusing, and maxiter would've been a better choice for consistency, but it's only an example, perhaps it can still be updated. The underlying C & Cython functions use iter which is a keyword in Python. You will find the Cython headers in cython_optimize/_zeros.pxd and the zero function signatures in the zeros header scipy/optimize/zeros.h。参数的顺序几乎相同。抱歉