PyPyNum
PyPyNum is a versatile Python math lib. It features modules for math, data analysis, arrays, crypto, physics, RNG, data proc, stats, eq solving, image proc, interp, matrix calc, and high-prec math. Designed for scientific computing, data science, and ML, it offers efficient, general-purpose tools.
Install / Use
/learn @PythonSJL/PyPyNumREADME
PyPyNum
PyPyNum is a versatile Python math lib. It features modules for math, data analysis, arrays, crypto, physics, RNG, data proc, stats, eq solving, image proc, interp, matrix calc, and high-prec math. Designed for scientific computing, data science, and ML, it offers efficient, general-purpose tools.
________ ___ ___ ________ ___ ___ ________ ___ ___ _____ ______
|\ __ \ |\ \ / /||\ __ \ |\ \ / /||\ ___ \ |\ \|\ \ |\ _ \ _ \
\ \ \|\ \\ \ \/ / /\ \ \|\ \\ \ \/ / /\ \ \\ \ \\ \ \\\ \\ \ \\\__\ \ \
\ \ ____\\ \ / / \ \ ____\\ \ / / \ \ \\ \ \\ \ \\\ \\ \ \\|__| \ \
\ \ \___| \/ / / \ \ \___| \/ / / \ \ \\ \ \\ \ \\\ \\ \ \ \ \ \
\ \__\ __/ / / \ \__\ __/ / / \ \__\\ \__\\ \_______\\ \__\ \ \__\
\|__| |\___/ / \|__| |\___/ / \|__| \|__| \|_______| \|__| \|__|
\|___|/ \|___|/
PyPyNum | Version -> 1.18.0 | PyPI -> https://pypi.org/project/PyPyNum/ | Gitee -> https://www.gitee.com/PythonSJL/PyPyNum | GitHub -> https://github.com/PythonSJL/PyPyNum

The logo cannot be displayed on PyPI, it can be viewed in Gitee or GitHub.
Introduction
- Multi functional math library, similar to numpy, scipy, etc., designed specifically for PyPy interpreters and also supports other types of Python interpreters
- Update versions periodically to add more practical features
- If you need to contact, please add QQ number 2261748025 (一只水晶兰), or through my email 2261748025@qq.com
+++++++++++++++++++++++++++++++++++++++++
+ Tip: +
+ Have suggestions or feature requests? +
+ Feel free to share them with us. +
+ Your feedback is highly appreciated! +
+++++++++++++++++++++++++++++++++++++++++
Copyright and License
This Python library is licensed under the GNU Affero General Public License version 3 (AGPLv3).
The license is designed to ensure that network server software is made available to the community, allowing users to access the source code of modified versions when the software is used to provide network services.
Key Terms and Conditions:
- Source Code: The library must be provided with its source code, and any modifications must also be distributed under the AGPLv3.
- Free Redistribution: The library can be distributed in source and binary forms without any restrictions.
- No Discrimination: The license does not restrict the use of the software by individuals or organizations, nor does it discriminate against fields of use.
- No Discrimination Against Persons or Groups: The license does not restrict anyone from receiving the software.
- Patent License: The patent holder must grant a patent license to anyone who uses the software.
- No Surrender of Others' Freedom: The license does not allow any conditions that contradict the AGPLv3.
- Remote Network Interaction: If the software can interact with users remotely, the source code must be made available at no charge.
- Revised Versions of this License: The Free Software Foundation may publish revised versions of the AGPLv3, and users have the option to follow the terms of any version.
- Disclaimer of Warranty: There is no warranty for the software, to the extent permitted by applicable law.
- Limitation of Liability: The copyright holder and any other party who modifies and conveys the software are not liable for damages arising from the use or inability to use the software.
Full License Text:
GNU Affero General Public License
Name and Function Introduction of Submodules
| Submodule Name | Function Introduction |
|:-------------------:|:------------------------------------------------------------------:|
| pypynum.arrays | Provides operations and calculations for multi-dimensional arrays. |
| pypynum.chars | Contains a variety of special mathematical characters. |
| pypynum.ciphers | Implements various encryption and decryption algorithms. |
| pypynum.consts | Contains mathematical and physical constants. |
| pypynum.crandom | Generates random complex numbers. |
| pypynum.dataproc | Tools for data preprocessing and transformation. |
| pypynum.dists | Statistical distribution functions and related calculations. |
| pypynum.equations | Solves equations and performs symbolic operations. |
| pypynum.fft | Implements Fast Fourier Transforms and related functionalities. |
| pypynum.files | File reading and writing tools. |
| pypynum.geoms | Geometric shapes and calculation methods. |
| pypynum.graphs | Graph theory algorithms and network analysis. |
| pypynum.groups | Group theory calculations and structural analysis. |
| pypynum.hypcmpnms | Hypercomplex number operations and transformations. |
| pypynum.images | Image processing and manipulation tools. |
| pypynum.interp | Interpolation methods and function approximation. |
| pypynum.kernels | Implementation of kernel functions and methods. |
| pypynum.logics | Simulates logical circuits. |
| pypynum.maths | Basic mathematical operations and commonly used functions. |
| pypynum.matrices | Matrix operations and linear algebra calculations. |
| pypynum.multiprec | High-precision numerical computations. |
| pypynum.networks | Network models and algorithms. |
| pypynum.numbers | Operations on numerical types and properties. |
| pypynum.plotting | Data visualization tools. |
| pypynum.polys | Polynomial operations and calculations. |
| pypynum.pprinters | Advanced printing and formatting output. |
| pypynum.random | Generates arrays of random numbers. |
| pypynum.regs | Regression analysis and model fitting. |
| pypynum.seqs | Computes various mathematical sequences. |
| pypynum.special | Provides advanced special functions for mathematical computations. |
| pypynum.stattest | Statistical tests and data analysis. |
| pypynum.symbols | Symbolic computation and expression manipulation. |
| pypynum.tensors | Tensor operations and calculations. |
| pypynum.test | Simple code testing for the library. |
| pypynum.this | The Zen of the library, expressing its guiding principles. |
| pypynum.tools | General tools and helper functions. |
| pypynum.trees | Tree structures and algorithm implementations. |
| pypynum.types | Contains various types, exceptions, and configurations. |
| pypynum.ufuncs | Universal functions and vectorized operations. |
| pypynum.utils | Utility programs and auxiliary functions. |
| pypynum.vectors | Vector operations and calculations. |
| pypynum.zh_cn | Provides Chinese language interfaces for various functionalities. |
The Zen of PyPyNum (Preview)
The Zen of PyPyNum, by Shen Jiayi
In this mathematical sanctuary, we weave our algorithms with pure Python threads.
Precision outweighs approximation.
Elegance in mathematics transcends the bulky algorithms.
Clarity in logic illuminates the darkest problems.
Simplicity in form is the pinnacle of sophistication.
Flat hierarchies in our code mirror the linear nature of functions.
Sparse code, like a minimal polynomial, retains essence without redundancy.
...
Do you want to view all the content?
Enter "from pypynum import this" in your
Python interpreter and run it!
September 5, 2024
Functional Changes Compared to the Previous Version
!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
PyPyNum version 1.18.0 has undergone the following functional changes compared to version 1.17.2:
1. `arrays` Module
a. Fixed reflection operation errors in the `Array` class.
2. `ciphers` Module
a. The `base_64` function's input parameter and return type have been changed from `str` to `bytes`.
3. `groups` Module
a. The `Group` class has been refactored and new available methods have been added.
b. The `group` function now accepts an additional `operation` parameter.
4. `images` Module
a. Added a new class `JPEG` for JPEG image handling.
b. Added JPEG processing functions: `jpeg_adjust_qtable`, `jpeg_category`, `jpeg_channel_encoding`,
`jpeg_chroma_dc_huff`, `jpeg_dct8x8`, `jpeg_decode_pixels`, `jpeg_encode_pixels`, `jpeg_luma_dc_huff`,
`jpeg_rle_decoding`, `jpeg_rle_encoding`, `jpeg_split_pixels`, and `jpeg_zigzag`.
c. Added color space con
