PyPyNum 1.12.1__py3-none-any.whl → 1.13.0__py3-none-any.whl
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.dist-info → PyPyNum-1.13.0.dist-info}/METADATA +138 -29
- {PyPyNum-1.12.1.dist-info → PyPyNum-1.13.0.dist-info}/RECORD +15 -14
- pypynum/README.md +137 -28
- pypynum/__init__.py +2 -1
- pypynum/equations.py +4 -5
- pypynum/interp.py +118 -0
- pypynum/maths.py +27 -18
- pypynum/multiprec.py +253 -15
- pypynum/polynomial.py +76 -9
- pypynum/random.py +1 -1
- pypynum/tools.py +0 -31
- pypynum/types.py +1 -1
- pypynum/zh_cn.py +46 -0
- {PyPyNum-1.12.1.dist-info → PyPyNum-1.13.0.dist-info}/WHEEL +0 -0
- {PyPyNum-1.12.1.dist-info → PyPyNum-1.13.0.dist-info}/top_level.txt +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
|
|
@@ -8,39 +8,40 @@ pypynum/Matrix.py,sha256=TCq8Tjz5OjhbMkkEbGFgTgnT_UyQxDHbMj8OEFeJm9M,20408
|
|
|
8
8
|
pypynum/NeuralN.py,sha256=iSOvC9JW1h4AFGokGGOTkKie5hAYN_YT9H4f3apI9b8,3275
|
|
9
9
|
pypynum/PyPyNum.png,sha256=t96tJPWfHxT8kcXm_qZI2z5W36TgOqjCU9qdgbmlFws,11623
|
|
10
10
|
pypynum/Quaternion.py,sha256=-BW_crP_i-veHN0_pD3Z1dipFNUX198oZDrUYTsoZw0,8017
|
|
11
|
-
pypynum/README.md,sha256=
|
|
11
|
+
pypynum/README.md,sha256=uJCs7gfD9uWGtTux3ux69PLf_0d1sF_phuoZvupwb8k,77877
|
|
12
12
|
pypynum/Symbolics.py,sha256=u-Dig3OLs6qoLzxMpTAYJGq5uSWDMvgU13TAHKLyjMY,2768
|
|
13
13
|
pypynum/Tensor.py,sha256=gi7OjrGgP5BSJS9Oma1B2EdX9qSpMNIP2BnKLojdT78,3930
|
|
14
14
|
pypynum/Tree.py,sha256=BYnlb2kKNJ8kkuq8BAHIcLvPZw5KHxbvM7YuVGhQVMk,4330
|
|
15
15
|
pypynum/Vector.py,sha256=ee-gkBtyG0l5dLFwAKRTTlnDG05pWpM19RGN7VoPvqE,3212
|
|
16
|
-
pypynum/__init__.py,sha256=
|
|
16
|
+
pypynum/__init__.py,sha256=z13AowFFRvmI0WjXZ-6hOFlJSxJZRGUapW2B0EBpFXM,2896
|
|
17
17
|
pypynum/chars.py,sha256=ZOXZn2VzxmpHuvZ87ojhEib3CfTNgysRsFMFITHOA2E,2179
|
|
18
18
|
pypynum/cipher.py,sha256=DaitY3DCoTuzyrXtD8Ap3IYDLhlMc7-o4AJfLlicvB4,10011
|
|
19
19
|
pypynum/confs.py,sha256=iFz83iZ1A4BK4LTqo-ZbpAcoxhYWUxtEQKsr_-d8ryw,2869
|
|
20
20
|
pypynum/constants.py,sha256=xELv4DIKEqBdwF9tUqCmTQVbgVrlrj385ht5eawvshU,1406
|
|
21
21
|
pypynum/dists.py,sha256=WHDeM0oC4Do77p9TVVMu3pgWzI04gYdK_s1TNGhets0,29697
|
|
22
|
-
pypynum/equations.py,sha256=
|
|
22
|
+
pypynum/equations.py,sha256=26XEQBIcL3cyPLO6YFvBK1dlFHw-du3nQG4-cXAFYe0,557
|
|
23
23
|
pypynum/errors.py,sha256=I3nh5YD5F_sBoa7hjPJi81goRflbVAZcjtmW7O2BhJk,220
|
|
24
24
|
pypynum/file.py,sha256=-sg3pndZdiyM8cS6KeIhCvB6NfAovHnLOhEf0XkjidE,3411
|
|
25
25
|
pypynum/image.py,sha256=nhTZmaBVIKhuar-CcwZWb-hRYmkj4b_g7vIlYvEJEEE,12155
|
|
26
|
-
pypynum/
|
|
27
|
-
pypynum/
|
|
26
|
+
pypynum/interp.py,sha256=PweAmBFCDpHtpo8GJxUdmpZ2DQY9C5HmmQ9zMWKQPV4,4896
|
|
27
|
+
pypynum/maths.py,sha256=cERFo7YK191xZ3JnshzXk4am9maTJUIeIEf1zIQitIM,31764
|
|
28
|
+
pypynum/multiprec.py,sha256=OVlfOfFx00OzgWVy0m3ZCtKvlR7g_1-bola6gyQwEl0,16844
|
|
28
29
|
pypynum/numbers.py,sha256=PqQ07TWfcNlfjCjUg1UJda-BI1uOffmQVK1qIGbll_s,8619
|
|
29
30
|
pypynum/plotting.py,sha256=mbIYK5TpY1qvuMJrqz4d8bxJEiZww3AI684vSKV-DgU,7781
|
|
30
|
-
pypynum/polynomial.py,sha256=
|
|
31
|
+
pypynum/polynomial.py,sha256=60hDQG_iRwduFFqawSTzAG6F3eHqfgrSnSGDwBLQB-s,14587
|
|
31
32
|
pypynum/pprinters.py,sha256=Qt9-V5SUyoOqC3lsUU5D5zSSM-MmcnFCUyUtLxhS4pE,2514
|
|
32
|
-
pypynum/random.py,sha256=
|
|
33
|
+
pypynum/random.py,sha256=qy2ISoHQVJ-zOVITplmCGvWEw-EZc18r-hZl8dvDimE,2274
|
|
33
34
|
pypynum/regression.py,sha256=PfTM8glJSi3Jgvc_C_3hQBeVjkbrzSuDqRbEf3s403w,2040
|
|
34
35
|
pypynum/sequence.py,sha256=7NSZm_p_B00KFj5XZrtSm2FXhsowxs0qg_Q_P4pAA8o,7194
|
|
35
36
|
pypynum/stattest.py,sha256=W1041KeVsvdcLKFJOK4hQm_DjO5ZjUE8WEmGUe-4_Zk,5507
|
|
36
37
|
pypynum/test.py,sha256=hkLxhtBl9XVjaqcbzDPEuYB92vDXfM9f7AS3tF5FSEE,9005
|
|
37
38
|
pypynum/this.py,sha256=oRX1OpMa4NJmQSdEjJxfszEo5FRYlxRiF8OTDRIcdMA,2154
|
|
38
|
-
pypynum/tools.py,sha256=
|
|
39
|
-
pypynum/types.py,sha256=
|
|
39
|
+
pypynum/tools.py,sha256=dEUgRxCahVm-fk8fRxrLqylLAHZygjWbmKmB9Nw_RZk,11395
|
|
40
|
+
pypynum/types.py,sha256=ek9tydfCspsjcvxVFv_rJegnTHl6PHwKPdqjvHfkvDg,246
|
|
40
41
|
pypynum/ufuncs.py,sha256=g2tewdsGa4VrIq2khR-0SWJoXBitVRN87DulOnTxxDA,2572
|
|
41
42
|
pypynum/utils.py,sha256=OqUFVraYDTSubF9QhZm8WC6A0ppnkhVU0YtAeYN9EyU,21048
|
|
42
|
-
pypynum/zh_cn.py,sha256=
|
|
43
|
-
PyPyNum-1.
|
|
44
|
-
PyPyNum-1.
|
|
45
|
-
PyPyNum-1.
|
|
46
|
-
PyPyNum-1.
|
|
43
|
+
pypynum/zh_cn.py,sha256=Ky9AWuW64Vbhg_Pdn0Yksls7IEM_zk7uz1bb4iKmGNc,13008
|
|
44
|
+
PyPyNum-1.13.0.dist-info/METADATA,sha256=P9M8A3kV5TxksHjXsOO3yuxd1lQIA1UwKNGq6ZWIml8,92256
|
|
45
|
+
PyPyNum-1.13.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
46
|
+
PyPyNum-1.13.0.dist-info/top_level.txt,sha256=4wW_Xb4bRglmiMsdPAe9f75MkXhNpuN88H17g_Cr5u8,8
|
|
47
|
+
PyPyNum-1.13.0.dist-info/RECORD,,
|
pypynum/README.md
CHANGED
|
@@ -20,7 +20,7 @@ processing.</font><font color = red>[Python>=3.4]</font>
|
|
|
20
20
|
[](https://pepy.tech/project/pypynum)
|
|
21
21
|
[](https://pepy.tech/project/pypynum)
|
|
22
22
|
|
|
23
|
-
## Version -> 1.
|
|
23
|
+
## Version -> 1.13.0 | PyPI -> https://pypi.org/project/PyPyNum/ | Gitee -> https://www.gitee.com/PythonSJL/PyPyNum | GitHub -> https://github.com/PythonSJL/PyPyNum
|
|
24
24
|
|
|
25
25
|

|
|
26
26
|
|
|
@@ -37,8 +37,8 @@ The logo cannot be displayed on PyPI, it can be viewed in Gitee or GitHub.
|
|
|
37
37
|
supports other types of Python interpreters
|
|
38
38
|
+ 不定期更新版本,增加更多实用功能
|
|
39
39
|
+ Update versions periodically to add more practical features
|
|
40
|
-
+ 如需联系,请添加QQ号2261748025
|
|
41
|
-
+ If you need to contact, please add QQ number 2261748025 (Py𝙿𝚢𝚝𝚑𝚘𝚗-水晶兰)
|
|
40
|
+
+ 如需联系,请添加QQ号2261748025(Py𝙿𝚢𝚝𝚑𝚘𝚗-水晶兰),或者通过我的邮箱2261748025@qq.com
|
|
41
|
+
+ If you need to contact, please add QQ number 2261748025 (Py𝙿𝚢𝚝𝚑𝚘𝚗-水晶兰), or through my email 2261748025@qq.com
|
|
42
42
|
|
|
43
43
|
### 子模块的名称与功能简介
|
|
44
44
|
|
|
@@ -60,6 +60,7 @@ The logo cannot be displayed on PyPI, it can be viewed in Gitee or GitHub.
|
|
|
60
60
|
| `pypynum.Graph` | 图论算法 Graph Theory Algorithm |
|
|
61
61
|
| `pypynum.Group` | 群论算法 Group Theory Algorithm |
|
|
62
62
|
| `pypynum.image` | 图像处理 Image processing |
|
|
63
|
+
| `pypynum.interp` | 数据插值 Data Interpolation |
|
|
63
64
|
| `pypynum.Logic` | 逻辑电路设计 Logic circuit design |
|
|
64
65
|
| `pypynum.maths` | 通用数学函数 General mathematical functions |
|
|
65
66
|
| `pypynum.Matrix` | 矩阵运算 Matrix operation |
|
|
@@ -124,22 +125,102 @@ Python interpreter and run it!
|
|
|
124
125
|
```
|
|
125
126
|
!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
|
|
126
127
|
|
|
127
|
-
|
|
128
|
+
multiprec模块新增了一些函数
|
|
128
129
|
|
|
129
|
-
|
|
130
|
+
The multiprec module has added some new functions
|
|
130
131
|
|
|
131
|
-
|
|
132
|
+
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
|
|
133
|
+
mp_acos(x: Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
134
|
+
mp_asin(x: Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
135
|
+
mp_fresnel_c(x: Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
136
|
+
mp_fresnel_s(x: Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
132
137
|
|
|
133
|
-
multiprec模块新增了一些函数
|
|
134
138
|
|
|
135
|
-
|
|
139
|
+
新增了MPComplex类,
|
|
140
|
+
其实现了多精度复数计算,
|
|
141
|
+
目前支持加、减、乘、除、指数、对数等运算,
|
|
142
|
+
并且将在后面的版本增加各种三角函数。
|
|
143
|
+
|
|
144
|
+
The MPComplex class has been added,
|
|
145
|
+
which implements multi precision complex calculations.
|
|
146
|
+
Currently,
|
|
147
|
+
it supports operations such as addition,
|
|
148
|
+
subtraction,
|
|
149
|
+
multiplication,
|
|
150
|
+
division,
|
|
151
|
+
exponentiation,
|
|
152
|
+
and logarithm,
|
|
153
|
+
and various trigonometric functions will be added in later versions.
|
|
154
|
+
|
|
155
|
+
MPComplex(real, imag, sigfigs=28)
|
|
136
156
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
157
|
+
|
|
158
|
+
创建多精度复数时建议使用asmpc函数,
|
|
159
|
+
因为它可以更方便地把其他数值类型转换为MPComplex对象。
|
|
160
|
+
|
|
161
|
+
It is recommended to use the asmpc function when creating multi precision complex numbers,
|
|
162
|
+
as it can more easily convert other numerical types to MPComplex objects.
|
|
163
|
+
|
|
164
|
+
!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
|
|
165
|
+
|
|
166
|
+
移除了pypynum.tools.interp函数,改名为interp1d,
|
|
167
|
+
与新增的interp2d函数置于新的子模块——pypynum.interp。
|
|
168
|
+
|
|
169
|
+
Removed the pypynum.tools.interp function and renamed it interp1d,
|
|
170
|
+
placing it in a new submodule - pypynum.interp - along with the newly added interp2d function.
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
Help on module pypynum.interp in pypynum:
|
|
174
|
+
|
|
175
|
+
NAME
|
|
176
|
+
pypynum.interp
|
|
177
|
+
|
|
178
|
+
FUNCTIONS
|
|
179
|
+
bicubic(x)
|
|
180
|
+
Calculate the cubic B-spline interpolation function value.
|
|
181
|
+
:param x: The x value for which the B-spline function is evaluated.
|
|
182
|
+
:return: The value of the cubic B-spline function at x.
|
|
183
|
+
|
|
184
|
+
contribute(src, x, y, channels=None)
|
|
185
|
+
Calculate the contribution of the source array at a specific point after bicubic interpolation.
|
|
186
|
+
:param src: The source 2D array from which to interpolate.
|
|
187
|
+
:param x: The x-coordinate of the point to interpolate.
|
|
188
|
+
:param y: The y-coordinate of the point to interpolate.
|
|
189
|
+
:param channels: The number of channels if src is a multichannel array.
|
|
190
|
+
:return: The interpolated value at the point (x, y).
|
|
191
|
+
|
|
192
|
+
interp1d(data: Union[list, tuple], length: int) -> list
|
|
193
|
+
Introduction
|
|
194
|
+
==========
|
|
195
|
+
One-dimensional data interpolation
|
|
196
|
+
|
|
197
|
+
Example
|
|
198
|
+
==========
|
|
199
|
+
>>> interp1d((2, 4, 4, 2), 6)
|
|
200
|
+
[2, 3.320000000000001, 4.160000000000005, 4.160000000000012, 3.3200000000000074, 2]
|
|
201
|
+
>>>
|
|
202
|
+
:param data: List of data points to be interpolated. Must be at least two points.
|
|
203
|
+
:param length: The number of points in the resampled data set.
|
|
204
|
+
:return: A list of interpolated values at the new points.
|
|
205
|
+
|
|
206
|
+
interp2d(src, new_height, new_width, channels=None, round_res=False, min_val=None, max_val=None)
|
|
207
|
+
Introduction
|
|
208
|
+
==========
|
|
209
|
+
Two-dimensional data interpolation using bicubic spline interpolation.
|
|
210
|
+
|
|
211
|
+
Example
|
|
212
|
+
==========
|
|
213
|
+
>>> interp2d([[1, 2], [3, 4]], 3, 3)
|
|
214
|
+
[[1.0, 1.6875, 2.0], [2.25, 3.1640625, 3.375], [3.0, 3.9375, 4.0]]
|
|
215
|
+
>>>
|
|
216
|
+
:param src: The source 2D array to be interpolated.
|
|
217
|
+
:param new_height: The desired height of the interpolated array.
|
|
218
|
+
:param new_width: The desired width of the interpolated array.
|
|
219
|
+
:param channels: The number of channels if src is a multichannel array.
|
|
220
|
+
:param round_res: Whether to round the result to the nearest integer.
|
|
221
|
+
:param min_val: The minimum value to clip the interpolated results.
|
|
222
|
+
:param max_val: The maximum value to clip the interpolated results.
|
|
223
|
+
:return: A 2D array of the interpolated values with the new dimensions.
|
|
143
224
|
|
|
144
225
|
!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
|
|
145
226
|
```
|
|
@@ -380,6 +461,13 @@ PyPyNum
|
|
|
380
461
|
│ │ └── PNG(object)/__init__(self: Any) -> None
|
|
381
462
|
│ └── FUNCTION
|
|
382
463
|
│ └── crc(data: Any, length: Any, init: Any, xor: Any) -> Any
|
|
464
|
+
├── interp
|
|
465
|
+
│ ├── CLASS
|
|
466
|
+
│ └── FUNCTION
|
|
467
|
+
│ ├── bicubic(x: Any) -> Any
|
|
468
|
+
│ ├── contribute(src: Any, x: Any, y: Any, channels: Any) -> Any
|
|
469
|
+
│ ├── interp1d(data: typing.Union[list, tuple], length: int) -> list
|
|
470
|
+
│ └── interp2d(src: Any, new_height: Any, new_width: Any, channels: Any, round_res: Any, min_val: Any, max_val: Any) -> Any
|
|
383
471
|
├── maths
|
|
384
472
|
│ ├── CLASS
|
|
385
473
|
│ └── FUNCTION
|
|
@@ -416,7 +504,7 @@ PyPyNum
|
|
|
416
504
|
│ ├── csch(x: typing.Union[int, float]) -> typing.Union[int, float]
|
|
417
505
|
│ ├── cumprod(lst: typing.Union[list, tuple]) -> list
|
|
418
506
|
│ ├── cumsum(lst: typing.Union[list, tuple]) -> list
|
|
419
|
-
│ ├── deriv(f: Any, x:
|
|
507
|
+
│ ├── deriv(f: Any, x: float, h: float, method: str, args: Any, kwargs: Any) -> Any
|
|
420
508
|
│ ├── erf(x: typing.Union[int, float]) -> float
|
|
421
509
|
│ ├── exgcd(a: int, b: int) -> tuple
|
|
422
510
|
│ ├── exp(x: typing.Union[int, float]) -> typing.Union[int, float]
|
|
@@ -468,21 +556,28 @@ PyPyNum
|
|
|
468
556
|
│ └── zeta(alpha: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
469
557
|
├── multiprec
|
|
470
558
|
│ ├── CLASS
|
|
559
|
+
│ │ └── MPComplex(object)/__init__(self: Any, real: Any, imag: Any, sigfigs: Any) -> Any
|
|
471
560
|
│ └── FUNCTION
|
|
561
|
+
│ ├── _remove_trailing_zeros(value: typing.Any) -> str
|
|
562
|
+
│ ├── _setprec(sigfigs: int) -> Any
|
|
563
|
+
│ ├── 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
|
|
472
564
|
│ ├── frac2dec(frac: fractions.Fraction, sigfigs: int) -> decimal.Decimal
|
|
473
|
-
│ ├──
|
|
474
|
-
│ ├──
|
|
475
|
-
│ ├──
|
|
476
|
-
│ ├──
|
|
565
|
+
│ ├── mp_acos(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
566
|
+
│ ├── mp_asin(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
567
|
+
│ ├── mp_atan(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
568
|
+
│ ├── mp_atan2(y: typing.Union[int, float, str, decimal.Decimal], x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
569
|
+
│ ├── mp_cos(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
570
|
+
│ ├── mp_cosh(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
477
571
|
│ ├── mp_e(sigfigs: int, method: str) -> decimal.Decimal
|
|
478
|
-
│ ├── mp_exp(x: typing.Union[int, str, decimal.Decimal], sigfigs: int, builtin: bool) -> decimal.Decimal
|
|
479
|
-
│ ├──
|
|
480
|
-
│ ├──
|
|
572
|
+
│ ├── mp_exp(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int, builtin: bool) -> decimal.Decimal
|
|
573
|
+
│ ├── mp_fresnel_c(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
574
|
+
│ ├── mp_fresnel_s(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
575
|
+
│ ├── mp_ln(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int, builtin: bool) -> decimal.Decimal
|
|
576
|
+
│ ├── mp_log(x: typing.Union[int, float, str, decimal.Decimal], base: typing.Union[int, float, str, decimal.Decimal], sigfigs: int, builtin: bool) -> decimal.Decimal
|
|
481
577
|
│ ├── mp_phi(sigfigs: int, method: str) -> decimal.Decimal
|
|
482
578
|
│ ├── mp_pi(sigfigs: int, method: str) -> decimal.Decimal
|
|
483
|
-
│ ├── mp_sin(x: typing.Union[int, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
484
|
-
│
|
|
485
|
-
│ └── setprec(sigfigs: int) -> Any
|
|
579
|
+
│ ├── mp_sin(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
580
|
+
│ └── mp_sinh(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
486
581
|
├── numbers
|
|
487
582
|
│ ├── CLASS
|
|
488
583
|
│ └── FUNCTION
|
|
@@ -504,10 +599,14 @@ PyPyNum
|
|
|
504
599
|
│ ├── CLASS
|
|
505
600
|
│ │ └── Polynomial(object)/__init__(self: Any, terms: Any) -> Any
|
|
506
601
|
│ └── FUNCTION
|
|
602
|
+
│ ├── chebgauss(n: Any) -> Any
|
|
603
|
+
│ ├── chebpoly(n: Any, single: Any) -> Any
|
|
507
604
|
│ ├── from_coeffs(coeffs: Any) -> Any
|
|
508
605
|
│ ├── from_coords(coords: Any) -> Any
|
|
509
|
-
│ ├──
|
|
510
|
-
│ ├──
|
|
606
|
+
│ ├── laggauss(n: Any) -> Any
|
|
607
|
+
│ ├── lagpoly(n: Any, single: Any) -> Any
|
|
608
|
+
│ ├── leggauss(n: Any) -> Any
|
|
609
|
+
│ ├── legpoly(n: Any, single: Any) -> Any
|
|
511
610
|
│ └── poly(terms: Any) -> Any
|
|
512
611
|
├── pprinters
|
|
513
612
|
│ ├── CLASS
|
|
@@ -563,7 +662,6 @@ PyPyNum
|
|
|
563
662
|
│ ├── generate_primes(limit: int) -> list
|
|
564
663
|
│ ├── generate_semiprimes(limit: int) -> list
|
|
565
664
|
│ ├── geomspace(start: typing.Union[int, float], stop: typing.Union[int, float], number: int) -> list
|
|
566
|
-
│ ├── interp(data: typing.Union[list, tuple], length: int) -> list
|
|
567
665
|
│ ├── linspace(start: typing.Union[int, float], stop: typing.Union[int, float], number: int) -> list
|
|
568
666
|
│ ├── magic_square(n: Any) -> Any
|
|
569
667
|
│ ├── primality(n: int, iter_num: int) -> bool
|
|
@@ -656,16 +754,22 @@ PyPyNum
|
|
|
656
754
|
├── 多精度余弦(x: typing.Union[int, float], 有效位数: int) -> decimal.Decimal
|
|
657
755
|
├── 多精度双曲余弦(x: typing.Union[int, float], 有效位数: int) -> decimal.Decimal
|
|
658
756
|
├── 多精度双曲正弦(x: typing.Union[int, float], 有效位数: int) -> decimal.Decimal
|
|
757
|
+
├── 多精度反余弦(x: typing.Union[int, float], 有效位数: int) -> decimal.Decimal
|
|
659
758
|
├── 多精度反正切(x: typing.Union[int, float], 有效位数: int) -> decimal.Decimal
|
|
759
|
+
├── 多精度反正弦(x: typing.Union[int, float], 有效位数: int) -> decimal.Decimal
|
|
660
760
|
├── 多精度圆周率(有效位数: int, 方法: str) -> decimal.Decimal
|
|
761
|
+
├── 多精度复数(实部: typing.Union[int, float, str, decimal.Decimal], 虚部: typing.Union[int, float, str, decimal.Decimal], 有效位数: int) -> pypynum.multiprec.MPComplex
|
|
661
762
|
├── 多精度对数(真数: typing.Union[int, float], 底数: typing.Union[int, float], 有效位数: int, 使用内置方法: bool) -> decimal.Decimal
|
|
662
763
|
├── 多精度方位角(y: typing.Union[int, float], x: typing.Union[int, float], 有效位数: int) -> decimal.Decimal
|
|
663
764
|
├── 多精度欧拉数(有效位数: int, 方法: str) -> decimal.Decimal
|
|
664
765
|
├── 多精度正弦(x: typing.Union[int, float], 有效位数: int) -> decimal.Decimal
|
|
665
766
|
├── 多精度自然对数(真数: typing.Union[int, float], 有效位数: int, 使用内置方法: bool) -> decimal.Decimal
|
|
666
767
|
├── 多精度自然指数(指数: typing.Union[int, float], 有效位数: int, 使用内置方法: bool) -> decimal.Decimal
|
|
768
|
+
├── 多精度菲涅耳余弦积分(x: typing.Union[int, float], 有效位数: int) -> decimal.Decimal
|
|
769
|
+
├── 多精度菲涅耳正弦积分(x: typing.Union[int, float], 有效位数: int) -> decimal.Decimal
|
|
667
770
|
├── 多精度黄金分割率(有效位数: int, 方法: str) -> decimal.Decimal
|
|
668
771
|
├── 多项式方程(系数: list) -> list
|
|
772
|
+
├── 字符串转整数(字符串: str) -> int
|
|
669
773
|
├── 导数(函数: Any, 参数: float, 步长: float, 额外参数: Any, 额外关键字参数: Any) -> float
|
|
670
774
|
├── 峰度(数据: typing.List[float], 费希尔: bool) -> float
|
|
671
775
|
├── 希尔256密码(文本: bytes, 密钥: list, 解密: bool) -> bytes
|
|
@@ -679,6 +783,8 @@ PyPyNum
|
|
|
679
783
|
├── 数组(数据: list, 检查: bool) -> pypynum.Array.Array
|
|
680
784
|
├── 整数转上标(标准字符串: str) -> str
|
|
681
785
|
├── 整数转下标(标准字符串: str) -> str
|
|
786
|
+
├── 整数转单词(整数: int) -> str
|
|
787
|
+
├── 整数转罗马数(整数: int, 上划线: bool) -> str
|
|
682
788
|
├── 方差(数据: typing.List[float], 自由度: int) -> float
|
|
683
789
|
├── 普莱费尔密码(文本: str, 密钥: str, 解密: bool) -> str
|
|
684
790
|
├── 最大公约数(args: int) -> int
|
|
@@ -690,6 +796,7 @@ PyPyNum
|
|
|
690
796
|
├── 正切(x: typing.Union[int, float]) -> typing.Union[int, float]
|
|
691
797
|
├── 正割(x: typing.Union[int, float]) -> typing.Union[int, float]
|
|
692
798
|
├── 正弦(x: typing.Union[int, float]) -> typing.Union[int, float]
|
|
799
|
+
├── 浮点数转分数(数值: float, 是否带分数: bool, 误差: float) -> tuple
|
|
693
800
|
├── 相关系数(x: typing.List[float], y: typing.List[float]) -> float
|
|
694
801
|
├── 积分(函数: Any, 积分开始: float, 积分结束: float, 积分点数: int, 额外参数: Any, 额外关键字参数: Any) -> float
|
|
695
802
|
├── 积累乘积(数据: typing.List[float]) -> float
|
|
@@ -702,6 +809,7 @@ PyPyNum
|
|
|
702
809
|
├── 线性方程组(左边: list, 右边: list) -> list
|
|
703
810
|
├── 组合数(总数: int, 选取数: int) -> int
|
|
704
811
|
├── 维吉尼亚密码(文本: str, 密钥: str, 解密: bool) -> str
|
|
812
|
+
├── 罗马数转整数(罗马数: str) -> int
|
|
705
813
|
├── 自然对数(真数: typing.Union[int, float]) -> typing.Union[int, float]
|
|
706
814
|
├── 自然指数(指数: typing.Union[int, float]) -> typing.Union[int, float]
|
|
707
815
|
├── 莫尔斯密码(文本: str, 解密: bool) -> str
|
|
@@ -712,6 +820,7 @@ PyPyNum
|
|
|
712
820
|
├── 贝塞尔I0(x: typing.Union[int, float]) -> typing.Union[int, float]
|
|
713
821
|
├── 贝塞尔Iv(v: typing.Union[int, float], x: typing.Union[int, float]) -> typing.Union[int, float]
|
|
714
822
|
├── 负一整数次幂(指数: int) -> int
|
|
823
|
+
├── 转为多精度复数(实部: typing.Union[int, float, str, decimal.Decimal, complex, pypynum.multiprec.MPComplex], 虚部: typing.Union[int, float, str, decimal.Decimal], 有效位数: int) -> pypynum.multiprec.MPComplex
|
|
715
824
|
├── 转换为列表(数据: Any) -> list
|
|
716
825
|
├── 转换为数组(数据: Any) -> pypynum.Array.Array
|
|
717
826
|
├── 连续乘积(下界: int, 上界: int, 函数: typing.Callable) -> float
|