PyPyNum 1.7.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.
Files changed (43) hide show
  1. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/PKG-INFO +80 -65
  2. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/PyPyNum.egg-info/PKG-INFO +80 -65
  3. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/PyPyNum.egg-info/SOURCES.txt +4 -0
  4. PyPyNum-1.8.0/pypynum/Graph.py +270 -0
  5. PyPyNum-1.8.0/pypynum/PyPyNum.png +0 -0
  6. PyPyNum-1.8.0/pypynum/README.md +835 -0
  7. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/pypynum/Tree.py +1 -1
  8. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/pypynum/__init__.py +3 -1
  9. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/pypynum/maths.py +75 -0
  10. PyPyNum-1.8.0/pypynum/polynomial.py +158 -0
  11. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/pypynum/tools.py +97 -1
  12. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/setup.py +24 -4
  13. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/PyPyNum.egg-info/dependency_links.txt +0 -0
  14. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/PyPyNum.egg-info/top_level.txt +0 -0
  15. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/pypynum/Array.py +0 -0
  16. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/pypynum/FourierT.py +0 -0
  17. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/pypynum/Geometry.py +0 -0
  18. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/pypynum/Group.py +0 -0
  19. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/pypynum/Logic.py +0 -0
  20. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/pypynum/Matrix.py +0 -0
  21. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/pypynum/NeuralN.py +0 -0
  22. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/pypynum/Quaternion.py +0 -0
  23. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/pypynum/Symbolics.py +0 -0
  24. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/pypynum/Tensor.py +0 -0
  25. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/pypynum/Vector.py +0 -0
  26. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/pypynum/__temporary.py +0 -0
  27. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/pypynum/chars.py +0 -0
  28. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/pypynum/cipher.py +0 -0
  29. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/pypynum/constants.py +0 -0
  30. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/pypynum/equations.py +0 -0
  31. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/pypynum/errors.py +0 -0
  32. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/pypynum/file.py +0 -0
  33. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/pypynum/numbers.py +0 -0
  34. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/pypynum/plotting.py +0 -0
  35. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/pypynum/probability.py +0 -0
  36. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/pypynum/random.py +0 -0
  37. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/pypynum/regression.py +0 -0
  38. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/pypynum/sequence.py +0 -0
  39. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/pypynum/test.py +0 -0
  40. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/pypynum/this.py +0 -0
  41. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/pypynum/types.py +0 -0
  42. {PyPyNum-1.7.0 → PyPyNum-1.8.0}/pypynum/utils.py +0 -0
  43. {PyPyNum-1.7.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.7.0
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,6 +668,7 @@ 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
 
@@ -691,7 +692,7 @@ Description-Content-Type: text/markdown
691
692
  [![Downloads](https://static.pepy.tech/badge/pypynum/month)](https://pepy.tech/project/pypynum)
692
693
  [![Downloads](https://static.pepy.tech/badge/pypynum/week)](https://pepy.tech/project/pypynum)
693
694
 
694
- ## Version -> 1.7.0 | PyPI -> https://pypi.org/project/PyPyNum/ | Gitee -> https://www.gitee.com/PythonSJL/PyPyNum
695
+ ## Version -> 1.8.0 | PyPI -> https://pypi.org/project/PyPyNum/ | Gitee -> https://www.gitee.com/PythonSJL/PyPyNum
695
696
 
696
697
  ![LOGO](PyPyNum.png)
697
698
 
@@ -740,54 +741,65 @@ Python interpreter and run it!)
740
741
  ```
741
742
  !=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
742
743
 
743
- 新增代码行数:
744
- 约八百行
744
+ 新增代码行数为603行
745
745
 
746
- New code lines:
747
- approximately 800 lines
746
+ Add 603 new lines of code
748
747
 
749
748
  !=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
750
749
 
751
- 部分函数再次优化,性能提高一倍。
750
+ 新增函数“magic_square”的功能简介:可
751
+ 以生成任意大于等于三的整数阶幻方。
752
752
 
753
- Partial functions were optimized
754
- again, resulting in a doubling
755
- of performance.
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.
756
758
 
757
759
  !=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
758
760
 
759
- 新增的好玩功能举例。
760
-
761
- Examples of newly added fun
762
- features.
763
-
764
- 新增的有序集合包含绝大多数内置集合的运算
765
- ,并且另有几个新函数。请注意它不是从内置
766
- 集合继承的。
767
-
768
- The newly added ordered set
769
- contains the majority of
770
- built-in set operations, and
771
- there are also several new
772
- functions. Please note that it
773
- does not inherit from the
774
- built-in set.
775
-
776
- 新增的无穷迭代器支持迭代多种数列,默认的
777
- 空字符串即为自增数列。目前支持的数列有等
778
- 差数列、等比数列、斐波那契数列与卡特兰数
779
- 列。
780
-
781
- The newly added infinite
782
- iterator supports iterating
783
- multiple sequences, and the
784
- default empty string is the self
785
- increasing sequence. The
786
- currently supported sequences
787
- include arithmetic sequences,
788
- proportional sequences,
789
- Fibonacci sequences, and Catalan
790
- sequences.
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.
791
803
 
792
804
  !=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
793
805
 
@@ -796,34 +808,23 @@ sequences.
796
808
  <<<The ellipsis in the following structure represents the original part>>>
797
809
 
798
810
  PyPyNum
799
- Tree [Various trees]
811
+ Graph [Graph theory]
800
812
  CLASSES
801
- MultiTree
802
- MultiTreeNode
803
- ★ maths [Mathematical functions]
804
- FUNCTIONS
805
- ...
806
- totient(n: int) -> int
807
- mod_order(a: int, n: int, b: int) -> int
808
- primitive_root(a: int, single: bool = False) -> Union[int, list]
809
- normalize(data: arr, target: num = 1) -> arr
810
- average(data, weights, expected=False)
811
- exgcd(a: int, b: int) -> tuple
812
- crt(n: arr, a: arr) -> int
813
- ★ sequence [Various sequences]
813
+ BaseGraph
814
+ BaseWeGraph
815
+ WeDiGraph
816
+ WeUnGraph
817
+ DiGraph
818
+ UnGraph
819
+ polynomial [Polynomial object]
820
+ CLASSES
821
+ Polynomial
814
822
  FUNCTIONS
815
- farey(n: int) -> list
816
- ...
823
+ poly(terms=None)
817
824
  ★ tools [Other useful tools]
818
825
  FUNCTIONS
819
826
  ...
820
- primality(n: int, iter_num: int = 10) -> bool
821
- generate_primes(limit: int) -> list
822
- prime_factors(integer: int, dictionary: bool = False, pollard_rho: bool = True) -> Union[list, dict]
823
- ★ utils [Other useful tools]
824
- CLASSES
825
- InfIterator
826
- OrderedSet
827
+ magic_square(n)
827
828
  ```
828
829
 
829
830
  ### 运行用时测试
@@ -893,6 +894,14 @@ PyPyNum
893
894
  Triangle
894
895
  FUNCTIONS
895
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
896
905
  ★ Group [Group theory]
897
906
  CLASSES
898
907
  Group
@@ -1138,6 +1147,11 @@ PyPyNum
1138
1147
  unary(function, right: real = 5, left: real = -5, top: real = 5, bottom: real = -5, complexity: real = 5...
1139
1148
  binary(function, right: real = 5, left: real = -5, top: real = 5, bottom: real = -5, complexity: real = 5...
1140
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)
1141
1155
  ★ probability [Probability function]
1142
1156
  FUNCTIONS
1143
1157
  binomial(sample_size: int, successes: int, success_probability: Union[int, float]) -> float
@@ -1176,6 +1190,7 @@ PyPyNum
1176
1190
  primality(n: int, iter_num: int = 10) -> bool
1177
1191
  generate_primes(limit: int) -> list
1178
1192
  prime_factors(integer: int, dictionary: bool = False, pollard_rho: bool = True) -> Union[list, dict]
1193
+ magic_square(n)
1179
1194
  ★ utils [Other useful tools]
1180
1195
  CLASSES
1181
1196
  InfIterator
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PyPyNum
3
- Version: 1.7.0
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,6 +668,7 @@ 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
 
@@ -691,7 +692,7 @@ Description-Content-Type: text/markdown
691
692
  [![Downloads](https://static.pepy.tech/badge/pypynum/month)](https://pepy.tech/project/pypynum)
692
693
  [![Downloads](https://static.pepy.tech/badge/pypynum/week)](https://pepy.tech/project/pypynum)
693
694
 
694
- ## Version -> 1.7.0 | PyPI -> https://pypi.org/project/PyPyNum/ | Gitee -> https://www.gitee.com/PythonSJL/PyPyNum
695
+ ## Version -> 1.8.0 | PyPI -> https://pypi.org/project/PyPyNum/ | Gitee -> https://www.gitee.com/PythonSJL/PyPyNum
695
696
 
696
697
  ![LOGO](PyPyNum.png)
697
698
 
@@ -740,54 +741,65 @@ Python interpreter and run it!)
740
741
  ```
741
742
  !=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
742
743
 
743
- 新增代码行数:
744
- 约八百行
744
+ 新增代码行数为603行
745
745
 
746
- New code lines:
747
- approximately 800 lines
746
+ Add 603 new lines of code
748
747
 
749
748
  !=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
750
749
 
751
- 部分函数再次优化,性能提高一倍。
750
+ 新增函数“magic_square”的功能简介:可
751
+ 以生成任意大于等于三的整数阶幻方。
752
752
 
753
- Partial functions were optimized
754
- again, resulting in a doubling
755
- of performance.
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.
756
758
 
757
759
  !=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
758
760
 
759
- 新增的好玩功能举例。
760
-
761
- Examples of newly added fun
762
- features.
763
-
764
- 新增的有序集合包含绝大多数内置集合的运算
765
- ,并且另有几个新函数。请注意它不是从内置
766
- 集合继承的。
767
-
768
- The newly added ordered set
769
- contains the majority of
770
- built-in set operations, and
771
- there are also several new
772
- functions. Please note that it
773
- does not inherit from the
774
- built-in set.
775
-
776
- 新增的无穷迭代器支持迭代多种数列,默认的
777
- 空字符串即为自增数列。目前支持的数列有等
778
- 差数列、等比数列、斐波那契数列与卡特兰数
779
- 列。
780
-
781
- The newly added infinite
782
- iterator supports iterating
783
- multiple sequences, and the
784
- default empty string is the self
785
- increasing sequence. The
786
- currently supported sequences
787
- include arithmetic sequences,
788
- proportional sequences,
789
- Fibonacci sequences, and Catalan
790
- sequences.
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.
791
803
 
792
804
  !=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
793
805
 
@@ -796,34 +808,23 @@ sequences.
796
808
  <<<The ellipsis in the following structure represents the original part>>>
797
809
 
798
810
  PyPyNum
799
- Tree [Various trees]
811
+ Graph [Graph theory]
800
812
  CLASSES
801
- MultiTree
802
- MultiTreeNode
803
- ★ maths [Mathematical functions]
804
- FUNCTIONS
805
- ...
806
- totient(n: int) -> int
807
- mod_order(a: int, n: int, b: int) -> int
808
- primitive_root(a: int, single: bool = False) -> Union[int, list]
809
- normalize(data: arr, target: num = 1) -> arr
810
- average(data, weights, expected=False)
811
- exgcd(a: int, b: int) -> tuple
812
- crt(n: arr, a: arr) -> int
813
- ★ sequence [Various sequences]
813
+ BaseGraph
814
+ BaseWeGraph
815
+ WeDiGraph
816
+ WeUnGraph
817
+ DiGraph
818
+ UnGraph
819
+ polynomial [Polynomial object]
820
+ CLASSES
821
+ Polynomial
814
822
  FUNCTIONS
815
- farey(n: int) -> list
816
- ...
823
+ poly(terms=None)
817
824
  ★ tools [Other useful tools]
818
825
  FUNCTIONS
819
826
  ...
820
- primality(n: int, iter_num: int = 10) -> bool
821
- generate_primes(limit: int) -> list
822
- prime_factors(integer: int, dictionary: bool = False, pollard_rho: bool = True) -> Union[list, dict]
823
- ★ utils [Other useful tools]
824
- CLASSES
825
- InfIterator
826
- OrderedSet
827
+ magic_square(n)
827
828
  ```
828
829
 
829
830
  ### 运行用时测试
@@ -893,6 +894,14 @@ PyPyNum
893
894
  Triangle
894
895
  FUNCTIONS
895
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
896
905
  ★ Group [Group theory]
897
906
  CLASSES
898
907
  Group
@@ -1138,6 +1147,11 @@ PyPyNum
1138
1147
  unary(function, right: real = 5, left: real = -5, top: real = 5, bottom: real = -5, complexity: real = 5...
1139
1148
  binary(function, right: real = 5, left: real = -5, top: real = 5, bottom: real = -5, complexity: real = 5...
1140
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)
1141
1155
  ★ probability [Probability function]
1142
1156
  FUNCTIONS
1143
1157
  binomial(sample_size: int, successes: int, success_probability: Union[int, float]) -> float
@@ -1176,6 +1190,7 @@ PyPyNum
1176
1190
  primality(n: int, iter_num: int = 10) -> bool
1177
1191
  generate_primes(limit: int) -> list
1178
1192
  prime_factors(integer: int, dictionary: bool = False, pollard_rho: bool = True) -> Union[list, dict]
1193
+ magic_square(n)
1179
1194
  ★ utils [Other useful tools]
1180
1195
  CLASSES
1181
1196
  InfIterator
@@ -6,11 +6,14 @@ PyPyNum.egg-info/top_level.txt
6
6
  pypynum/Array.py
7
7
  pypynum/FourierT.py
8
8
  pypynum/Geometry.py
9
+ pypynum/Graph.py
9
10
  pypynum/Group.py
10
11
  pypynum/Logic.py
11
12
  pypynum/Matrix.py
12
13
  pypynum/NeuralN.py
14
+ pypynum/PyPyNum.png
13
15
  pypynum/Quaternion.py
16
+ pypynum/README.md
14
17
  pypynum/Symbolics.py
15
18
  pypynum/Tensor.py
16
19
  pypynum/Tree.py
@@ -26,6 +29,7 @@ pypynum/file.py
26
29
  pypynum/maths.py
27
30
  pypynum/numbers.py
28
31
  pypynum/plotting.py
32
+ pypynum/polynomial.py
29
33
  pypynum/probability.py
30
34
  pypynum/random.py
31
35
  pypynum/regression.py