← Back
Editing: _root_scalar.cpython-311.pyc
� d�c!H � � � d Z ddlZddlmZ dgZg d�Z G d� d� � Z dd �Z d� Z d� Zd � Zd� Z d� Zd� Zd� Zd� ZdS )z� Unified interfaces to root finding algorithms for real or complex scalar functions. Functions --------- - root : find a root of a scalar function. � N� )� _zeros_py�root_scalar)�bisect�brentq�brenth�ridder�toms748�newton�secant�halleyc �0 � e Zd ZdZd� Zd� Zd� Zd� Zd� ZdS )� MemoizeDera� Decorator that caches the value and derivative(s) of function each time it is called. This is a simplistic memoizer that calls and caches a single value of `f(x, *args)`. It assumes that `args` does not change between invocations. It supports the use case of a root-finder where `args` is fixed, `x` changes, and only rarely, if at all, does x assume the same value more than once.c �>