PyPyNum 1.6.0__tar.gz → 1.8.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.6.0 → PyPyNum-1.8.0}/PKG-INFO +198 -105
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/PyPyNum.egg-info/PKG-INFO +198 -105
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/PyPyNum.egg-info/SOURCES.txt +5 -1
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/pypynum/Array.py +7 -0
- PyPyNum-1.8.0/pypynum/Graph.py +270 -0
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/pypynum/Matrix.py +7 -0
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/pypynum/README.md +196 -104
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/pypynum/Tensor.py +6 -0
- PyPyNum-1.8.0/pypynum/Tree.py +90 -0
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/pypynum/Vector.py +7 -0
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/pypynum/__init__.py +5 -1
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/pypynum/maths.py +310 -41
- PyPyNum-1.8.0/pypynum/polynomial.py +158 -0
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/pypynum/sequence.py +28 -1
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/pypynum/tools.py +195 -4
- PyPyNum-1.8.0/pypynum/utils.py +319 -0
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/setup.py +23 -3
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/PyPyNum.egg-info/dependency_links.txt +0 -0
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/PyPyNum.egg-info/top_level.txt +0 -0
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/pypynum/FourierT.py +0 -0
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/pypynum/Geometry.py +0 -0
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/pypynum/Group.py +0 -0
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/pypynum/Logic.py +0 -0
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/pypynum/NeuralN.py +0 -0
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/pypynum/PyPyNum.png +0 -0
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/pypynum/Quaternion.py +0 -0
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/pypynum/Symbolics.py +0 -0
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/pypynum/__temporary.py +0 -0
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/pypynum/chars.py +0 -0
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/pypynum/cipher.py +0 -0
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/pypynum/constants.py +0 -0
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/pypynum/equations.py +0 -0
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/pypynum/errors.py +0 -0
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/pypynum/file.py +0 -0
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/pypynum/numbers.py +0 -0
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/pypynum/plotting.py +0 -0
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/pypynum/probability.py +0 -0
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/pypynum/random.py +0 -0
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/pypynum/regression.py +0 -0
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/pypynum/test.py +0 -0
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/pypynum/this.py +0 -0
- {PyPyNum-1.6.0 → PyPyNum-1.8.0}/pypynum/types.py +0 -0
- {PyPyNum-1.6.0 → PyPyNum-1.8.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.8.0
|
|
4
4
|
Summary: A multifunctional mathematical calculation package written in pure Python programming language [Python>=3.5]
|
|
5
5
|
Home-page: https://www.gitee.com/PythonSJL/PyPyNum
|
|
6
6
|
Author: Shen Jiayi
|
|
@@ -668,13 +668,14 @@ License:
|
|
|
668
668
|
For more information on this, and how to apply and follow the GNU AGPL, see
|
|
669
669
|
<http://www.gnu.org/licenses/>.
|
|
670
670
|
|
|
671
|
+
Keywords: math,数学,mathematics,数学计算,numerical,数值,computation,计算,scientific,科学,algebra,代数,calculus,微积分,statistics,统计,linear-algebra,线性代数,optimization,优化,numerical-analysis,数值分析,matrix,矩阵,vector,向量,tensor,张量,numerics,数值计算,library,库,tools,工具,utils,实用程序,algorithms,算法,software,软件,package,包,methods,方法,data-science,数据科学,machine-learning,机器学习,computational,计算的,operations,操作,functions,函数,processing,处理,programming,编程,simulation,仿真,visualization,可视化,physics,物理
|
|
671
672
|
Requires-Python: >=3.5
|
|
672
673
|
Description-Content-Type: text/markdown
|
|
673
674
|
|
|
674
675
|
# <font color = blue>PyPyNum</font>
|
|
675
676
|
|
|
676
|
-
<font color = gree>A
|
|
677
|
-
|
|
677
|
+
<font color = gree>A multifunctional mathematical calculation package written in pure Python programming language
|
|
678
|
+
</font><font color = red>[Python>=3.5]</font>
|
|
678
679
|
|
|
679
680
|
```
|
|
680
681
|
________ ___ ___ ________ ___ ___ ________ ___ ___ _____ ______
|
|
@@ -687,7 +688,11 @@ Description-Content-Type: text/markdown
|
|
|
687
688
|
\|___|/ \|___|/
|
|
688
689
|
```
|
|
689
690
|
|
|
690
|
-
|
|
691
|
+
[](https://pepy.tech/project/pypynum)
|
|
692
|
+
[](https://pepy.tech/project/pypynum)
|
|
693
|
+
[](https://pepy.tech/project/pypynum)
|
|
694
|
+
|
|
695
|
+
## Version -> 1.8.0 | PyPI -> https://pypi.org/project/PyPyNum/ | Gitee -> https://www.gitee.com/PythonSJL/PyPyNum
|
|
691
696
|
|
|
692
697
|

|
|
693
698
|
|
|
@@ -734,38 +739,92 @@ Python interpreter and run it!)
|
|
|
734
739
|
#### New features compared to the previous version
|
|
735
740
|
|
|
736
741
|
```
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
742
|
+
!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
|
|
743
|
+
|
|
744
|
+
新增代码行数为603行
|
|
745
|
+
|
|
746
|
+
Add 603 new lines of code
|
|
747
|
+
|
|
748
|
+
!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
|
|
749
|
+
|
|
750
|
+
新增函数“magic_square”的功能简介:可
|
|
751
|
+
以生成任意大于等于三的整数阶幻方。
|
|
752
|
+
|
|
753
|
+
Introduction to the newly added
|
|
754
|
+
function "magic square": It can
|
|
755
|
+
generate any integer order magic
|
|
756
|
+
square greater than or equal to
|
|
757
|
+
three.
|
|
758
|
+
|
|
759
|
+
!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
|
|
760
|
+
|
|
761
|
+
新增模块“Graph”的功能简介:具有有向图
|
|
762
|
+
、无向图、带权有向图、带权无向图这四个对
|
|
763
|
+
象,支持添加或删除顶点和边,以及深度优先
|
|
764
|
+
搜索与广度优先搜索这两种图的遍历方式,还
|
|
765
|
+
有计算最短路径等功能。
|
|
766
|
+
|
|
767
|
+
Introduction to the functions of
|
|
768
|
+
the newly added module "Graph":
|
|
769
|
+
it has four objects: directed
|
|
770
|
+
graph, undirected graph,
|
|
771
|
+
weighted directed graph, and
|
|
772
|
+
weighted undirected graph. It
|
|
773
|
+
supports adding or removing
|
|
774
|
+
vertices and edges, as well as
|
|
775
|
+
depth first search and breadth
|
|
776
|
+
first search for graph
|
|
777
|
+
traversal. It also has functions
|
|
778
|
+
such as calculating the shortest
|
|
779
|
+
path.
|
|
780
|
+
|
|
781
|
+
!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
|
|
782
|
+
|
|
783
|
+
新增模块“polynomial”的功能简介:有一
|
|
784
|
+
个多项式对象,可以通过传入包含“(次数,
|
|
785
|
+
系数)”的二元组组成的序列创建多项式对象
|
|
786
|
+
,可以随时设置某一项的数值,并且支持多
|
|
787
|
+
项式形式的四则运算,还有取商式、取余式
|
|
788
|
+
、求幂、求模幂的功能。
|
|
789
|
+
|
|
790
|
+
Introduction to the newly added
|
|
791
|
+
module "polynomial": There is a
|
|
792
|
+
polynomial object that can be
|
|
793
|
+
created by passing in a sequence
|
|
794
|
+
of binary tuples containing
|
|
795
|
+
"degree, coefficient". The value
|
|
796
|
+
of a certain term can be set at
|
|
797
|
+
any time, and it supports
|
|
798
|
+
polynomial form arithmetic
|
|
799
|
+
operations. It also has
|
|
800
|
+
functions such as quotient,
|
|
801
|
+
remainder, exponentiation, and
|
|
802
|
+
modular exponentiation.
|
|
803
|
+
|
|
804
|
+
!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
|
|
805
|
+
|
|
806
|
+
<<<以下结构中的省略号表示原有的部分>>>
|
|
807
|
+
|
|
808
|
+
<<<The ellipsis in the following structure represents the original part>>>
|
|
809
|
+
|
|
810
|
+
PyPyNum
|
|
811
|
+
★ Graph [Graph theory]
|
|
812
|
+
CLASSES
|
|
813
|
+
BaseGraph
|
|
814
|
+
BaseWeGraph
|
|
815
|
+
WeDiGraph
|
|
816
|
+
WeUnGraph
|
|
817
|
+
DiGraph
|
|
818
|
+
UnGraph
|
|
819
|
+
★ polynomial [Polynomial object]
|
|
820
|
+
CLASSES
|
|
821
|
+
Polynomial
|
|
822
|
+
FUNCTIONS
|
|
823
|
+
poly(terms=None)
|
|
824
|
+
★ tools [Other useful tools]
|
|
825
|
+
FUNCTIONS
|
|
826
|
+
...
|
|
827
|
+
magic_square(n)
|
|
769
828
|
```
|
|
770
829
|
|
|
771
830
|
### 运行用时测试
|
|
@@ -835,6 +894,14 @@ PyPyNum
|
|
|
835
894
|
Triangle
|
|
836
895
|
FUNCTIONS
|
|
837
896
|
distance(g1, g2, error: int | float = 0) -> float
|
|
897
|
+
★ Graph [Graph theory]
|
|
898
|
+
CLASSES
|
|
899
|
+
BaseGraph
|
|
900
|
+
BaseWeGraph
|
|
901
|
+
WeDiGraph
|
|
902
|
+
WeUnGraph
|
|
903
|
+
DiGraph
|
|
904
|
+
UnGraph
|
|
838
905
|
★ Group [Group theory]
|
|
839
906
|
CLASSES
|
|
840
907
|
Group
|
|
@@ -913,6 +980,10 @@ PyPyNum
|
|
|
913
980
|
tolist(_nested_list)
|
|
914
981
|
zeros(_dimensions)
|
|
915
982
|
zeros_like(_nested_list)
|
|
983
|
+
★ Tree [Various trees]
|
|
984
|
+
CLASSES
|
|
985
|
+
MultiTree
|
|
986
|
+
MultiTreeNode
|
|
916
987
|
★ Vector [Vector calculation]
|
|
917
988
|
CLASSES
|
|
918
989
|
Vector
|
|
@@ -986,73 +1057,79 @@ PyPyNum
|
|
|
986
1057
|
polynomial_equation(coefficients: list) -> list
|
|
987
1058
|
★ maths [Mathematical functions]
|
|
988
1059
|
FUNCTIONS
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
acosh(x: Union[int, float]) -> Union[int, float]
|
|
993
|
-
acot(x: Union[int, float]) -> Union[int, float]
|
|
994
|
-
acoth(x: Union[int, float]) -> Union[int, float]
|
|
995
|
-
acsc(x: Union[int, float]) -> Union[int, float]
|
|
996
|
-
acsch(x: Union[int, float]) -> Union[int, float]
|
|
997
|
-
arrangement(n: int, r: int) -> int
|
|
998
|
-
asec(x: Union[int, float]) -> Union[int, float]
|
|
999
|
-
asech(x: Union[int, float]) -> Union[int, float]
|
|
1000
|
-
asin(x: Union[int, float]) -> Union[int, float]
|
|
1001
|
-
asinh(x: Union[int, float]) -> Union[int, float]
|
|
1002
|
-
atan(x: Union[int, float]) -> Union[int, float]
|
|
1003
|
-
atanh(x: Union[int, float]) -> Union[int, float]
|
|
1004
|
-
beta(p: Union[int, float], q: Union[int, float]) -> Union[int, float]
|
|
1005
|
-
central_moment(data: Union[list, tuple], order: int) -> float
|
|
1006
|
-
coeff_det(x: Union[list, tuple], y: Union[list, tuple]) -> Union[int, float, complex]
|
|
1007
|
-
combination(n: int, r: int) -> int
|
|
1008
|
-
corr_coeff(x: Union[list, tuple], y: Union[list, tuple]) -> Union[int, float, complex]
|
|
1009
|
-
cos(x: Union[int, float]) -> Union[int, float]
|
|
1010
|
-
cosh(x: Union[int, float]) -> Union[int, float]
|
|
1011
|
-
cot(x: Union[int, float]) -> Union[int, float]
|
|
1012
|
-
coth(x: Union[int, float]) -> Union[int, float]
|
|
1013
|
-
cov(x: Union[list, tuple], y: Union[list, tuple]) -> Union[int, float, complex]
|
|
1014
|
-
csc(x: Union[int, float]) -> Union[int, float]
|
|
1015
|
-
csch(x: Union[int, float]) -> Union[int, float]
|
|
1016
|
-
cumprod(lst: Union[list, tuple]) -> list
|
|
1017
|
-
cumsum(lst: Union[list, tuple]) -> list
|
|
1018
|
-
definite_integral(f, x_start: Union[int, float], x_end: Union[int, float], n: int = 10000000) -> float
|
|
1019
|
-
derivative(f, x: Union[int, float], h: Union[int, float] = 1e-07) -> float
|
|
1020
|
-
erf(x: Union[int, float]) -> float
|
|
1021
|
-
exp(x: Union[int, float]) -> Union[int, float]
|
|
1022
|
-
factorial(n: int) -> int
|
|
1023
|
-
freq(data: Union[list, tuple]) -> dict
|
|
1024
|
-
gamma(alpha: Union[int, float]) -> float
|
|
1025
|
-
gaussian(x: Union[int, float], _mu: Union[int, float] = 0, _sigma: Union[int, float] = 1) -> float
|
|
1060
|
+
root(x: num, y: num) -> num
|
|
1061
|
+
exp(x: real) -> real
|
|
1062
|
+
ln(x: real) -> real
|
|
1026
1063
|
gcd(*args: int) -> int
|
|
1027
|
-
geom_mean(numbers: Union[list, tuple]) -> Union[int, float, complex]
|
|
1028
|
-
harm_mean(numbers: Union[list, tuple]) -> Union[int, float, complex]
|
|
1029
|
-
iroot(y: int, n: int) -> int
|
|
1030
|
-
kurt(data: Union[list, tuple]) -> float
|
|
1031
1064
|
lcm(*args: int) -> int
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1065
|
+
sin(x: real) -> real
|
|
1066
|
+
cos(x: real) -> real
|
|
1067
|
+
tan(x: real) -> real
|
|
1068
|
+
csc(x: real) -> real
|
|
1069
|
+
sec(x: real) -> real
|
|
1070
|
+
cot(x: real) -> real
|
|
1071
|
+
asin(x: real) -> real
|
|
1072
|
+
acos(x: real) -> real
|
|
1073
|
+
atan(x: real) -> real
|
|
1074
|
+
acsc(x: real) -> real
|
|
1075
|
+
asec(x: real) -> real
|
|
1076
|
+
acot(x: real) -> real
|
|
1077
|
+
sinh(x: real) -> real
|
|
1078
|
+
cosh(x: real) -> real
|
|
1079
|
+
tanh(x: real) -> real
|
|
1080
|
+
csch(x: real) -> real
|
|
1081
|
+
sech(x: real) -> real
|
|
1082
|
+
coth(x: real) -> real
|
|
1083
|
+
asinh(x: real) -> real
|
|
1084
|
+
acosh(x: real) -> real
|
|
1085
|
+
atanh(x: real) -> real
|
|
1086
|
+
acsch(x: real) -> real
|
|
1087
|
+
asech(x: real) -> real
|
|
1088
|
+
acoth(x: real) -> real
|
|
1089
|
+
ptp(numbers: arr) -> num
|
|
1090
|
+
median(numbers: arr) -> num
|
|
1091
|
+
freq(data: arr) -> dict
|
|
1092
|
+
mode(data: arr)
|
|
1093
|
+
mean(numbers: arr) -> num
|
|
1094
|
+
geom_mean(numbers: arr) -> num
|
|
1095
|
+
square_mean(numbers: arr) -> num
|
|
1096
|
+
harm_mean(numbers: arr) -> num
|
|
1097
|
+
raw_moment(data: arr, order: int) -> float
|
|
1098
|
+
central_moment(data: arr, order: int) -> float
|
|
1099
|
+
var(numbers: arr, ddof: int = 0) -> num
|
|
1100
|
+
skew(data: arr) -> float
|
|
1101
|
+
kurt(data: arr) -> float
|
|
1102
|
+
std(numbers: arr, ddof: int = 0) -> num
|
|
1103
|
+
cov(x: arr, y: arr, ddof: int = 0) -> num
|
|
1104
|
+
corr_coeff(x: arr, y: arr) -> num
|
|
1105
|
+
coeff_det(x: arr, y: arr) -> num
|
|
1106
|
+
product(numbers: arr) -> num
|
|
1107
|
+
sigma(i: int, n: int, f) -> num
|
|
1108
|
+
pi(i: int, n: int, f) -> num
|
|
1109
|
+
derivative(f, x: real, h: real = 1e-7) -> float
|
|
1110
|
+
definite_integral(f, x_start: real, x_end: real, n: int = 10000000) -> float
|
|
1111
|
+
beta(p: real, q: real) -> real
|
|
1112
|
+
gamma(alpha: real) -> float
|
|
1113
|
+
factorial(n: int) -> int
|
|
1114
|
+
arrangement(n: int, r: int) -> int
|
|
1115
|
+
combination(n: int, r: int) -> int
|
|
1116
|
+
zeta(alpha: real) -> float
|
|
1117
|
+
gaussian(x: real, _mu: real = 0, _sigma: real = 1) -> float
|
|
1118
|
+
poisson(x: int, _lambda: real) -> float
|
|
1119
|
+
erf(x: real) -> float
|
|
1120
|
+
sigmoid(x: real) -> float
|
|
1121
|
+
sign(x: real) -> int
|
|
1035
1122
|
parity(x: int) -> int
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
sign(x: Union[int, float]) -> int
|
|
1047
|
-
sin(x: Union[int, float]) -> Union[int, float]
|
|
1048
|
-
sinh(x: Union[int, float]) -> Union[int, float]
|
|
1049
|
-
skew(data: Union[list, tuple]) -> float
|
|
1050
|
-
square_mean(numbers: Union[list, tuple]) -> Union[int, float, complex]
|
|
1051
|
-
std(numbers: Union[list, tuple]) -> Union[int, float, complex]
|
|
1052
|
-
tan(x: Union[int, float]) -> Union[int, float]
|
|
1053
|
-
tanh(x: Union[int, float]) -> Union[int, float]
|
|
1054
|
-
var(numbers: Union[list, tuple]) -> Union[int, float, complex]
|
|
1055
|
-
zeta(alpha: Union[int, float]) -> float
|
|
1123
|
+
cumsum(lst: arr) -> list
|
|
1124
|
+
cumprod(lst: arr) -> list
|
|
1125
|
+
iroot(y: int, n: int) -> int
|
|
1126
|
+
totient(n: int) -> int
|
|
1127
|
+
mod_order(a: int, n: int, b: int) -> int
|
|
1128
|
+
primitive_root(a: int, single: bool = False) -> Union[int, list]
|
|
1129
|
+
normalize(data: arr, target: num = 1) -> arr
|
|
1130
|
+
average(data, weights, expected=False)
|
|
1131
|
+
exgcd(a: int, b: int) -> tuple
|
|
1132
|
+
crt(n: arr, a: arr) -> int
|
|
1056
1133
|
★ numbers [Conversion of various numbers]
|
|
1057
1134
|
FUNCTIONS
|
|
1058
1135
|
float2fraction(number: float, mixed: bool = False, error: float = 1e-15) -> tuple
|
|
@@ -1070,6 +1147,11 @@ PyPyNum
|
|
|
1070
1147
|
unary(function, right: real = 5, left: real = -5, top: real = 5, bottom: real = -5, complexity: real = 5...
|
|
1071
1148
|
binary(function, right: real = 5, left: real = -5, top: real = 5, bottom: real = -5, complexity: real = 5...
|
|
1072
1149
|
c_unary(function, start: real, end: real, interval: real = 5, projection: str = "ri", right: real = 5...
|
|
1150
|
+
★ polynomial [Polynomial object]
|
|
1151
|
+
CLASSES
|
|
1152
|
+
Polynomial
|
|
1153
|
+
FUNCTIONS
|
|
1154
|
+
poly(terms=None)
|
|
1073
1155
|
★ probability [Probability function]
|
|
1074
1156
|
FUNCTIONS
|
|
1075
1157
|
binomial(sample_size: int, successes: int, success_probability: Union[int, float]) -> float
|
|
@@ -1089,6 +1171,7 @@ PyPyNum
|
|
|
1089
1171
|
polynomial_regression(x: Union[list, tuple], y: Union[list, tuple], n: int = None) -> list
|
|
1090
1172
|
★ sequence [Various sequences]
|
|
1091
1173
|
FUNCTIONS
|
|
1174
|
+
farey(n: int) -> list
|
|
1092
1175
|
fibonacci(n: int, single: bool = True) -> Union[int, list]
|
|
1093
1176
|
catalan(n: int, single: bool = True) -> Union[int, list]
|
|
1094
1177
|
bernoulli(n: int, single: bool = True) -> list
|
|
@@ -1097,11 +1180,21 @@ PyPyNum
|
|
|
1097
1180
|
geometric_sequence(*, a1: real = None, an: real = None, r: real = None, n: real = None, s: real = None) -> dict
|
|
1098
1181
|
★ tools [Other useful tools]
|
|
1099
1182
|
FUNCTIONS
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1183
|
+
frange(start: real, stop: real, step: float = 1.0) -> list
|
|
1184
|
+
linspace(start: real, stop: real, number: int) -> list
|
|
1185
|
+
geomspace(start: real, stop: real, number: int) -> list
|
|
1186
|
+
deduplicate(iterable: ite) -> ite
|
|
1187
|
+
classify(array: arr) -> dict
|
|
1188
|
+
split(iterable: ite, key: arr, retain: bool = False) -> list
|
|
1189
|
+
interpolation(data: arr, length: int) -> list
|
|
1190
|
+
primality(n: int, iter_num: int = 10) -> bool
|
|
1191
|
+
generate_primes(limit: int) -> list
|
|
1192
|
+
prime_factors(integer: int, dictionary: bool = False, pollard_rho: bool = True) -> Union[list, dict]
|
|
1193
|
+
magic_square(n)
|
|
1194
|
+
★ utils [Other useful tools]
|
|
1195
|
+
CLASSES
|
|
1196
|
+
InfIterator
|
|
1197
|
+
OrderedSet
|
|
1105
1198
|
```
|
|
1106
1199
|
|
|
1107
1200
|
### 代码测试
|