PyPyNum 1.12.1__tar.gz → 1.13.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pypynum-1.12.1 → pypynum-1.13.0}/PKG-INFO +138 -29
- {pypynum-1.12.1 → pypynum-1.13.0}/PyPyNum.egg-info/PKG-INFO +138 -29
- {pypynum-1.12.1 → pypynum-1.13.0}/PyPyNum.egg-info/SOURCES.txt +1 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/README.md +137 -28
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/__init__.py +2 -1
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/equations.py +4 -5
- pypynum-1.13.0/pypynum/interp.py +118 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/maths.py +27 -18
- pypynum-1.13.0/pypynum/multiprec.py +541 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/polynomial.py +76 -9
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/random.py +1 -1
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/tools.py +0 -31
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/types.py +1 -1
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/zh_cn.py +46 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/setup.py +1 -1
- pypynum-1.12.1/pypynum/multiprec.py +0 -303
- {pypynum-1.12.1 → pypynum-1.13.0}/PyPyNum.egg-info/dependency_links.txt +0 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/PyPyNum.egg-info/top_level.txt +0 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/Array.py +0 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/FourierT.py +0 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/Geometry.py +0 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/Graph.py +0 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/Group.py +0 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/Logic.py +0 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/Matrix.py +0 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/NeuralN.py +0 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/PyPyNum.png +0 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/Quaternion.py +0 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/Symbolics.py +0 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/Tensor.py +0 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/Tree.py +0 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/Vector.py +0 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/chars.py +0 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/cipher.py +0 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/confs.py +0 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/constants.py +0 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/dists.py +0 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/errors.py +0 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/file.py +0 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/image.py +0 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/numbers.py +0 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/plotting.py +0 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/pprinters.py +0 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/regression.py +0 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/sequence.py +0 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/stattest.py +0 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/test.py +0 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/this.py +0 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/ufuncs.py +0 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/pypynum/utils.py +0 -0
- {pypynum-1.12.1 → pypynum-1.13.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PyPyNum
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.13.0
|
|
4
4
|
Summary: PyPyNum is a Python library for math & science computations, covering algebra, calculus, stats, with data structures like matrices, vectors, tensors. It offers numerical tools, programs, and supports computational ops, functions, processing, simulation, & visualization in data science & ML, crucial for research, engineering, & data processing.
|
|
5
5
|
Home-page: https://github.com/PythonSJL/PyPyNum
|
|
6
6
|
Author: Shen Jiayi
|
|
@@ -234,7 +234,7 @@ processing.</font><font color = red>[Python>=3.4]</font>
|
|
|
234
234
|
[](https://pepy.tech/project/pypynum)
|
|
235
235
|
[](https://pepy.tech/project/pypynum)
|
|
236
236
|
|
|
237
|
-
## Version -> 1.
|
|
237
|
+
## Version -> 1.13.0 | PyPI -> https://pypi.org/project/PyPyNum/ | Gitee -> https://www.gitee.com/PythonSJL/PyPyNum | GitHub -> https://github.com/PythonSJL/PyPyNum
|
|
238
238
|
|
|
239
239
|

|
|
240
240
|
|
|
@@ -251,8 +251,8 @@ The logo cannot be displayed on PyPI, it can be viewed in Gitee or GitHub.
|
|
|
251
251
|
supports other types of Python interpreters
|
|
252
252
|
+ 不定期更新版本,增加更多实用功能
|
|
253
253
|
+ Update versions periodically to add more practical features
|
|
254
|
-
+ 如需联系,请添加QQ号2261748025
|
|
255
|
-
+ If you need to contact, please add QQ number 2261748025 (Py𝙿𝚢𝚝𝚑𝚘𝚗-水晶兰)
|
|
254
|
+
+ 如需联系,请添加QQ号2261748025(Py𝙿𝚢𝚝𝚑𝚘𝚗-水晶兰),或者通过我的邮箱2261748025@qq.com
|
|
255
|
+
+ If you need to contact, please add QQ number 2261748025 (Py𝙿𝚢𝚝𝚑𝚘𝚗-水晶兰), or through my email 2261748025@qq.com
|
|
256
256
|
|
|
257
257
|
### 子模块的名称与功能简介
|
|
258
258
|
|
|
@@ -274,6 +274,7 @@ The logo cannot be displayed on PyPI, it can be viewed in Gitee or GitHub.
|
|
|
274
274
|
| `pypynum.Graph` | 图论算法 Graph Theory Algorithm |
|
|
275
275
|
| `pypynum.Group` | 群论算法 Group Theory Algorithm |
|
|
276
276
|
| `pypynum.image` | 图像处理 Image processing |
|
|
277
|
+
| `pypynum.interp` | 数据插值 Data Interpolation |
|
|
277
278
|
| `pypynum.Logic` | 逻辑电路设计 Logic circuit design |
|
|
278
279
|
| `pypynum.maths` | 通用数学函数 General mathematical functions |
|
|
279
280
|
| `pypynum.Matrix` | 矩阵运算 Matrix operation |
|
|
@@ -338,22 +339,102 @@ Python interpreter and run it!
|
|
|
338
339
|
```
|
|
339
340
|
!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
|
|
340
341
|
|
|
341
|
-
|
|
342
|
+
multiprec模块新增了一些函数
|
|
342
343
|
|
|
343
|
-
|
|
344
|
+
The multiprec module has added some new functions
|
|
344
345
|
|
|
345
|
-
|
|
346
|
+
asmpc(real: Union[int, float, str, decimal.Decimal, complex, pypynum.multiprec.MPComplex], imag: Union[int, float, str, decimal.Decimal] = 0, sigfigs: int = 28) -> pypynum.multiprec.MPComplex
|
|
347
|
+
mp_acos(x: Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
348
|
+
mp_asin(x: Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
349
|
+
mp_fresnel_c(x: Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
350
|
+
mp_fresnel_s(x: Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
346
351
|
|
|
347
|
-
multiprec模块新增了一些函数
|
|
348
352
|
|
|
349
|
-
|
|
353
|
+
新增了MPComplex类,
|
|
354
|
+
其实现了多精度复数计算,
|
|
355
|
+
目前支持加、减、乘、除、指数、对数等运算,
|
|
356
|
+
并且将在后面的版本增加各种三角函数。
|
|
357
|
+
|
|
358
|
+
The MPComplex class has been added,
|
|
359
|
+
which implements multi precision complex calculations.
|
|
360
|
+
Currently,
|
|
361
|
+
it supports operations such as addition,
|
|
362
|
+
subtraction,
|
|
363
|
+
multiplication,
|
|
364
|
+
division,
|
|
365
|
+
exponentiation,
|
|
366
|
+
and logarithm,
|
|
367
|
+
and various trigonometric functions will be added in later versions.
|
|
368
|
+
|
|
369
|
+
MPComplex(real, imag, sigfigs=28)
|
|
350
370
|
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
371
|
+
|
|
372
|
+
创建多精度复数时建议使用asmpc函数,
|
|
373
|
+
因为它可以更方便地把其他数值类型转换为MPComplex对象。
|
|
374
|
+
|
|
375
|
+
It is recommended to use the asmpc function when creating multi precision complex numbers,
|
|
376
|
+
as it can more easily convert other numerical types to MPComplex objects.
|
|
377
|
+
|
|
378
|
+
!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
|
|
379
|
+
|
|
380
|
+
移除了pypynum.tools.interp函数,改名为interp1d,
|
|
381
|
+
与新增的interp2d函数置于新的子模块——pypynum.interp。
|
|
382
|
+
|
|
383
|
+
Removed the pypynum.tools.interp function and renamed it interp1d,
|
|
384
|
+
placing it in a new submodule - pypynum.interp - along with the newly added interp2d function.
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
Help on module pypynum.interp in pypynum:
|
|
388
|
+
|
|
389
|
+
NAME
|
|
390
|
+
pypynum.interp
|
|
391
|
+
|
|
392
|
+
FUNCTIONS
|
|
393
|
+
bicubic(x)
|
|
394
|
+
Calculate the cubic B-spline interpolation function value.
|
|
395
|
+
:param x: The x value for which the B-spline function is evaluated.
|
|
396
|
+
:return: The value of the cubic B-spline function at x.
|
|
397
|
+
|
|
398
|
+
contribute(src, x, y, channels=None)
|
|
399
|
+
Calculate the contribution of the source array at a specific point after bicubic interpolation.
|
|
400
|
+
:param src: The source 2D array from which to interpolate.
|
|
401
|
+
:param x: The x-coordinate of the point to interpolate.
|
|
402
|
+
:param y: The y-coordinate of the point to interpolate.
|
|
403
|
+
:param channels: The number of channels if src is a multichannel array.
|
|
404
|
+
:return: The interpolated value at the point (x, y).
|
|
405
|
+
|
|
406
|
+
interp1d(data: Union[list, tuple], length: int) -> list
|
|
407
|
+
Introduction
|
|
408
|
+
==========
|
|
409
|
+
One-dimensional data interpolation
|
|
410
|
+
|
|
411
|
+
Example
|
|
412
|
+
==========
|
|
413
|
+
>>> interp1d((2, 4, 4, 2), 6)
|
|
414
|
+
[2, 3.320000000000001, 4.160000000000005, 4.160000000000012, 3.3200000000000074, 2]
|
|
415
|
+
>>>
|
|
416
|
+
:param data: List of data points to be interpolated. Must be at least two points.
|
|
417
|
+
:param length: The number of points in the resampled data set.
|
|
418
|
+
:return: A list of interpolated values at the new points.
|
|
419
|
+
|
|
420
|
+
interp2d(src, new_height, new_width, channels=None, round_res=False, min_val=None, max_val=None)
|
|
421
|
+
Introduction
|
|
422
|
+
==========
|
|
423
|
+
Two-dimensional data interpolation using bicubic spline interpolation.
|
|
424
|
+
|
|
425
|
+
Example
|
|
426
|
+
==========
|
|
427
|
+
>>> interp2d([[1, 2], [3, 4]], 3, 3)
|
|
428
|
+
[[1.0, 1.6875, 2.0], [2.25, 3.1640625, 3.375], [3.0, 3.9375, 4.0]]
|
|
429
|
+
>>>
|
|
430
|
+
:param src: The source 2D array to be interpolated.
|
|
431
|
+
:param new_height: The desired height of the interpolated array.
|
|
432
|
+
:param new_width: The desired width of the interpolated array.
|
|
433
|
+
:param channels: The number of channels if src is a multichannel array.
|
|
434
|
+
:param round_res: Whether to round the result to the nearest integer.
|
|
435
|
+
:param min_val: The minimum value to clip the interpolated results.
|
|
436
|
+
:param max_val: The maximum value to clip the interpolated results.
|
|
437
|
+
:return: A 2D array of the interpolated values with the new dimensions.
|
|
357
438
|
|
|
358
439
|
!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
|
|
359
440
|
```
|
|
@@ -594,6 +675,13 @@ PyPyNum
|
|
|
594
675
|
│ │ └── PNG(object)/__init__(self: Any) -> None
|
|
595
676
|
│ └── FUNCTION
|
|
596
677
|
│ └── crc(data: Any, length: Any, init: Any, xor: Any) -> Any
|
|
678
|
+
├── interp
|
|
679
|
+
│ ├── CLASS
|
|
680
|
+
│ └── FUNCTION
|
|
681
|
+
│ ├── bicubic(x: Any) -> Any
|
|
682
|
+
│ ├── contribute(src: Any, x: Any, y: Any, channels: Any) -> Any
|
|
683
|
+
│ ├── interp1d(data: typing.Union[list, tuple], length: int) -> list
|
|
684
|
+
│ └── interp2d(src: Any, new_height: Any, new_width: Any, channels: Any, round_res: Any, min_val: Any, max_val: Any) -> Any
|
|
597
685
|
├── maths
|
|
598
686
|
│ ├── CLASS
|
|
599
687
|
│ └── FUNCTION
|
|
@@ -630,7 +718,7 @@ PyPyNum
|
|
|
630
718
|
│ ├── csch(x: typing.Union[int, float]) -> typing.Union[int, float]
|
|
631
719
|
│ ├── cumprod(lst: typing.Union[list, tuple]) -> list
|
|
632
720
|
│ ├── cumsum(lst: typing.Union[list, tuple]) -> list
|
|
633
|
-
│ ├── deriv(f: Any, x:
|
|
721
|
+
│ ├── deriv(f: Any, x: float, h: float, method: str, args: Any, kwargs: Any) -> Any
|
|
634
722
|
│ ├── erf(x: typing.Union[int, float]) -> float
|
|
635
723
|
│ ├── exgcd(a: int, b: int) -> tuple
|
|
636
724
|
│ ├── exp(x: typing.Union[int, float]) -> typing.Union[int, float]
|
|
@@ -682,21 +770,28 @@ PyPyNum
|
|
|
682
770
|
│ └── zeta(alpha: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
683
771
|
├── multiprec
|
|
684
772
|
│ ├── CLASS
|
|
773
|
+
│ │ └── MPComplex(object)/__init__(self: Any, real: Any, imag: Any, sigfigs: Any) -> Any
|
|
685
774
|
│ └── FUNCTION
|
|
775
|
+
│ ├── _remove_trailing_zeros(value: typing.Any) -> str
|
|
776
|
+
│ ├── _setprec(sigfigs: int) -> Any
|
|
777
|
+
│ ├── asmpc(real: typing.Union[int, float, str, decimal.Decimal, complex, pypynum.multiprec.MPComplex], imag: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> pypynum.multiprec.MPComplex
|
|
686
778
|
│ ├── frac2dec(frac: fractions.Fraction, sigfigs: int) -> decimal.Decimal
|
|
687
|
-
│ ├──
|
|
688
|
-
│ ├──
|
|
689
|
-
│ ├──
|
|
690
|
-
│ ├──
|
|
779
|
+
│ ├── mp_acos(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
780
|
+
│ ├── mp_asin(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
781
|
+
│ ├── mp_atan(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
782
|
+
│ ├── mp_atan2(y: typing.Union[int, float, str, decimal.Decimal], x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
783
|
+
│ ├── mp_cos(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
784
|
+
│ ├── mp_cosh(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
691
785
|
│ ├── mp_e(sigfigs: int, method: str) -> decimal.Decimal
|
|
692
|
-
│ ├── mp_exp(x: typing.Union[int, str, decimal.Decimal], sigfigs: int, builtin: bool) -> decimal.Decimal
|
|
693
|
-
│ ├──
|
|
694
|
-
│ ├──
|
|
786
|
+
│ ├── mp_exp(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int, builtin: bool) -> decimal.Decimal
|
|
787
|
+
│ ├── mp_fresnel_c(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
788
|
+
│ ├── mp_fresnel_s(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
789
|
+
│ ├── mp_ln(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int, builtin: bool) -> decimal.Decimal
|
|
790
|
+
│ ├── mp_log(x: typing.Union[int, float, str, decimal.Decimal], base: typing.Union[int, float, str, decimal.Decimal], sigfigs: int, builtin: bool) -> decimal.Decimal
|
|
695
791
|
│ ├── mp_phi(sigfigs: int, method: str) -> decimal.Decimal
|
|
696
792
|
│ ├── mp_pi(sigfigs: int, method: str) -> decimal.Decimal
|
|
697
|
-
│ ├── mp_sin(x: typing.Union[int, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
698
|
-
│
|
|
699
|
-
│ └── setprec(sigfigs: int) -> Any
|
|
793
|
+
│ ├── mp_sin(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
794
|
+
│ └── mp_sinh(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
700
795
|
├── numbers
|
|
701
796
|
│ ├── CLASS
|
|
702
797
|
│ └── FUNCTION
|
|
@@ -718,10 +813,14 @@ PyPyNum
|
|
|
718
813
|
│ ├── CLASS
|
|
719
814
|
│ │ └── Polynomial(object)/__init__(self: Any, terms: Any) -> Any
|
|
720
815
|
│ └── FUNCTION
|
|
816
|
+
│ ├── chebgauss(n: Any) -> Any
|
|
817
|
+
│ ├── chebpoly(n: Any, single: Any) -> Any
|
|
721
818
|
│ ├── from_coeffs(coeffs: Any) -> Any
|
|
722
819
|
│ ├── from_coords(coords: Any) -> Any
|
|
723
|
-
│ ├──
|
|
724
|
-
│ ├──
|
|
820
|
+
│ ├── laggauss(n: Any) -> Any
|
|
821
|
+
│ ├── lagpoly(n: Any, single: Any) -> Any
|
|
822
|
+
│ ├── leggauss(n: Any) -> Any
|
|
823
|
+
│ ├── legpoly(n: Any, single: Any) -> Any
|
|
725
824
|
│ └── poly(terms: Any) -> Any
|
|
726
825
|
├── pprinters
|
|
727
826
|
│ ├── CLASS
|
|
@@ -777,7 +876,6 @@ PyPyNum
|
|
|
777
876
|
│ ├── generate_primes(limit: int) -> list
|
|
778
877
|
│ ├── generate_semiprimes(limit: int) -> list
|
|
779
878
|
│ ├── geomspace(start: typing.Union[int, float], stop: typing.Union[int, float], number: int) -> list
|
|
780
|
-
│ ├── interp(data: typing.Union[list, tuple], length: int) -> list
|
|
781
879
|
│ ├── linspace(start: typing.Union[int, float], stop: typing.Union[int, float], number: int) -> list
|
|
782
880
|
│ ├── magic_square(n: Any) -> Any
|
|
783
881
|
│ ├── primality(n: int, iter_num: int) -> bool
|
|
@@ -870,16 +968,22 @@ PyPyNum
|
|
|
870
968
|
├── 多精度余弦(x: typing.Union[int, float], 有效位数: int) -> decimal.Decimal
|
|
871
969
|
├── 多精度双曲余弦(x: typing.Union[int, float], 有效位数: int) -> decimal.Decimal
|
|
872
970
|
├── 多精度双曲正弦(x: typing.Union[int, float], 有效位数: int) -> decimal.Decimal
|
|
971
|
+
├── 多精度反余弦(x: typing.Union[int, float], 有效位数: int) -> decimal.Decimal
|
|
873
972
|
├── 多精度反正切(x: typing.Union[int, float], 有效位数: int) -> decimal.Decimal
|
|
973
|
+
├── 多精度反正弦(x: typing.Union[int, float], 有效位数: int) -> decimal.Decimal
|
|
874
974
|
├── 多精度圆周率(有效位数: int, 方法: str) -> decimal.Decimal
|
|
975
|
+
├── 多精度复数(实部: typing.Union[int, float, str, decimal.Decimal], 虚部: typing.Union[int, float, str, decimal.Decimal], 有效位数: int) -> pypynum.multiprec.MPComplex
|
|
875
976
|
├── 多精度对数(真数: typing.Union[int, float], 底数: typing.Union[int, float], 有效位数: int, 使用内置方法: bool) -> decimal.Decimal
|
|
876
977
|
├── 多精度方位角(y: typing.Union[int, float], x: typing.Union[int, float], 有效位数: int) -> decimal.Decimal
|
|
877
978
|
├── 多精度欧拉数(有效位数: int, 方法: str) -> decimal.Decimal
|
|
878
979
|
├── 多精度正弦(x: typing.Union[int, float], 有效位数: int) -> decimal.Decimal
|
|
879
980
|
├── 多精度自然对数(真数: typing.Union[int, float], 有效位数: int, 使用内置方法: bool) -> decimal.Decimal
|
|
880
981
|
├── 多精度自然指数(指数: typing.Union[int, float], 有效位数: int, 使用内置方法: bool) -> decimal.Decimal
|
|
982
|
+
├── 多精度菲涅耳余弦积分(x: typing.Union[int, float], 有效位数: int) -> decimal.Decimal
|
|
983
|
+
├── 多精度菲涅耳正弦积分(x: typing.Union[int, float], 有效位数: int) -> decimal.Decimal
|
|
881
984
|
├── 多精度黄金分割率(有效位数: int, 方法: str) -> decimal.Decimal
|
|
882
985
|
├── 多项式方程(系数: list) -> list
|
|
986
|
+
├── 字符串转整数(字符串: str) -> int
|
|
883
987
|
├── 导数(函数: Any, 参数: float, 步长: float, 额外参数: Any, 额外关键字参数: Any) -> float
|
|
884
988
|
├── 峰度(数据: typing.List[float], 费希尔: bool) -> float
|
|
885
989
|
├── 希尔256密码(文本: bytes, 密钥: list, 解密: bool) -> bytes
|
|
@@ -893,6 +997,8 @@ PyPyNum
|
|
|
893
997
|
├── 数组(数据: list, 检查: bool) -> pypynum.Array.Array
|
|
894
998
|
├── 整数转上标(标准字符串: str) -> str
|
|
895
999
|
├── 整数转下标(标准字符串: str) -> str
|
|
1000
|
+
├── 整数转单词(整数: int) -> str
|
|
1001
|
+
├── 整数转罗马数(整数: int, 上划线: bool) -> str
|
|
896
1002
|
├── 方差(数据: typing.List[float], 自由度: int) -> float
|
|
897
1003
|
├── 普莱费尔密码(文本: str, 密钥: str, 解密: bool) -> str
|
|
898
1004
|
├── 最大公约数(args: int) -> int
|
|
@@ -904,6 +1010,7 @@ PyPyNum
|
|
|
904
1010
|
├── 正切(x: typing.Union[int, float]) -> typing.Union[int, float]
|
|
905
1011
|
├── 正割(x: typing.Union[int, float]) -> typing.Union[int, float]
|
|
906
1012
|
├── 正弦(x: typing.Union[int, float]) -> typing.Union[int, float]
|
|
1013
|
+
├── 浮点数转分数(数值: float, 是否带分数: bool, 误差: float) -> tuple
|
|
907
1014
|
├── 相关系数(x: typing.List[float], y: typing.List[float]) -> float
|
|
908
1015
|
├── 积分(函数: Any, 积分开始: float, 积分结束: float, 积分点数: int, 额外参数: Any, 额外关键字参数: Any) -> float
|
|
909
1016
|
├── 积累乘积(数据: typing.List[float]) -> float
|
|
@@ -916,6 +1023,7 @@ PyPyNum
|
|
|
916
1023
|
├── 线性方程组(左边: list, 右边: list) -> list
|
|
917
1024
|
├── 组合数(总数: int, 选取数: int) -> int
|
|
918
1025
|
├── 维吉尼亚密码(文本: str, 密钥: str, 解密: bool) -> str
|
|
1026
|
+
├── 罗马数转整数(罗马数: str) -> int
|
|
919
1027
|
├── 自然对数(真数: typing.Union[int, float]) -> typing.Union[int, float]
|
|
920
1028
|
├── 自然指数(指数: typing.Union[int, float]) -> typing.Union[int, float]
|
|
921
1029
|
├── 莫尔斯密码(文本: str, 解密: bool) -> str
|
|
@@ -926,6 +1034,7 @@ PyPyNum
|
|
|
926
1034
|
├── 贝塞尔I0(x: typing.Union[int, float]) -> typing.Union[int, float]
|
|
927
1035
|
├── 贝塞尔Iv(v: typing.Union[int, float], x: typing.Union[int, float]) -> typing.Union[int, float]
|
|
928
1036
|
├── 负一整数次幂(指数: int) -> int
|
|
1037
|
+
├── 转为多精度复数(实部: typing.Union[int, float, str, decimal.Decimal, complex, pypynum.multiprec.MPComplex], 虚部: typing.Union[int, float, str, decimal.Decimal], 有效位数: int) -> pypynum.multiprec.MPComplex
|
|
929
1038
|
├── 转换为列表(数据: Any) -> list
|
|
930
1039
|
├── 转换为数组(数据: Any) -> pypynum.Array.Array
|
|
931
1040
|
├── 连续乘积(下界: int, 上界: int, 函数: typing.Callable) -> float
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PyPyNum
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.13.0
|
|
4
4
|
Summary: PyPyNum is a Python library for math & science computations, covering algebra, calculus, stats, with data structures like matrices, vectors, tensors. It offers numerical tools, programs, and supports computational ops, functions, processing, simulation, & visualization in data science & ML, crucial for research, engineering, & data processing.
|
|
5
5
|
Home-page: https://github.com/PythonSJL/PyPyNum
|
|
6
6
|
Author: Shen Jiayi
|
|
@@ -234,7 +234,7 @@ processing.</font><font color = red>[Python>=3.4]</font>
|
|
|
234
234
|
[](https://pepy.tech/project/pypynum)
|
|
235
235
|
[](https://pepy.tech/project/pypynum)
|
|
236
236
|
|
|
237
|
-
## Version -> 1.
|
|
237
|
+
## Version -> 1.13.0 | PyPI -> https://pypi.org/project/PyPyNum/ | Gitee -> https://www.gitee.com/PythonSJL/PyPyNum | GitHub -> https://github.com/PythonSJL/PyPyNum
|
|
238
238
|
|
|
239
239
|

|
|
240
240
|
|
|
@@ -251,8 +251,8 @@ The logo cannot be displayed on PyPI, it can be viewed in Gitee or GitHub.
|
|
|
251
251
|
supports other types of Python interpreters
|
|
252
252
|
+ 不定期更新版本,增加更多实用功能
|
|
253
253
|
+ Update versions periodically to add more practical features
|
|
254
|
-
+ 如需联系,请添加QQ号2261748025
|
|
255
|
-
+ If you need to contact, please add QQ number 2261748025 (Py𝙿𝚢𝚝𝚑𝚘𝚗-水晶兰)
|
|
254
|
+
+ 如需联系,请添加QQ号2261748025(Py𝙿𝚢𝚝𝚑𝚘𝚗-水晶兰),或者通过我的邮箱2261748025@qq.com
|
|
255
|
+
+ If you need to contact, please add QQ number 2261748025 (Py𝙿𝚢𝚝𝚑𝚘𝚗-水晶兰), or through my email 2261748025@qq.com
|
|
256
256
|
|
|
257
257
|
### 子模块的名称与功能简介
|
|
258
258
|
|
|
@@ -274,6 +274,7 @@ The logo cannot be displayed on PyPI, it can be viewed in Gitee or GitHub.
|
|
|
274
274
|
| `pypynum.Graph` | 图论算法 Graph Theory Algorithm |
|
|
275
275
|
| `pypynum.Group` | 群论算法 Group Theory Algorithm |
|
|
276
276
|
| `pypynum.image` | 图像处理 Image processing |
|
|
277
|
+
| `pypynum.interp` | 数据插值 Data Interpolation |
|
|
277
278
|
| `pypynum.Logic` | 逻辑电路设计 Logic circuit design |
|
|
278
279
|
| `pypynum.maths` | 通用数学函数 General mathematical functions |
|
|
279
280
|
| `pypynum.Matrix` | 矩阵运算 Matrix operation |
|
|
@@ -338,22 +339,102 @@ Python interpreter and run it!
|
|
|
338
339
|
```
|
|
339
340
|
!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
|
|
340
341
|
|
|
341
|
-
|
|
342
|
+
multiprec模块新增了一些函数
|
|
342
343
|
|
|
343
|
-
|
|
344
|
+
The multiprec module has added some new functions
|
|
344
345
|
|
|
345
|
-
|
|
346
|
+
asmpc(real: Union[int, float, str, decimal.Decimal, complex, pypynum.multiprec.MPComplex], imag: Union[int, float, str, decimal.Decimal] = 0, sigfigs: int = 28) -> pypynum.multiprec.MPComplex
|
|
347
|
+
mp_acos(x: Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
348
|
+
mp_asin(x: Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
349
|
+
mp_fresnel_c(x: Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
350
|
+
mp_fresnel_s(x: Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
346
351
|
|
|
347
|
-
multiprec模块新增了一些函数
|
|
348
352
|
|
|
349
|
-
|
|
353
|
+
新增了MPComplex类,
|
|
354
|
+
其实现了多精度复数计算,
|
|
355
|
+
目前支持加、减、乘、除、指数、对数等运算,
|
|
356
|
+
并且将在后面的版本增加各种三角函数。
|
|
357
|
+
|
|
358
|
+
The MPComplex class has been added,
|
|
359
|
+
which implements multi precision complex calculations.
|
|
360
|
+
Currently,
|
|
361
|
+
it supports operations such as addition,
|
|
362
|
+
subtraction,
|
|
363
|
+
multiplication,
|
|
364
|
+
division,
|
|
365
|
+
exponentiation,
|
|
366
|
+
and logarithm,
|
|
367
|
+
and various trigonometric functions will be added in later versions.
|
|
368
|
+
|
|
369
|
+
MPComplex(real, imag, sigfigs=28)
|
|
350
370
|
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
371
|
+
|
|
372
|
+
创建多精度复数时建议使用asmpc函数,
|
|
373
|
+
因为它可以更方便地把其他数值类型转换为MPComplex对象。
|
|
374
|
+
|
|
375
|
+
It is recommended to use the asmpc function when creating multi precision complex numbers,
|
|
376
|
+
as it can more easily convert other numerical types to MPComplex objects.
|
|
377
|
+
|
|
378
|
+
!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
|
|
379
|
+
|
|
380
|
+
移除了pypynum.tools.interp函数,改名为interp1d,
|
|
381
|
+
与新增的interp2d函数置于新的子模块——pypynum.interp。
|
|
382
|
+
|
|
383
|
+
Removed the pypynum.tools.interp function and renamed it interp1d,
|
|
384
|
+
placing it in a new submodule - pypynum.interp - along with the newly added interp2d function.
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
Help on module pypynum.interp in pypynum:
|
|
388
|
+
|
|
389
|
+
NAME
|
|
390
|
+
pypynum.interp
|
|
391
|
+
|
|
392
|
+
FUNCTIONS
|
|
393
|
+
bicubic(x)
|
|
394
|
+
Calculate the cubic B-spline interpolation function value.
|
|
395
|
+
:param x: The x value for which the B-spline function is evaluated.
|
|
396
|
+
:return: The value of the cubic B-spline function at x.
|
|
397
|
+
|
|
398
|
+
contribute(src, x, y, channels=None)
|
|
399
|
+
Calculate the contribution of the source array at a specific point after bicubic interpolation.
|
|
400
|
+
:param src: The source 2D array from which to interpolate.
|
|
401
|
+
:param x: The x-coordinate of the point to interpolate.
|
|
402
|
+
:param y: The y-coordinate of the point to interpolate.
|
|
403
|
+
:param channels: The number of channels if src is a multichannel array.
|
|
404
|
+
:return: The interpolated value at the point (x, y).
|
|
405
|
+
|
|
406
|
+
interp1d(data: Union[list, tuple], length: int) -> list
|
|
407
|
+
Introduction
|
|
408
|
+
==========
|
|
409
|
+
One-dimensional data interpolation
|
|
410
|
+
|
|
411
|
+
Example
|
|
412
|
+
==========
|
|
413
|
+
>>> interp1d((2, 4, 4, 2), 6)
|
|
414
|
+
[2, 3.320000000000001, 4.160000000000005, 4.160000000000012, 3.3200000000000074, 2]
|
|
415
|
+
>>>
|
|
416
|
+
:param data: List of data points to be interpolated. Must be at least two points.
|
|
417
|
+
:param length: The number of points in the resampled data set.
|
|
418
|
+
:return: A list of interpolated values at the new points.
|
|
419
|
+
|
|
420
|
+
interp2d(src, new_height, new_width, channels=None, round_res=False, min_val=None, max_val=None)
|
|
421
|
+
Introduction
|
|
422
|
+
==========
|
|
423
|
+
Two-dimensional data interpolation using bicubic spline interpolation.
|
|
424
|
+
|
|
425
|
+
Example
|
|
426
|
+
==========
|
|
427
|
+
>>> interp2d([[1, 2], [3, 4]], 3, 3)
|
|
428
|
+
[[1.0, 1.6875, 2.0], [2.25, 3.1640625, 3.375], [3.0, 3.9375, 4.0]]
|
|
429
|
+
>>>
|
|
430
|
+
:param src: The source 2D array to be interpolated.
|
|
431
|
+
:param new_height: The desired height of the interpolated array.
|
|
432
|
+
:param new_width: The desired width of the interpolated array.
|
|
433
|
+
:param channels: The number of channels if src is a multichannel array.
|
|
434
|
+
:param round_res: Whether to round the result to the nearest integer.
|
|
435
|
+
:param min_val: The minimum value to clip the interpolated results.
|
|
436
|
+
:param max_val: The maximum value to clip the interpolated results.
|
|
437
|
+
:return: A 2D array of the interpolated values with the new dimensions.
|
|
357
438
|
|
|
358
439
|
!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
|
|
359
440
|
```
|
|
@@ -594,6 +675,13 @@ PyPyNum
|
|
|
594
675
|
│ │ └── PNG(object)/__init__(self: Any) -> None
|
|
595
676
|
│ └── FUNCTION
|
|
596
677
|
│ └── crc(data: Any, length: Any, init: Any, xor: Any) -> Any
|
|
678
|
+
├── interp
|
|
679
|
+
│ ├── CLASS
|
|
680
|
+
│ └── FUNCTION
|
|
681
|
+
│ ├── bicubic(x: Any) -> Any
|
|
682
|
+
│ ├── contribute(src: Any, x: Any, y: Any, channels: Any) -> Any
|
|
683
|
+
│ ├── interp1d(data: typing.Union[list, tuple], length: int) -> list
|
|
684
|
+
│ └── interp2d(src: Any, new_height: Any, new_width: Any, channels: Any, round_res: Any, min_val: Any, max_val: Any) -> Any
|
|
597
685
|
├── maths
|
|
598
686
|
│ ├── CLASS
|
|
599
687
|
│ └── FUNCTION
|
|
@@ -630,7 +718,7 @@ PyPyNum
|
|
|
630
718
|
│ ├── csch(x: typing.Union[int, float]) -> typing.Union[int, float]
|
|
631
719
|
│ ├── cumprod(lst: typing.Union[list, tuple]) -> list
|
|
632
720
|
│ ├── cumsum(lst: typing.Union[list, tuple]) -> list
|
|
633
|
-
│ ├── deriv(f: Any, x:
|
|
721
|
+
│ ├── deriv(f: Any, x: float, h: float, method: str, args: Any, kwargs: Any) -> Any
|
|
634
722
|
│ ├── erf(x: typing.Union[int, float]) -> float
|
|
635
723
|
│ ├── exgcd(a: int, b: int) -> tuple
|
|
636
724
|
│ ├── exp(x: typing.Union[int, float]) -> typing.Union[int, float]
|
|
@@ -682,21 +770,28 @@ PyPyNum
|
|
|
682
770
|
│ └── zeta(alpha: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
683
771
|
├── multiprec
|
|
684
772
|
│ ├── CLASS
|
|
773
|
+
│ │ └── MPComplex(object)/__init__(self: Any, real: Any, imag: Any, sigfigs: Any) -> Any
|
|
685
774
|
│ └── FUNCTION
|
|
775
|
+
│ ├── _remove_trailing_zeros(value: typing.Any) -> str
|
|
776
|
+
│ ├── _setprec(sigfigs: int) -> Any
|
|
777
|
+
│ ├── asmpc(real: typing.Union[int, float, str, decimal.Decimal, complex, pypynum.multiprec.MPComplex], imag: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> pypynum.multiprec.MPComplex
|
|
686
778
|
│ ├── frac2dec(frac: fractions.Fraction, sigfigs: int) -> decimal.Decimal
|
|
687
|
-
│ ├──
|
|
688
|
-
│ ├──
|
|
689
|
-
│ ├──
|
|
690
|
-
│ ├──
|
|
779
|
+
│ ├── mp_acos(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
780
|
+
│ ├── mp_asin(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
781
|
+
│ ├── mp_atan(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
782
|
+
│ ├── mp_atan2(y: typing.Union[int, float, str, decimal.Decimal], x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
783
|
+
│ ├── mp_cos(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
784
|
+
│ ├── mp_cosh(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
691
785
|
│ ├── mp_e(sigfigs: int, method: str) -> decimal.Decimal
|
|
692
|
-
│ ├── mp_exp(x: typing.Union[int, str, decimal.Decimal], sigfigs: int, builtin: bool) -> decimal.Decimal
|
|
693
|
-
│ ├──
|
|
694
|
-
│ ├──
|
|
786
|
+
│ ├── mp_exp(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int, builtin: bool) -> decimal.Decimal
|
|
787
|
+
│ ├── mp_fresnel_c(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
788
|
+
│ ├── mp_fresnel_s(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
789
|
+
│ ├── mp_ln(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int, builtin: bool) -> decimal.Decimal
|
|
790
|
+
│ ├── mp_log(x: typing.Union[int, float, str, decimal.Decimal], base: typing.Union[int, float, str, decimal.Decimal], sigfigs: int, builtin: bool) -> decimal.Decimal
|
|
695
791
|
│ ├── mp_phi(sigfigs: int, method: str) -> decimal.Decimal
|
|
696
792
|
│ ├── mp_pi(sigfigs: int, method: str) -> decimal.Decimal
|
|
697
|
-
│ ├── mp_sin(x: typing.Union[int, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
698
|
-
│
|
|
699
|
-
│ └── setprec(sigfigs: int) -> Any
|
|
793
|
+
│ ├── mp_sin(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
794
|
+
│ └── mp_sinh(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
700
795
|
├── numbers
|
|
701
796
|
│ ├── CLASS
|
|
702
797
|
│ └── FUNCTION
|
|
@@ -718,10 +813,14 @@ PyPyNum
|
|
|
718
813
|
│ ├── CLASS
|
|
719
814
|
│ │ └── Polynomial(object)/__init__(self: Any, terms: Any) -> Any
|
|
720
815
|
│ └── FUNCTION
|
|
816
|
+
│ ├── chebgauss(n: Any) -> Any
|
|
817
|
+
│ ├── chebpoly(n: Any, single: Any) -> Any
|
|
721
818
|
│ ├── from_coeffs(coeffs: Any) -> Any
|
|
722
819
|
│ ├── from_coords(coords: Any) -> Any
|
|
723
|
-
│ ├──
|
|
724
|
-
│ ├──
|
|
820
|
+
│ ├── laggauss(n: Any) -> Any
|
|
821
|
+
│ ├── lagpoly(n: Any, single: Any) -> Any
|
|
822
|
+
│ ├── leggauss(n: Any) -> Any
|
|
823
|
+
│ ├── legpoly(n: Any, single: Any) -> Any
|
|
725
824
|
│ └── poly(terms: Any) -> Any
|
|
726
825
|
├── pprinters
|
|
727
826
|
│ ├── CLASS
|
|
@@ -777,7 +876,6 @@ PyPyNum
|
|
|
777
876
|
│ ├── generate_primes(limit: int) -> list
|
|
778
877
|
│ ├── generate_semiprimes(limit: int) -> list
|
|
779
878
|
│ ├── geomspace(start: typing.Union[int, float], stop: typing.Union[int, float], number: int) -> list
|
|
780
|
-
│ ├── interp(data: typing.Union[list, tuple], length: int) -> list
|
|
781
879
|
│ ├── linspace(start: typing.Union[int, float], stop: typing.Union[int, float], number: int) -> list
|
|
782
880
|
│ ├── magic_square(n: Any) -> Any
|
|
783
881
|
│ ├── primality(n: int, iter_num: int) -> bool
|
|
@@ -870,16 +968,22 @@ PyPyNum
|
|
|
870
968
|
├── 多精度余弦(x: typing.Union[int, float], 有效位数: int) -> decimal.Decimal
|
|
871
969
|
├── 多精度双曲余弦(x: typing.Union[int, float], 有效位数: int) -> decimal.Decimal
|
|
872
970
|
├── 多精度双曲正弦(x: typing.Union[int, float], 有效位数: int) -> decimal.Decimal
|
|
971
|
+
├── 多精度反余弦(x: typing.Union[int, float], 有效位数: int) -> decimal.Decimal
|
|
873
972
|
├── 多精度反正切(x: typing.Union[int, float], 有效位数: int) -> decimal.Decimal
|
|
973
|
+
├── 多精度反正弦(x: typing.Union[int, float], 有效位数: int) -> decimal.Decimal
|
|
874
974
|
├── 多精度圆周率(有效位数: int, 方法: str) -> decimal.Decimal
|
|
975
|
+
├── 多精度复数(实部: typing.Union[int, float, str, decimal.Decimal], 虚部: typing.Union[int, float, str, decimal.Decimal], 有效位数: int) -> pypynum.multiprec.MPComplex
|
|
875
976
|
├── 多精度对数(真数: typing.Union[int, float], 底数: typing.Union[int, float], 有效位数: int, 使用内置方法: bool) -> decimal.Decimal
|
|
876
977
|
├── 多精度方位角(y: typing.Union[int, float], x: typing.Union[int, float], 有效位数: int) -> decimal.Decimal
|
|
877
978
|
├── 多精度欧拉数(有效位数: int, 方法: str) -> decimal.Decimal
|
|
878
979
|
├── 多精度正弦(x: typing.Union[int, float], 有效位数: int) -> decimal.Decimal
|
|
879
980
|
├── 多精度自然对数(真数: typing.Union[int, float], 有效位数: int, 使用内置方法: bool) -> decimal.Decimal
|
|
880
981
|
├── 多精度自然指数(指数: typing.Union[int, float], 有效位数: int, 使用内置方法: bool) -> decimal.Decimal
|
|
982
|
+
├── 多精度菲涅耳余弦积分(x: typing.Union[int, float], 有效位数: int) -> decimal.Decimal
|
|
983
|
+
├── 多精度菲涅耳正弦积分(x: typing.Union[int, float], 有效位数: int) -> decimal.Decimal
|
|
881
984
|
├── 多精度黄金分割率(有效位数: int, 方法: str) -> decimal.Decimal
|
|
882
985
|
├── 多项式方程(系数: list) -> list
|
|
986
|
+
├── 字符串转整数(字符串: str) -> int
|
|
883
987
|
├── 导数(函数: Any, 参数: float, 步长: float, 额外参数: Any, 额外关键字参数: Any) -> float
|
|
884
988
|
├── 峰度(数据: typing.List[float], 费希尔: bool) -> float
|
|
885
989
|
├── 希尔256密码(文本: bytes, 密钥: list, 解密: bool) -> bytes
|
|
@@ -893,6 +997,8 @@ PyPyNum
|
|
|
893
997
|
├── 数组(数据: list, 检查: bool) -> pypynum.Array.Array
|
|
894
998
|
├── 整数转上标(标准字符串: str) -> str
|
|
895
999
|
├── 整数转下标(标准字符串: str) -> str
|
|
1000
|
+
├── 整数转单词(整数: int) -> str
|
|
1001
|
+
├── 整数转罗马数(整数: int, 上划线: bool) -> str
|
|
896
1002
|
├── 方差(数据: typing.List[float], 自由度: int) -> float
|
|
897
1003
|
├── 普莱费尔密码(文本: str, 密钥: str, 解密: bool) -> str
|
|
898
1004
|
├── 最大公约数(args: int) -> int
|
|
@@ -904,6 +1010,7 @@ PyPyNum
|
|
|
904
1010
|
├── 正切(x: typing.Union[int, float]) -> typing.Union[int, float]
|
|
905
1011
|
├── 正割(x: typing.Union[int, float]) -> typing.Union[int, float]
|
|
906
1012
|
├── 正弦(x: typing.Union[int, float]) -> typing.Union[int, float]
|
|
1013
|
+
├── 浮点数转分数(数值: float, 是否带分数: bool, 误差: float) -> tuple
|
|
907
1014
|
├── 相关系数(x: typing.List[float], y: typing.List[float]) -> float
|
|
908
1015
|
├── 积分(函数: Any, 积分开始: float, 积分结束: float, 积分点数: int, 额外参数: Any, 额外关键字参数: Any) -> float
|
|
909
1016
|
├── 积累乘积(数据: typing.List[float]) -> float
|
|
@@ -916,6 +1023,7 @@ PyPyNum
|
|
|
916
1023
|
├── 线性方程组(左边: list, 右边: list) -> list
|
|
917
1024
|
├── 组合数(总数: int, 选取数: int) -> int
|
|
918
1025
|
├── 维吉尼亚密码(文本: str, 密钥: str, 解密: bool) -> str
|
|
1026
|
+
├── 罗马数转整数(罗马数: str) -> int
|
|
919
1027
|
├── 自然对数(真数: typing.Union[int, float]) -> typing.Union[int, float]
|
|
920
1028
|
├── 自然指数(指数: typing.Union[int, float]) -> typing.Union[int, float]
|
|
921
1029
|
├── 莫尔斯密码(文本: str, 解密: bool) -> str
|
|
@@ -926,6 +1034,7 @@ PyPyNum
|
|
|
926
1034
|
├── 贝塞尔I0(x: typing.Union[int, float]) -> typing.Union[int, float]
|
|
927
1035
|
├── 贝塞尔Iv(v: typing.Union[int, float], x: typing.Union[int, float]) -> typing.Union[int, float]
|
|
928
1036
|
├── 负一整数次幂(指数: int) -> int
|
|
1037
|
+
├── 转为多精度复数(实部: typing.Union[int, float, str, decimal.Decimal, complex, pypynum.multiprec.MPComplex], 虚部: typing.Union[int, float, str, decimal.Decimal], 有效位数: int) -> pypynum.multiprec.MPComplex
|
|
929
1038
|
├── 转换为列表(数据: Any) -> list
|
|
930
1039
|
├── 转换为数组(数据: Any) -> pypynum.Array.Array
|
|
931
1040
|
├── 连续乘积(下界: int, 上界: int, 函数: typing.Callable) -> float
|