
SciPy API — SciPy v1.16.2 Manual
In SciPy there are modules whose names don’t start with an underscore, but that should be considered private. To clarify which modules these are, we define below what the public API is …
SciPy - Installation
Here is a step-by-step guide to setting up a project to use SciPy, with uv, a Python package manager. Install uv following, the instructions in the uv documentation.
curve_fit — SciPy v1.16.2 Manual
For global optimization, other choices of objective function, and other advanced features, consider using SciPy’s Global optimization tools or the LMFIT package.
minimize — SciPy v1.16.2 Manual
It switches between two implementations depending on the problem definition. It is the most versatile constrained minimization algorithm implemented in SciPy and the most appropriate …
Integration (scipy.integrate) — SciPy v1.16.2 Manual
Integration (scipy.integrate) # The scipy.integrate sub-package provides several integration techniques including an ordinary differential equation integrator. An overview of the module is …
Optimization (scipy.optimize) — SciPy v1.16.2 Manual
Typically, global minimizers efficiently search the parameter space, while using a local minimizer (e.g., minimize) under the hood. SciPy contains a number of good global optimizers. Here, …
find_peaks — SciPy v1.16.2 Manual
To demonstrate this function’s usage we use a signal x supplied with SciPy (see scipy.datasets.electrocardiogram). Let’s find all peaks (local maxima) in x whose amplitude …
Statistical functions (scipy.stats) — SciPy v1.16.2 Manual
SciPy has many functions for performing hypothesis tests that return a test statistic and a p-value, and several of them return confidence intervals and/or other related information.
quad — SciPy v1.16.2 Manual
The user_data is the data contained in the scipy.LowLevelCallable. In the call forms with xx, n is the length of the xx array which contains xx[0] == x and the rest of the items are numbers …
differential_evolution — SciPy v1.16.2 Manual
Examples Try it in your browser! Let us consider the problem of minimizing the Rosenbrock function. This function is implemented in rosen in scipy.optimize.