SciPy together with NumPy and suitable plotting tools can substitute for MATLAB for supported numerical algorithms when a Python implementation is acceptable. This is a rewrite-oriented alternative, not an M-file interpreter. Source behavior, solver settings, output requirements and data interchange determine the actual scope; no general performance advantage or numerical identity is established by this article.[1][3][4][5]
Overview
SciPy is a Python library of scientific numerical algorithms built around NumPy's array computing facilities. It covers tasks such as optimization, integration, interpolation, linear algebra, signal processing and statistics. It is a library within a larger Python workflow, not a complete desktop analysis environment with every editor and plotting tool included.[1]
Algorithms and surrounding tools
SciPy supplies numerical methods and specialized structures such as sparse matrices. Computationally intensive routines often use compiled implementations underneath Python interfaces. Plotting lies outside SciPy's scope and normally uses a separate compatible library. A workflow replacing an integrated numerical application consequently needs to account for the Python environment, array library, plots and interactive tools as separate components.[1][2]
Migrating MATLAB-style calculations
The NumPy guide for MATLAB users documents important semantic differences. Python indexing begins at zero, ordinary array multiplication is elementwise rather than matrix multiplication, and slicing can return a view into existing data. Translating a formula character by character can therefore change its meaning or mutate data unexpectedly. Porting should compare array shapes, operators and copy behavior as well as the selected SciPy algorithm.[3]
MAT-file interoperability
SciPy's loadmat supports the documented older MAT-file versions through 7.2. MATLAB Version 7.3 requires an HDF5 library outside that interface. Options also influence array dimensions, structure representation and data types. Reading variables provides a data handoff; it does not execute the MATLAB code or reconstruct the toolboxes and application state associated with them.[4]
Availability and licensing
SciPy is distributed under a BSD license and can be used for commercial or noncommercial work within those terms. It depends on a compatible Python and numerical-library environment. Commercial support is available separately from providers identified by the project, so free source availability and a supported organizational deployment are different procurement and maintenance questions.[2]
Capabilities & limitations
Scientific numerical methods
supported
Python interfaces provide optimization, integration and other scientific algorithms.[1]
Numerical programming · Runtime, platform and dependency dependent · License eligibility, platform support, package dependencies and hosted-service terms apply.
/* wbeditentity-create-item:0| */ sf:9e3b5717-66e8-4709-812c-39c173432a15:v1 | Add SciPy with numerical/symbolic scope, file and language migration limits, and licensing; no testing or performance equivalence claimed. | attribution: /proposals/9e3b5717-66e8-4709-812c-39c173432a15