PyPyNum 1.16.2__tar.gz → 1.17.1__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 (54) hide show
  1. {pypynum-1.16.2 → pypynum-1.17.1}/PKG-INFO +853 -351
  2. {pypynum-1.16.2 → pypynum-1.17.1}/PyPyNum.egg-info/PKG-INFO +853 -351
  3. {pypynum-1.16.2 → pypynum-1.17.1}/PyPyNum.egg-info/SOURCES.txt +1 -1
  4. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/README.md +191 -148
  5. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/__init__.py +6 -5
  6. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/arrays.py +2 -2
  7. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/chars.py +14 -14
  8. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/ciphers.py +10 -10
  9. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/dataproc.py +2 -2
  10. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/equations.py +1 -1
  11. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/geoms.py +1 -3
  12. pypynum-1.16.2/pypynum/quats.py → pypynum-1.17.1/pypynum/hypcmpnms.py +131 -30
  13. pypynum-1.17.1/pypynum/images.py +296 -0
  14. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/maths.py +52 -31
  15. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/matrices.py +287 -23
  16. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/multiprec.py +5 -1
  17. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/numbers.py +9 -9
  18. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/pprinters.py +2 -2
  19. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/seqs.py +2 -2
  20. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/symbols.py +9 -9
  21. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/test.py +71 -47
  22. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/this.py +1 -1
  23. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/tools.py +162 -40
  24. pypynum-1.17.1/setup.py +37 -0
  25. pypynum-1.16.2/pypynum/images.py +0 -260
  26. pypynum-1.16.2/setup.py +0 -238
  27. {pypynum-1.16.2 → pypynum-1.17.1}/PyPyNum.egg-info/dependency_links.txt +0 -0
  28. {pypynum-1.16.2 → pypynum-1.17.1}/PyPyNum.egg-info/top_level.txt +0 -0
  29. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/PyPyNum.png +0 -0
  30. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/consts.py +0 -0
  31. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/crandom.py +0 -0
  32. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/dists.py +0 -0
  33. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/fft.py +0 -0
  34. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/files.py +0 -0
  35. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/graphs.py +0 -0
  36. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/groups.py +0 -0
  37. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/interp.py +0 -0
  38. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/kernels.py +0 -0
  39. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/logics.py +0 -0
  40. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/networks.py +0 -0
  41. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/plotting.py +0 -0
  42. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/polys.py +0 -0
  43. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/random.py +0 -0
  44. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/regs.py +0 -0
  45. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/special.py +0 -0
  46. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/stattest.py +0 -0
  47. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/tensors.py +0 -0
  48. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/trees.py +0 -0
  49. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/types.py +0 -0
  50. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/ufuncs.py +0 -0
  51. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/utils.py +0 -0
  52. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/vectors.py +0 -0
  53. {pypynum-1.16.2 → pypynum-1.17.1}/pypynum/zh_cn.py +0 -0
  54. {pypynum-1.16.2 → pypynum-1.17.1}/setup.cfg +0 -0
@@ -1,223 +1,681 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PyPyNum
3
- Version: 1.16.2
3
+ Version: 1.17.1
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
7
7
  Author-email: 2261748025@qq.com
8
- License:
9
- Apache License
10
- Version 2.0, January 2004
11
- http://www.apache.org/licenses/
12
-
13
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
14
-
15
- 1. Definitions.
16
-
17
- "License" shall mean the terms and conditions for use, reproduction,
18
- and distribution as defined by Sections 1 through 9 of this document.
19
-
20
- "Licensor" shall mean the copyright owner or entity authorized by
21
- the copyright owner that is granting the License.
22
-
23
- "Legal Entity" shall mean the union of the acting entity and all
24
- other entities that control, are controlled by, or are under common
25
- control with that entity. For the purposes of this definition,
26
- "control" means (i) the power, direct or indirect, to cause the
27
- direction or management of such entity, whether by contract or
28
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
29
- outstanding shares, or (iii) beneficial ownership of such entity.
30
-
31
- "You" (or "Your") shall mean an individual or Legal Entity
32
- exercising permissions granted by this License.
33
-
34
- "Source" form shall mean the preferred form for making modifications,
35
- including but not limited to software source code, documentation
36
- source, and configuration files.
37
-
38
- "Object" form shall mean any form resulting from mechanical
39
- transformation or translation of a Source form, including but
40
- not limited to compiled object code, generated documentation,
41
- and conversions to other media types.
42
-
43
- "Work" shall mean the work of authorship, whether in Source or
44
- Object form, made available under the License, as indicated by a
45
- copyright notice that is included in or attached to the work
46
- (an example is provided in the Appendix below).
47
-
48
- "Derivative Works" shall mean any work, whether in Source or Object
49
- form, that is based on (or derived from) the Work and for which the
50
- editorial revisions, annotations, elaborations, or other modifications
51
- represent, as a whole, an original work of authorship. For the purposes
52
- of this License, Derivative Works shall not include works that remain
53
- separable from, or merely link (or bind by name) to the interfaces of,
54
- the Work and Derivative Works thereof.
55
-
56
- "Contribution" shall mean any work of authorship, including
57
- the original version of the Work and any modifications or additions
58
- to that Work or Derivative Works thereof, that is intentionally
59
- submitted to Licensor for inclusion in the Work by the copyright owner
60
- or by an individual or Legal Entity authorized to submit on behalf of
61
- the copyright owner. For the purposes of this definition, "submitted"
62
- means any form of electronic, verbal, or written communication sent
63
- to the Licensor or its representatives, including but not limited to
64
- communication on electronic mailing lists, source code control systems,
65
- and issue tracking systems that are managed by, or on behalf of, the
66
- Licensor for the purpose of discussing and improving the Work, but
67
- excluding communication that is conspicuously marked or otherwise
68
- designated in writing by the copyright owner as "Not a Contribution."
69
-
70
- "Contributor" shall mean Licensor and any individual or Legal Entity
71
- on behalf of whom a Contribution has been received by Licensor and
72
- subsequently incorporated within the Work.
73
-
74
- 2. Grant of Copyright License. Subject to the terms and conditions of
75
- this License, each Contributor hereby grants to You a perpetual,
76
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
- copyright license to reproduce, prepare Derivative Works of,
78
- publicly display, publicly perform, sublicense, and distribute the
79
- Work and such Derivative Works in Source or Object form.
80
-
81
- 3. Grant of Patent License. Subject to the terms and conditions of
82
- this License, each Contributor hereby grants to You a perpetual,
83
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
84
- (except as stated in this section) patent license to make, have made,
85
- use, offer to sell, sell, import, and otherwise transfer the Work,
86
- where such license applies only to those patent claims licensable
87
- by such Contributor that are necessarily infringed by their
88
- Contribution(s) alone or by combination of their Contribution(s)
89
- with the Work to which such Contribution(s) was submitted. If You
90
- institute patent litigation against any entity (including a
91
- cross-claim or counterclaim in a lawsuit) alleging that the Work
92
- or a Contribution incorporated within the Work constitutes direct
93
- or contributory patent infringement, then any patent licenses
94
- granted to You under this License for that Work shall terminate
95
- as of the date such litigation is filed.
96
-
97
- 4. Redistribution. You may reproduce and distribute copies of the
98
- Work or Derivative Works thereof in any medium, with or without
99
- modifications, and in Source or Object form, provided that You
100
- meet the following conditions:
101
-
102
- (a) You must give any other recipients of the Work or
103
- Derivative Works a copy of this License; and
104
-
105
- (b) You must cause any modified files to carry prominent notices
106
- stating that You changed the files; and
107
-
108
- (c) You must retain, in the Source form of any Derivative Works
109
- that You distribute, all copyright, patent, trademark, and
110
- attribution notices from the Source form of the Work,
111
- excluding those notices that do not pertain to any part of
112
- the Derivative Works; and
113
-
114
- (d) If the Work includes a "NOTICE" text file as part of its
115
- distribution, then any Derivative Works that You distribute must
116
- include a readable copy of the attribution notices contained
117
- within such NOTICE file, excluding those notices that do not
118
- pertain to any part of the Derivative Works, in at least one
119
- of the following places: within a NOTICE text file distributed
120
- as part of the Derivative Works; within the Source form or
121
- documentation, if provided along with the Derivative Works; or,
122
- within a display generated by the Derivative Works, if and
123
- wherever such third-party notices normally appear. The contents
124
- of the NOTICE file are for informational purposes only and
125
- do not modify the License. You may add Your own attribution
126
- notices within Derivative Works that You distribute, alongside
127
- or as an addendum to the NOTICE text from the Work, provided
128
- that such additional attribution notices cannot be construed
129
- as modifying the License.
130
-
131
- You may add Your own copyright statement to Your modifications and
132
- may provide additional or different license terms and conditions
133
- for use, reproduction, or distribution of Your modifications, or
134
- for any such Derivative Works as a whole, provided Your use,
135
- reproduction, and distribution of the Work otherwise complies with
136
- the conditions stated in this License.
137
-
138
- 5. Submission of Contributions. Unless You explicitly state otherwise,
139
- any Contribution intentionally submitted for inclusion in the Work
140
- by You to the Licensor shall be under the terms and conditions of
141
- this License, without any additional terms or conditions.
142
- Notwithstanding the above, nothing herein shall supersede or modify
143
- the terms of any separate license agreement you may have executed
144
- with Licensor regarding such Contributions.
145
-
146
- 6. Trademarks. This License does not grant permission to use the trade
147
- names, trademarks, service marks, or product names of the Licensor,
148
- except as required for reasonable and customary use in describing the
149
- origin of the Work and reproducing the content of the NOTICE file.
150
-
151
- 7. Disclaimer of Warranty. Unless required by applicable law or
152
- agreed to in writing, Licensor provides the Work (and each
153
- Contributor provides its Contributions) on an "AS IS" BASIS,
154
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
155
- implied, including, without limitation, any warranties or conditions
156
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
157
- PARTICULAR PURPOSE. You are solely responsible for determining the
158
- appropriateness of using or redistributing the Work and assume any
159
- risks associated with Your exercise of permissions under this License.
160
-
161
- 8. Limitation of Liability. In no event and under no legal theory,
162
- whether in tort (including negligence), contract, or otherwise,
163
- unless required by applicable law (such as deliberate and grossly
164
- negligent acts) or agreed to in writing, shall any Contributor be
165
- liable to You for damages, including any direct, indirect, special,
166
- incidental, or consequential damages of any character arising as a
167
- result of this License or out of the use or inability to use the
168
- Work (including but not limited to damages for loss of goodwill,
169
- work stoppage, computer failure or malfunction, or any and all
170
- other commercial damages or losses), even if such Contributor
171
- has been advised of the possibility of such damages.
172
-
173
- 9. Accepting Warranty or Additional Liability. While redistributing
174
- the Work or Derivative Works thereof, You may choose to offer,
175
- and charge a fee for, acceptance of support, warranty, indemnity,
176
- or other liability obligations and/or rights consistent with this
177
- License. However, in accepting such obligations, You may act only
178
- on Your own behalf and on Your sole responsibility, not on behalf
179
- of any other Contributor, and only if You agree to indemnify,
180
- defend, and hold each Contributor harmless for any liability
181
- incurred by, or claims asserted against, such Contributor by reason
182
- of your accepting any such warranty or additional liability.
183
-
184
- END OF TERMS AND CONDITIONS
185
-
186
- APPENDIX: How to apply the Apache License to your work.
187
-
188
- To apply the Apache License to your work, attach the following
189
- boilerplate notice, with the fields enclosed by brackets "[]"
190
- replaced with your own identifying information. (Don't include
191
- the brackets!) The text should be enclosed in the appropriate
192
- comment syntax for the file format. We also recommend that a
193
- file or class name and description of purpose be included on the
194
- same "printed page" as the copyright notice for easier
195
- identification within third-party archives.
196
-
197
- Copyright [yyyy] [name of copyright owner]
198
-
199
- Licensed under the Apache License, Version 2.0 (the "License");
200
- you may not use this file except in compliance with the License.
201
- You may obtain a copy of the License at
202
-
203
- http://www.apache.org/licenses/LICENSE-2.0
204
-
205
- Unless required by applicable law or agreed to in writing, software
206
- distributed under the License is distributed on an "AS IS" BASIS,
207
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
208
- See the License for the specific language governing permissions and
209
- limitations under the License.
8
+ License: GNU AFFERO GENERAL PUBLIC LICENSE
9
+ Version 3, 19 November 2007
10
+
11
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
12
+ Everyone is permitted to copy and distribute verbatim copies
13
+ of this license document, but changing it is not allowed.
14
+
15
+ Preamble
16
+
17
+ The GNU Affero General Public License is a free, copyleft license for
18
+ software and other kinds of works, specifically designed to ensure
19
+ cooperation with the community in the case of network server software.
20
+
21
+ The licenses for most software and other practical works are designed
22
+ to take away your freedom to share and change the works. By contrast,
23
+ our General Public Licenses are intended to guarantee your freedom to
24
+ share and change all versions of a program--to make sure it remains free
25
+ software for all its users.
26
+
27
+ When we speak of free software, we are referring to freedom, not
28
+ price. Our General Public Licenses are designed to make sure that you
29
+ have the freedom to distribute copies of free software (and charge for
30
+ them if you wish), that you receive source code or can get it if you
31
+ want it, that you can change the software or use pieces of it in new
32
+ free programs, and that you know you can do these things.
33
+
34
+ Developers that use our General Public Licenses protect your rights
35
+ with two steps: (1) assert copyright on the software, and (2) offer
36
+ you this License which gives you legal permission to copy, distribute
37
+ and/or modify the software.
38
+
39
+ A secondary benefit of defending all users' freedom is that
40
+ improvements made in alternate versions of the program, if they
41
+ receive widespread use, become available for other developers to
42
+ incorporate. Many developers of free software are heartened and
43
+ encouraged by the resulting cooperation. However, in the case of
44
+ software used on network servers, this result may fail to come about.
45
+ The GNU General Public License permits making a modified version and
46
+ letting the public access it on a server without ever releasing its
47
+ source code to the public.
48
+
49
+ The GNU Affero General Public License is designed specifically to
50
+ ensure that, in such cases, the modified source code becomes available
51
+ to the community. It requires the operator of a network server to
52
+ provide the source code of the modified version running there to the
53
+ users of that server. Therefore, public use of a modified version, on
54
+ a publicly accessible server, gives the public access to the source
55
+ code of the modified version.
56
+
57
+ An older license, called the Affero General Public License and
58
+ published by Affero, was designed to accomplish similar goals. This is
59
+ a different license, not a version of the Affero GPL, but Affero has
60
+ released a new version of the Affero GPL which permits relicensing under
61
+ this license.
62
+
63
+ The precise terms and conditions for copying, distribution and
64
+ modification follow.
65
+
66
+ TERMS AND CONDITIONS
67
+
68
+ 0. Definitions.
69
+
70
+ "This License" refers to version 3 of the GNU Affero General Public License.
71
+
72
+ "Copyright" also means copyright-like laws that apply to other kinds of
73
+ works, such as semiconductor masks.
74
+
75
+ "The Program" refers to any copyrightable work licensed under this
76
+ License. Each licensee is addressed as "you". "Licensees" and
77
+ "recipients" may be individuals or organizations.
78
+
79
+ To "modify" a work means to copy from or adapt all or part of the work
80
+ in a fashion requiring copyright permission, other than the making of an
81
+ exact copy. The resulting work is called a "modified version" of the
82
+ earlier work or a work "based on" the earlier work.
83
+
84
+ A "covered work" means either the unmodified Program or a work based
85
+ on the Program.
86
+
87
+ To "propagate" a work means to do anything with it that, without
88
+ permission, would make you directly or secondarily liable for
89
+ infringement under applicable copyright law, except executing it on a
90
+ computer or modifying a private copy. Propagation includes copying,
91
+ distribution (with or without modification), making available to the
92
+ public, and in some countries other activities as well.
93
+
94
+ To "convey" a work means any kind of propagation that enables other
95
+ parties to make or receive copies. Mere interaction with a user through
96
+ a computer network, with no transfer of a copy, is not conveying.
97
+
98
+ An interactive user interface displays "Appropriate Legal Notices"
99
+ to the extent that it includes a convenient and prominently visible
100
+ feature that (1) displays an appropriate copyright notice, and (2)
101
+ tells the user that there is no warranty for the work (except to the
102
+ extent that warranties are provided), that licensees may convey the
103
+ work under this License, and how to view a copy of this License. If
104
+ the interface presents a list of user commands or options, such as a
105
+ menu, a prominent item in the list meets this criterion.
106
+
107
+ 1. Source Code.
108
+
109
+ The "source code" for a work means the preferred form of the work
110
+ for making modifications to it. "Object code" means any non-source
111
+ form of a work.
112
+
113
+ A "Standard Interface" means an interface that either is an official
114
+ standard defined by a recognized standards body, or, in the case of
115
+ interfaces specified for a particular programming language, one that
116
+ is widely used among developers working in that language.
117
+
118
+ The "System Libraries" of an executable work include anything, other
119
+ than the work as a whole, that (a) is included in the normal form of
120
+ packaging a Major Component, but which is not part of that Major
121
+ Component, and (b) serves only to enable use of the work with that
122
+ Major Component, or to implement a Standard Interface for which an
123
+ implementation is available to the public in source code form. A
124
+ "Major Component", in this context, means a major essential component
125
+ (kernel, window system, and so on) of the specific operating system
126
+ (if any) on which the executable work runs, or a compiler used to
127
+ produce the work, or an object code interpreter used to run it.
128
+
129
+ The "Corresponding Source" for a work in object code form means all
130
+ the source code needed to generate, install, and (for an executable
131
+ work) run the object code and to modify the work, including scripts to
132
+ control those activities. However, it does not include the work's
133
+ System Libraries, or general-purpose tools or generally available free
134
+ programs which are used unmodified in performing those activities but
135
+ which are not part of the work. For example, Corresponding Source
136
+ includes interface definition files associated with source files for
137
+ the work, and the source code for shared libraries and dynamically
138
+ linked subprograms that the work is specifically designed to require,
139
+ such as by intimate data communication or control flow between those
140
+ subprograms and other parts of the work.
141
+
142
+ The Corresponding Source need not include anything that users
143
+ can regenerate automatically from other parts of the Corresponding
144
+ Source.
145
+
146
+ The Corresponding Source for a work in source code form is that
147
+ same work.
148
+
149
+ 2. Basic Permissions.
150
+
151
+ All rights granted under this License are granted for the term of
152
+ copyright on the Program, and are irrevocable provided the stated
153
+ conditions are met. This License explicitly affirms your unlimited
154
+ permission to run the unmodified Program. The output from running a
155
+ covered work is covered by this License only if the output, given its
156
+ content, constitutes a covered work. This License acknowledges your
157
+ rights of fair use or other equivalent, as provided by copyright law.
158
+
159
+ You may make, run and propagate covered works that you do not
160
+ convey, without conditions so long as your license otherwise remains
161
+ in force. You may convey covered works to others for the sole purpose
162
+ of having them make modifications exclusively for you, or provide you
163
+ with facilities for running those works, provided that you comply with
164
+ the terms of this License in conveying all material for which you do
165
+ not control copyright. Those thus making or running the covered works
166
+ for you must do so exclusively on your behalf, under your direction
167
+ and control, on terms that prohibit them from making any copies of
168
+ your copyrighted material outside their relationship with you.
169
+
170
+ Conveying under any other circumstances is permitted solely under
171
+ the conditions stated below. Sublicensing is not allowed; section 10
172
+ makes it unnecessary.
173
+
174
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
175
+
176
+ No covered work shall be deemed part of an effective technological
177
+ measure under any applicable law fulfilling obligations under article
178
+ 11 of the WIPO copyright treaty adopted on 20 December 1996, or
179
+ similar laws prohibiting or restricting circumvention of such
180
+ measures.
181
+
182
+ When you convey a covered work, you waive any legal power to forbid
183
+ circumvention of technological measures to the extent such circumvention
184
+ is effected by exercising rights under this License with respect to
185
+ the covered work, and you disclaim any intention to limit operation or
186
+ modification of the work as a means of enforcing, against the work's
187
+ users, your or third parties' legal rights to forbid circumvention of
188
+ technological measures.
189
+
190
+ 4. Conveying Verbatim Copies.
191
+
192
+ You may convey verbatim copies of the Program's source code as you
193
+ receive it, in any medium, provided that you conspicuously and
194
+ appropriately publish on each copy an appropriate copyright notice;
195
+ keep intact all notices stating that this License and any
196
+ non-permissive terms added in accord with section 7 apply to the code;
197
+ keep intact all notices of the absence of any warranty; and give all
198
+ recipients a copy of this License along with the Program.
199
+
200
+ You may charge any price or no price for each copy that you convey,
201
+ and you may offer support or warranty protection for a fee.
202
+
203
+ 5. Conveying Modified Source Versions.
204
+
205
+ You may convey a work based on the Program, or the modifications to
206
+ produce it from the Program, in the form of source code under the
207
+ terms of section 4, provided that you also meet all of these conditions:
208
+
209
+ a) The work must carry prominent notices stating that you modified
210
+ it, and giving a relevant date.
211
+
212
+ b) The work must carry prominent notices stating that it is
213
+ released under this License and any conditions added under section
214
+ 7. This requirement modifies the requirement in section 4 to
215
+ "keep intact all notices".
216
+
217
+ c) You must license the entire work, as a whole, under this
218
+ License to anyone who comes into possession of a copy. This
219
+ License will therefore apply, along with any applicable section 7
220
+ additional terms, to the whole of the work, and all its parts,
221
+ regardless of how they are packaged. This License gives no
222
+ permission to license the work in any other way, but it does not
223
+ invalidate such permission if you have separately received it.
224
+
225
+ d) If the work has interactive user interfaces, each must display
226
+ Appropriate Legal Notices; however, if the Program has interactive
227
+ interfaces that do not display Appropriate Legal Notices, your
228
+ work need not make them do so.
229
+
230
+ A compilation of a covered work with other separate and independent
231
+ works, which are not by their nature extensions of the covered work,
232
+ and which are not combined with it such as to form a larger program,
233
+ in or on a volume of a storage or distribution medium, is called an
234
+ "aggregate" if the compilation and its resulting copyright are not
235
+ used to limit the access or legal rights of the compilation's users
236
+ beyond what the individual works permit. Inclusion of a covered work
237
+ in an aggregate does not cause this License to apply to the other
238
+ parts of the aggregate.
239
+
240
+ 6. Conveying Non-Source Forms.
241
+
242
+ You may convey a covered work in object code form under the terms
243
+ of sections 4 and 5, provided that you also convey the
244
+ machine-readable Corresponding Source under the terms of this License,
245
+ in one of these ways:
246
+
247
+ a) Convey the object code in, or embodied in, a physical product
248
+ (including a physical distribution medium), accompanied by the
249
+ Corresponding Source fixed on a durable physical medium
250
+ customarily used for software interchange.
251
+
252
+ b) Convey the object code in, or embodied in, a physical product
253
+ (including a physical distribution medium), accompanied by a
254
+ written offer, valid for at least three years and valid for as
255
+ long as you offer spare parts or customer support for that product
256
+ model, to give anyone who possesses the object code either (1) a
257
+ copy of the Corresponding Source for all the software in the
258
+ product that is covered by this License, on a durable physical
259
+ medium customarily used for software interchange, for a price no
260
+ more than your reasonable cost of physically performing this
261
+ conveying of source, or (2) access to copy the
262
+ Corresponding Source from a network server at no charge.
263
+
264
+ c) Convey individual copies of the object code with a copy of the
265
+ written offer to provide the Corresponding Source. This
266
+ alternative is allowed only occasionally and noncommercially, and
267
+ only if you received the object code with such an offer, in accord
268
+ with subsection 6b.
269
+
270
+ d) Convey the object code by offering access from a designated
271
+ place (gratis or for a charge), and offer equivalent access to the
272
+ Corresponding Source in the same way through the same place at no
273
+ further charge. You need not require recipients to copy the
274
+ Corresponding Source along with the object code. If the place to
275
+ copy the object code is a network server, the Corresponding Source
276
+ may be on a different server (operated by you or a third party)
277
+ that supports equivalent copying facilities, provided you maintain
278
+ clear directions next to the object code saying where to find the
279
+ Corresponding Source. Regardless of what server hosts the
280
+ Corresponding Source, you remain obligated to ensure that it is
281
+ available for as long as needed to satisfy these requirements.
282
+
283
+ e) Convey the object code using peer-to-peer transmission, provided
284
+ you inform other peers where the object code and Corresponding
285
+ Source of the work are being offered to the general public at no
286
+ charge under subsection 6d.
287
+
288
+ A separable portion of the object code, whose source code is excluded
289
+ from the Corresponding Source as a System Library, need not be
290
+ included in conveying the object code work.
291
+
292
+ A "User Product" is either (1) a "consumer product", which means any
293
+ tangible personal property which is normally used for personal, family,
294
+ or household purposes, or (2) anything designed or sold for incorporation
295
+ into a dwelling. In determining whether a product is a consumer product,
296
+ doubtful cases shall be resolved in favor of coverage. For a particular
297
+ product received by a particular user, "normally used" refers to a
298
+ typical or common use of that class of product, regardless of the status
299
+ of the particular user or of the way in which the particular user
300
+ actually uses, or expects or is expected to use, the product. A product
301
+ is a consumer product regardless of whether the product has substantial
302
+ commercial, industrial or non-consumer uses, unless such uses represent
303
+ the only significant mode of use of the product.
304
+
305
+ "Installation Information" for a User Product means any methods,
306
+ procedures, authorization keys, or other information required to install
307
+ and execute modified versions of a covered work in that User Product from
308
+ a modified version of its Corresponding Source. The information must
309
+ suffice to ensure that the continued functioning of the modified object
310
+ code is in no case prevented or interfered with solely because
311
+ modification has been made.
312
+
313
+ If you convey an object code work under this section in, or with, or
314
+ specifically for use in, a User Product, and the conveying occurs as
315
+ part of a transaction in which the right of possession and use of the
316
+ User Product is transferred to the recipient in perpetuity or for a
317
+ fixed term (regardless of how the transaction is characterized), the
318
+ Corresponding Source conveyed under this section must be accompanied
319
+ by the Installation Information. But this requirement does not apply
320
+ if neither you nor any third party retains the ability to install
321
+ modified object code on the User Product (for example, the work has
322
+ been installed in ROM).
323
+
324
+ The requirement to provide Installation Information does not include a
325
+ requirement to continue to provide support service, warranty, or updates
326
+ for a work that has been modified or installed by the recipient, or for
327
+ the User Product in which it has been modified or installed. Access to a
328
+ network may be denied when the modification itself materially and
329
+ adversely affects the operation of the network or violates the rules and
330
+ protocols for communication across the network.
331
+
332
+ Corresponding Source conveyed, and Installation Information provided,
333
+ in accord with this section must be in a format that is publicly
334
+ documented (and with an implementation available to the public in
335
+ source code form), and must require no special password or key for
336
+ unpacking, reading or copying.
337
+
338
+ 7. Additional Terms.
339
+
340
+ "Additional permissions" are terms that supplement the terms of this
341
+ License by making exceptions from one or more of its conditions.
342
+ Additional permissions that are applicable to the entire Program shall
343
+ be treated as though they were included in this License, to the extent
344
+ that they are valid under applicable law. If additional permissions
345
+ apply only to part of the Program, that part may be used separately
346
+ under those permissions, but the entire Program remains governed by
347
+ this License without regard to the additional permissions.
348
+
349
+ When you convey a copy of a covered work, you may at your option
350
+ remove any additional permissions from that copy, or from any part of
351
+ it. (Additional permissions may be written to require their own
352
+ removal in certain cases when you modify the work.) You may place
353
+ additional permissions on material, added by you to a covered work,
354
+ for which you have or can give appropriate copyright permission.
355
+
356
+ Notwithstanding any other provision of this License, for material you
357
+ add to a covered work, you may (if authorized by the copyright holders of
358
+ that material) supplement the terms of this License with terms:
359
+
360
+ a) Disclaiming warranty or limiting liability differently from the
361
+ terms of sections 15 and 16 of this License; or
362
+
363
+ b) Requiring preservation of specified reasonable legal notices or
364
+ author attributions in that material or in the Appropriate Legal
365
+ Notices displayed by works containing it; or
366
+
367
+ c) Prohibiting misrepresentation of the origin of that material, or
368
+ requiring that modified versions of such material be marked in
369
+ reasonable ways as different from the original version; or
370
+
371
+ d) Limiting the use for publicity purposes of names of licensors or
372
+ authors of the material; or
373
+
374
+ e) Declining to grant rights under trademark law for use of some
375
+ trade names, trademarks, or service marks; or
376
+
377
+ f) Requiring indemnification of licensors and authors of that
378
+ material by anyone who conveys the material (or modified versions of
379
+ it) with contractual assumptions of liability to the recipient, for
380
+ any liability that these contractual assumptions directly impose on
381
+ those licensors and authors.
382
+
383
+ All other non-permissive additional terms are considered "further
384
+ restrictions" within the meaning of section 10. If the Program as you
385
+ received it, or any part of it, contains a notice stating that it is
386
+ governed by this License along with a term that is a further
387
+ restriction, you may remove that term. If a license document contains
388
+ a further restriction but permits relicensing or conveying under this
389
+ License, you may add to a covered work material governed by the terms
390
+ of that license document, provided that the further restriction does
391
+ not survive such relicensing or conveying.
392
+
393
+ If you add terms to a covered work in accord with this section, you
394
+ must place, in the relevant source files, a statement of the
395
+ additional terms that apply to those files, or a notice indicating
396
+ where to find the applicable terms.
397
+
398
+ Additional terms, permissive or non-permissive, may be stated in the
399
+ form of a separately written license, or stated as exceptions;
400
+ the above requirements apply either way.
401
+
402
+ 8. Termination.
403
+
404
+ You may not propagate or modify a covered work except as expressly
405
+ provided under this License. Any attempt otherwise to propagate or
406
+ modify it is void, and will automatically terminate your rights under
407
+ this License (including any patent licenses granted under the third
408
+ paragraph of section 11).
409
+
410
+ However, if you cease all violation of this License, then your
411
+ license from a particular copyright holder is reinstated (a)
412
+ provisionally, unless and until the copyright holder explicitly and
413
+ finally terminates your license, and (b) permanently, if the copyright
414
+ holder fails to notify you of the violation by some reasonable means
415
+ prior to 60 days after the cessation.
416
+
417
+ Moreover, your license from a particular copyright holder is
418
+ reinstated permanently if the copyright holder notifies you of the
419
+ violation by some reasonable means, this is the first time you have
420
+ received notice of violation of this License (for any work) from that
421
+ copyright holder, and you cure the violation prior to 30 days after
422
+ your receipt of the notice.
423
+
424
+ Termination of your rights under this section does not terminate the
425
+ licenses of parties who have received copies or rights from you under
426
+ this License. If your rights have been terminated and not permanently
427
+ reinstated, you do not qualify to receive new licenses for the same
428
+ material under section 10.
429
+
430
+ 9. Acceptance Not Required for Having Copies.
431
+
432
+ You are not required to accept this License in order to receive or
433
+ run a copy of the Program. Ancillary propagation of a covered work
434
+ occurring solely as a consequence of using peer-to-peer transmission
435
+ to receive a copy likewise does not require acceptance. However,
436
+ nothing other than this License grants you permission to propagate or
437
+ modify any covered work. These actions infringe copyright if you do
438
+ not accept this License. Therefore, by modifying or propagating a
439
+ covered work, you indicate your acceptance of this License to do so.
440
+
441
+ 10. Automatic Licensing of Downstream Recipients.
442
+
443
+ Each time you convey a covered work, the recipient automatically
444
+ receives a license from the original licensors, to run, modify and
445
+ propagate that work, subject to this License. You are not responsible
446
+ for enforcing compliance by third parties with this License.
447
+
448
+ An "entity transaction" is a transaction transferring control of an
449
+ organization, or substantially all assets of one, or subdividing an
450
+ organization, or merging organizations. If propagation of a covered
451
+ work results from an entity transaction, each party to that
452
+ transaction who receives a copy of the work also receives whatever
453
+ licenses to the work the party's predecessor in interest had or could
454
+ give under the previous paragraph, plus a right to possession of the
455
+ Corresponding Source of the work from the predecessor in interest, if
456
+ the predecessor has it or can get it with reasonable efforts.
457
+
458
+ You may not impose any further restrictions on the exercise of the
459
+ rights granted or affirmed under this License. For example, you may
460
+ not impose a license fee, royalty, or other charge for exercise of
461
+ rights granted under this License, and you may not initiate litigation
462
+ (including a cross-claim or counterclaim in a lawsuit) alleging that
463
+ any patent claim is infringed by making, using, selling, offering for
464
+ sale, or importing the Program or any portion of it.
465
+
466
+ 11. Patents.
467
+
468
+ A "contributor" is a copyright holder who authorizes use under this
469
+ License of the Program or a work on which the Program is based. The
470
+ work thus licensed is called the contributor's "contributor version".
471
+
472
+ A contributor's "essential patent claims" are all patent claims
473
+ owned or controlled by the contributor, whether already acquired or
474
+ hereafter acquired, that would be infringed by some manner, permitted
475
+ by this License, of making, using, or selling its contributor version,
476
+ but do not include claims that would be infringed only as a
477
+ consequence of further modification of the contributor version. For
478
+ purposes of this definition, "control" includes the right to grant
479
+ patent sublicenses in a manner consistent with the requirements of
480
+ this License.
481
+
482
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
483
+ patent license under the contributor's essential patent claims, to
484
+ make, use, sell, offer for sale, import and otherwise run, modify and
485
+ propagate the contents of its contributor version.
486
+
487
+ In the following three paragraphs, a "patent license" is any express
488
+ agreement or commitment, however denominated, not to enforce a patent
489
+ (such as an express permission to practice a patent or covenant not to
490
+ sue for patent infringement). To "grant" such a patent license to a
491
+ party means to make such an agreement or commitment not to enforce a
492
+ patent against the party.
493
+
494
+ If you convey a covered work, knowingly relying on a patent license,
495
+ and the Corresponding Source of the work is not available for anyone
496
+ to copy, free of charge and under the terms of this License, through a
497
+ publicly available network server or other readily accessible means,
498
+ then you must either (1) cause the Corresponding Source to be so
499
+ available, or (2) arrange to deprive yourself of the benefit of the
500
+ patent license for this particular work, or (3) arrange, in a manner
501
+ consistent with the requirements of this License, to extend the patent
502
+ license to downstream recipients. "Knowingly relying" means you have
503
+ actual knowledge that, but for the patent license, your conveying the
504
+ covered work in a country, or your recipient's use of the covered work
505
+ in a country, would infringe one or more identifiable patents in that
506
+ country that you have reason to believe are valid.
507
+
508
+ If, pursuant to or in connection with a single transaction or
509
+ arrangement, you convey, or propagate by procuring conveyance of, a
510
+ covered work, and grant a patent license to some of the parties
511
+ receiving the covered work authorizing them to use, propagate, modify
512
+ or convey a specific copy of the covered work, then the patent license
513
+ you grant is automatically extended to all recipients of the covered
514
+ work and works based on it.
515
+
516
+ A patent license is "discriminatory" if it does not include within
517
+ the scope of its coverage, prohibits the exercise of, or is
518
+ conditioned on the non-exercise of one or more of the rights that are
519
+ specifically granted under this License. You may not convey a covered
520
+ work if you are a party to an arrangement with a third party that is
521
+ in the business of distributing software, under which you make payment
522
+ to the third party based on the extent of your activity of conveying
523
+ the work, and under which the third party grants, to any of the
524
+ parties who would receive the covered work from you, a discriminatory
525
+ patent license (a) in connection with copies of the covered work
526
+ conveyed by you (or copies made from those copies), or (b) primarily
527
+ for and in connection with specific products or compilations that
528
+ contain the covered work, unless you entered into that arrangement,
529
+ or that patent license was granted, prior to 28 March 2007.
530
+
531
+ Nothing in this License shall be construed as excluding or limiting
532
+ any implied license or other defenses to infringement that may
533
+ otherwise be available to you under applicable patent law.
534
+
535
+ 12. No Surrender of Others' Freedom.
536
+
537
+ If conditions are imposed on you (whether by court order, agreement or
538
+ otherwise) that contradict the conditions of this License, they do not
539
+ excuse you from the conditions of this License. If you cannot convey a
540
+ covered work so as to satisfy simultaneously your obligations under this
541
+ License and any other pertinent obligations, then as a consequence you may
542
+ not convey it at all. For example, if you agree to terms that obligate you
543
+ to collect a royalty for further conveying from those to whom you convey
544
+ the Program, the only way you could satisfy both those terms and this
545
+ License would be to refrain entirely from conveying the Program.
546
+
547
+ 13. Remote Network Interaction; Use with the GNU General Public License.
548
+
549
+ Notwithstanding any other provision of this License, if you modify the
550
+ Program, your modified version must prominently offer all users
551
+ interacting with it remotely through a computer network (if your version
552
+ supports such interaction) an opportunity to receive the Corresponding
553
+ Source of your version by providing access to the Corresponding Source
554
+ from a network server at no charge, through some standard or customary
555
+ means of facilitating copying of software. This Corresponding Source
556
+ shall include the Corresponding Source for any work covered by version 3
557
+ of the GNU General Public License that is incorporated pursuant to the
558
+ following paragraph.
559
+
560
+ Notwithstanding any other provision of this License, you have
561
+ permission to link or combine any covered work with a work licensed
562
+ under version 3 of the GNU General Public License into a single
563
+ combined work, and to convey the resulting work. The terms of this
564
+ License will continue to apply to the part which is the covered work,
565
+ but the work with which it is combined will remain governed by version
566
+ 3 of the GNU General Public License.
567
+
568
+ 14. Revised Versions of this License.
569
+
570
+ The Free Software Foundation may publish revised and/or new versions of
571
+ the GNU Affero General Public License from time to time. Such new versions
572
+ will be similar in spirit to the present version, but may differ in detail to
573
+ address new problems or concerns.
574
+
575
+ Each version is given a distinguishing version number. If the
576
+ Program specifies that a certain numbered version of the GNU Affero General
577
+ Public License "or any later version" applies to it, you have the
578
+ option of following the terms and conditions either of that numbered
579
+ version or of any later version published by the Free Software
580
+ Foundation. If the Program does not specify a version number of the
581
+ GNU Affero General Public License, you may choose any version ever published
582
+ by the Free Software Foundation.
583
+
584
+ If the Program specifies that a proxy can decide which future
585
+ versions of the GNU Affero General Public License can be used, that proxy's
586
+ public statement of acceptance of a version permanently authorizes you
587
+ to choose that version for the Program.
588
+
589
+ Later license versions may give you additional or different
590
+ permissions. However, no additional obligations are imposed on any
591
+ author or copyright holder as a result of your choosing to follow a
592
+ later version.
593
+
594
+ 15. Disclaimer of Warranty.
595
+
596
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
597
+ APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
598
+ HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
599
+ OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
600
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
601
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
602
+ IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
603
+ ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
604
+
605
+ 16. Limitation of Liability.
606
+
607
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
608
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
609
+ THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
610
+ GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
611
+ USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
612
+ DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
613
+ PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
614
+ EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
615
+ SUCH DAMAGES.
616
+
617
+ 17. Interpretation of Sections 15 and 16.
618
+
619
+ If the disclaimer of warranty and limitation of liability provided
620
+ above cannot be given local legal effect according to their terms,
621
+ reviewing courts shall apply local law that most closely approximates
622
+ an absolute waiver of all civil liability in connection with the
623
+ Program, unless a warranty or assumption of liability accompanies a
624
+ copy of the Program in return for a fee.
625
+
626
+ END OF TERMS AND CONDITIONS
627
+
628
+ How to Apply These Terms to Your New Programs
629
+
630
+ If you develop a new program, and you want it to be of the greatest
631
+ possible use to the public, the best way to achieve this is to make it
632
+ free software which everyone can redistribute and change under these terms.
633
+
634
+ To do so, attach the following notices to the program. It is safest
635
+ to attach them to the start of each source file to most effectively
636
+ state the exclusion of warranty; and each file should have at least
637
+ the "copyright" line and a pointer to where the full notice is found.
638
+
639
+ <one line to give the program's name and a brief idea of what it does.>
640
+ Copyright (C) <year> <name of author>
641
+
642
+ This program is free software: you can redistribute it and/or modify
643
+ it under the terms of the GNU Affero General Public License as published
644
+ by the Free Software Foundation, either version 3 of the License, or
645
+ (at your option) any later version.
646
+
647
+ This program is distributed in the hope that it will be useful,
648
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
649
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
650
+ GNU Affero General Public License for more details.
651
+
652
+ You should have received a copy of the GNU Affero General Public License
653
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
654
+
655
+ Also add information on how to contact you by electronic and paper mail.
656
+
657
+ If your software can interact with users remotely through a computer
658
+ network, you should also make sure that it provides a way for users to
659
+ get its source. For example, if your program is a web application, its
660
+ interface could display a "Source" link that leads users to an archive
661
+ of the code. There are many ways you could offer source, and different
662
+ solutions will be better for different programs; see section 13 for the
663
+ specific requirements.
664
+
665
+ You should also get your employer (if you work as a programmer) or school,
666
+ if any, to sign a "copyright disclaimer" for the program, if necessary.
667
+ For more information on this, and how to apply and follow the GNU AGPL, see
668
+ <https://www.gnu.org/licenses/>.
210
669
 
211
670
  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,物理
212
671
  Requires-Python: >=3.4
213
672
  Description-Content-Type: text/markdown
214
673
 
215
- # <font color = blue>PyPyNum</font>
674
+ # PyPyNum
216
675
 
217
- <font color = gree>PyPyNum is a Python library for math & science computations, covering algebra, calculus, stats, with
218
- data structures like matrices, vectors, tensors. It offers numerical tools, programs, and supports computational ops,
219
- functions, processing, simulation, & visualization in data science & ML, crucial for research, engineering, & data
220
- processing.</font><font color = red>[Python>=3.4]</font>
676
+ PyPyNum is a multifunctional Python math lib. It includes modules for math, data analysis, array ops, crypto, physics,
677
+ randomness, data prep, stats, solving eqns, image processing, interp, matrix calc, and high-precision math. Designed for
678
+ scientific computing, data science, and machine learning, PyPyNum provides efficient and versatile tools.
221
679
 
222
680
  ```
223
681
  ________ ___ ___ ________ ___ ___ ________ ___ ___ _____ ______
@@ -234,7 +692,7 @@ processing.</font><font color = red>[Python>=3.4]</font>
234
692
  [![Downloads](https://static.pepy.tech/badge/pypynum/month)](https://pepy.tech/project/pypynum)
235
693
  [![Downloads](https://static.pepy.tech/badge/pypynum/week)](https://pepy.tech/project/pypynum)
236
694
 
237
- ## Version -> 1.16.2 | PyPI -> https://pypi.org/project/PyPyNum/ | Gitee -> https://www.gitee.com/PythonSJL/PyPyNum | GitHub -> https://github.com/PythonSJL/PyPyNum
695
+ ## Version -> 1.17.1 | PyPI -> https://pypi.org/project/PyPyNum/ | Gitee -> https://www.gitee.com/PythonSJL/PyPyNum | GitHub -> https://github.com/PythonSJL/PyPyNum
238
696
 
239
697
  ![LOGO](PyPyNum.png)
240
698
 
@@ -256,6 +714,35 @@ The logo cannot be displayed on PyPI, it can be viewed in Gitee or GitHub.
256
714
  +++++++++++++++++++++++++++++++++++++++++
257
715
  ```
258
716
 
717
+ ### Copyright and License
718
+
719
+ This Python library is licensed under the GNU Affero General Public License version 3 (AGPLv3).
720
+
721
+ The license is designed to ensure that network server software is made available to the community, allowing users to
722
+ access the source code of modified versions when the software is used to provide network services.
723
+
724
+ **Key Terms and Conditions:**
725
+
726
+ - Source Code: The library must be provided with its source code, and any modifications must also be distributed under
727
+ the AGPLv3.
728
+ - Free Redistribution: The library can be distributed in source and binary forms without any restrictions.
729
+ - No Discrimination: The license does not restrict the use of the software by individuals or organizations, nor does it
730
+ discriminate against fields of use.
731
+ - No Discrimination Against Persons or Groups: The license does not restrict anyone from receiving the software.
732
+ - Patent License: The patent holder must grant a patent license to anyone who uses the software.
733
+ - No Surrender of Others' Freedom: The license does not allow any conditions that contradict the AGPLv3.
734
+ - Remote Network Interaction: If the software can interact with users remotely, the source code must be made available
735
+ at no charge.
736
+ - Revised Versions of this License: The Free Software Foundation may publish revised versions of the AGPLv3, and users
737
+ have the option to follow the terms of any version.
738
+ - Disclaimer of Warranty: There is no warranty for the software, to the extent permitted by applicable law.
739
+ - Limitation of Liability: The copyright holder and any other party who modifies and conveys the software are not liable
740
+ for damages arising from the use or inability to use the software.
741
+
742
+ **Full License Text:**
743
+
744
+ [GNU Affero General Public License](https://www.gnu.org/licenses/agpl-3.0.en.html)
745
+
259
746
  ### Name and Function Introduction of Submodules
260
747
 
261
748
  | Submodule Name | Function Introduction |
@@ -273,11 +760,12 @@ The logo cannot be displayed on PyPI, it can be viewed in Gitee or GitHub.
273
760
  | `pypynum.geoms` | Geometric shapes and calculation methods. |
274
761
  | `pypynum.graphs` | Graph theory algorithms and network analysis. |
275
762
  | `pypynum.groups` | Group theory calculations and structural analysis. |
763
+ | `pypynum.hypcmpnms` | Hypercomplex number operations and transformations. |
276
764
  | `pypynum.images` | Image processing and manipulation tools. |
277
765
  | `pypynum.interp` | Interpolation methods and function approximation. |
278
766
  | `pypynum.kernels` | Implementation of kernel functions and methods. |
279
767
  | `pypynum.logics` | Simulates logical circuits. |
280
- | `pypynum.maths` | Basic mathematical operations and special functions. |
768
+ | `pypynum.maths` | Basic mathematical operations and commonly used functions. |
281
769
  | `pypynum.matrices` | Matrix operations and linear algebra calculations. |
282
770
  | `pypynum.multiprec` | High-precision numerical computations. |
283
771
  | `pypynum.networks` | Network models and algorithms. |
@@ -285,7 +773,6 @@ The logo cannot be displayed on PyPI, it can be viewed in Gitee or GitHub.
285
773
  | `pypynum.plotting` | Data visualization tools. |
286
774
  | `pypynum.polys` | Polynomial operations and calculations. |
287
775
  | `pypynum.pprinters` | Advanced printing and formatting output. |
288
- | `pypynum.quats` | Quaternion operations and transformations. |
289
776
  | `pypynum.random` | Generates arrays of random numbers. |
290
777
  | `pypynum.regs` | Regression analysis and model fitting. |
291
778
  | `pypynum.seqs` | Computes various mathematical sequences. |
@@ -309,6 +796,7 @@ The logo cannot be displayed on PyPI, it can be viewed in Gitee or GitHub.
309
796
  The Zen of PyPyNum, by Shen Jiayi
310
797
 
311
798
  In this mathematical sanctuary, we weave our algorithms with pure Python threads.
799
+
312
800
  Precision outweighs approximation.
313
801
  Elegance in mathematics transcends the bulky algorithms.
314
802
  Clarity in logic illuminates the darkest problems.
@@ -334,73 +822,75 @@ Python interpreter and run it!
334
822
  ### Functional Changes Compared to the Previous Version
335
823
 
336
824
  ```
337
- !=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
338
-
339
- <<< Here are the newly added functions >>>
340
-
341
-
342
- kmp_table(pattern: Union[list, tuple, str]) -> list
343
- Introduction
344
- ==========
345
- Generate the KMP (Knuth-Morris-Pratt) table for a given pattern.
346
-
347
- The KMP table is used to efficiently find occurrences of a pattern within a sequence by avoiding unnecessary
348
- comparisons after a mismatch. This table determines how many characters can be skipped after a mismatch.
349
-
350
- Example
351
- ========
352
- >>> kmp_table("AGCTGATCGTACGTAAGCTAGCTA")
353
- [0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 2, 3, 4, 1, 2, 3, 4, 1]
354
- >>>
355
- :param pattern: The pattern for which to generate the KMP table.
356
- :return: A list representing the KMP table for the given pattern.
357
-
358
-
359
- findall(seq: Union[list, tuple, str], pat: Union[list, tuple, str]) -> list
360
- Introduction
361
- ==========
362
- Find all indices of the subsequence 'pat' in 'seq'.
363
-
364
- This function is designed to handle sequences such as lists, tuples, or strings and find all indices
365
- of specified subsequences. It allows overlapping matches.
366
-
367
- Example
368
- ========
369
- >>> findall([2, 1, 2, 1, 2, 1, 2, 1], [1, 2, 1, 2])
370
- [1, 3]
371
- >>>
372
- :param seq: The sequence in which to find the subsequence.
373
- :param pat: The subsequence to be found.
374
- :return: A list of starting indices where the subsequence is found.
375
-
376
-
377
- ---------------------------------------------------------------------------------------
378
- | q-functions generalize classical math functions by introducing parameter q. |
379
- | They are key in combinatorics and special functions, widely applied. |
380
- | As q approaches 1, they revert to classical forms. |
381
- | Examples include q-factorials, q-binomial coefficients, Jackson q-Bessel functions. |
382
- | These functions are crucial in fractals, chaotic systems, quantum groups. |
383
- | They provide tools for solving complex mathematical challenges effectively. |
384
- ---------------------------------------------------------------------------------------
385
-
386
-
387
- Here are the 12 new q-functions added in the current version (adding the previous 4 makes a total of 16):
388
-
389
-
390
- qbeta(a: Union[int, float, complex], b: Union[int, float, complex], q: Union[int, float, complex]) -> Union[int, float, complex]
391
- qcos_large(x: Union[int, float, complex], q: Union[int, float, complex]) -> Union[int, float, complex]
392
- qcos_small(x: Union[int, float, complex], q: Union[int, float, complex]) -> Union[int, float, complex]
393
- qcosh_large(x: Union[int, float, complex], q: Union[int, float, complex]) -> Union[int, float, complex]
394
- qcosh_small(x: Union[int, float, complex], q: Union[int, float, complex]) -> Union[int, float, complex]
395
- qexp_large(z: Union[int, float, complex], q: Union[int, float, complex]) -> Union[int, float, complex]
396
- qexp_small(z: Union[int, float, complex], q: Union[int, float, complex]) -> Union[int, float, complex]
397
- qpi(q: Union[int, float, complex]) -> Union[int, float, complex]
398
- qsin_large(x: Union[int, float, complex], q: Union[int, float, complex]) -> Union[int, float, complex]
399
- qsin_small(x: Union[int, float, complex], q: Union[int, float, complex]) -> Union[int, float, complex]
400
- qsinh_large(x: Union[int, float, complex], q: Union[int, float, complex]) -> Union[int, float, complex]
401
- qsinh_small(x: Union[int, float, complex], q: Union[int, float, complex]) -> Union[int, float, complex]
402
-
403
- !=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
825
+ !=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
826
+
827
+ The `pypynum.images` module
828
+ now encompasses three classes,
829
+ expanding its image processing functionality.
830
+ The original `PNG` class
831
+ has been transformed to be based on
832
+ the `BaseImage` class.
833
+ This update includes a specific fix
834
+ for the `read` method in `PNG`,
835
+ addressing issues with reading
836
+ large images.
837
+ 1. `BaseImage`: A foundational class
838
+ for image processing, offering
839
+ basic methods like image creation,
840
+ pixel access, and metadata retrieval.
841
+ 2. `BMP`: A subclass of `BaseImage`,
842
+ tailored for BMP image handling,
843
+ providing specialized BMP functionalities.
844
+ 3. `PNG`: The `PNG` class, now built on
845
+ `BaseImage`, with an improved `read`
846
+ method that solves the problem of
847
+ reading large PNG files.
848
+ This fix to the `read` method in `PNG`
849
+ ensures efficient processing of large images,
850
+ maintaining image quality and integrity.
851
+ The module's enhanced capabilities
852
+ make it more robust and user-friendly
853
+ for handling substantial PNG files.
854
+
855
+
856
+ <<< The following are some usage examples >>>
857
+
858
+
859
+ # Import BMP and PNG classes
860
+ from pypynum import BMP, PNG
861
+
862
+ # Instantiate BMP class
863
+ bmp_image = BMP()
864
+ # Instantiate a BMP image with specified dimensions and color
865
+ bmp_image.new(width=100, height=100, color=(255, 0, 0), color_mode="RGB", bit_depth=8)
866
+ # Set pixel color at (50, 50) to blue
867
+ bmp_image[50, 50] = (0, 0, 255)
868
+ # Save the BMP image
869
+ bmp_image.write("output_bmp.bmp")
870
+ # Instantiate PNG class
871
+ png_image = PNG()
872
+ # Instantiate a PNG image with specified dimensions and color
873
+ png_image.new(width=100, height=100, color=(0, 255, 0), color_mode="RGB", bit_depth=8)
874
+ # Set pixel color at (50, 50) to yellow
875
+ png_image[50, 50] = (255, 255, 0)
876
+ # Save the PNG image
877
+ png_image.write("output_png.png")
878
+ # Create BMP reader to read the BMP image
879
+ bmp_reader = BMP()
880
+ # Read the BMP image from the file
881
+ bmp_reader.read("output_bmp.bmp")
882
+ # Print the BMP image and pixel at (50, 50)
883
+ print("BMP Image:", bmp_reader)
884
+ print("BMP Pixel at (50, 50):", bmp_reader[50, 50])
885
+ # Create PNG reader to read the PNG image
886
+ png_reader = PNG()
887
+ # Read the PNG image from the file
888
+ png_reader.read("output_png.png")
889
+ # Print the PNG image and pixel at (50, 50)
890
+ print("PNG Image:", png_reader)
891
+ print("PNG Pixel at (50, 50):", png_reader[50, 50])
892
+
893
+ !=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
404
894
  ```
405
895
 
406
896
  ### Run Time Test
@@ -436,7 +926,7 @@ PyPyNum
436
926
  │ ├── asarray(data: Any) -> Any
437
927
  │ ├── aslist(data: Any) -> Any
438
928
  │ ├── boolarray(data: Any) -> Any
439
- │ ├── fill(shape: typing.Union[list, tuple], sequence: typing.Union[list, tuple], repeat: bool, pad: typing.Any, rtype: typing.Callable) -> typing.Any
929
+ │ ├── fill(shape: typing.Union[list, tuple], sequence: typing.Union[list, tuple, str], repeat: bool, pad: typing.Any, rtype: typing.Callable) -> typing.Any
440
930
  │ ├── full(shape: typing.Union[list, tuple], fill_value: typing.Any, rtype: typing.Callable) -> typing.Any
441
931
  │ ├── full_like(a: typing.Any, fill_value: typing.Any, rtype: typing.Callable) -> typing.Any
442
932
  │ ├── get_shape(data: Any) -> Any
@@ -561,9 +1051,21 @@ PyPyNum
561
1051
  │ │ └── Group(object)/__init__(self: Any, data: Any, operation: Any) -> Any
562
1052
  │ └── FUNCTION
563
1053
  │ └── group(data: Any) -> Any
1054
+ ├── hypcmpnms
1055
+ │ ├── CLASS
1056
+ │ │ ├── Euler(object)/__init__(self: Any, y: typing.Union[int, float], p: typing.Union[int, float], r: typing.Union[int, float]) -> Any
1057
+ │ │ ├── Octonion(object)/__init__(self: Any, s: typing.Union[int, float], t: typing.Union[int, float], u: typing.Union[int, float], v: typing.Union[int, float], w: typing.Union[int, float], x: typing.Union[int, float], y: typing.Union[int, float], z: typing.Union[int, float]) -> Any
1058
+ │ │ └── Quaternion(object)/__init__(self: Any, w: typing.Union[int, float], x: typing.Union[int, float], y: typing.Union[int, float], z: typing.Union[int, float]) -> Any
1059
+ │ └── FUNCTION
1060
+ │ ├── convert(data: typing.Union[pypynum.hypcmpnms.Quaternion, pypynum.matrices.Matrix, pypynum.hypcmpnms.Euler], to: str) -> typing.Union[pypynum.hypcmpnms.Quaternion, pypynum.matrices.Matrix, pypynum.hypcmpnms.Euler]
1061
+ │ ├── euler(yaw: typing.Union[int, float], pitch: typing.Union[int, float], roll: typing.Union[int, float]) -> pypynum.hypcmpnms.Euler
1062
+ │ ├── octo(s: typing.Union[int, float], t: typing.Union[int, float], u: typing.Union[int, float], v: typing.Union[int, float], w: typing.Union[int, float], x: typing.Union[int, float], y: typing.Union[int, float], z: typing.Union[int, float]) -> pypynum.hypcmpnms.Octonion
1063
+ │ └── quat(w: typing.Union[int, float], x: typing.Union[int, float], y: typing.Union[int, float], z: typing.Union[int, float]) -> pypynum.hypcmpnms.Quaternion
564
1064
  ├── images
565
1065
  │ ├── CLASS
566
- │ │ └── PNG(object)/__init__(self: Any) -> None
1066
+ │ │ ├── BMP(pypynum.images.BaseImage)/__init__(self: Any) -> None
1067
+ │ │ ├── BaseImage(object)/__init__(self: Any) -> None
1068
+ │ │ └── PNG(pypynum.images.BaseImage)/__init__(self: Any) -> None
567
1069
  │ └── FUNCTION
568
1070
  │ └── crc(data: Any, length: Any, init: Any, xor: Any) -> Any
569
1071
  ├── interp
@@ -669,7 +1171,7 @@ PyPyNum
669
1171
  │ ├── kurt(data: typing.Union[list, tuple], fisher: bool) -> float
670
1172
  │ ├── lcm(args: int) -> int
671
1173
  │ ├── ln(x: typing.Union[int, float]) -> typing.Union[int, float]
672
- │ ├── lower_gamma(s: typing.Union[int, float, complex], x: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
1174
+ │ ├── lowergamma(s: typing.Union[int, float, complex], x: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
673
1175
  │ ├── mean(numbers: typing.Union[list, tuple]) -> typing.Union[int, float, complex]
674
1176
  │ ├── median(numbers: typing.Union[list, tuple]) -> typing.Union[int, float, complex]
675
1177
  │ ├── mod_order(a: int, n: int, b: int) -> int
@@ -677,6 +1179,7 @@ PyPyNum
677
1179
  │ ├── normalize(data: typing.Union[list, tuple], target: typing.Union[int, float, complex]) -> typing.Union[list, tuple]
678
1180
  │ ├── parity(x: int) -> int
679
1181
  │ ├── pi(i: int, n: int, f: Any) -> typing.Union[int, float, complex]
1182
+ │ ├── power_mean(numbers: typing.Union[list, tuple], p: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
680
1183
  │ ├── primitive_root(a: int, single: bool) -> typing.Union[int, list]
681
1184
  │ ├── product(numbers: typing.Union[list, tuple]) -> typing.Union[int, float, complex]
682
1185
  │ ├── ptp(numbers: typing.Union[list, tuple]) -> typing.Union[int, float, complex]
@@ -698,7 +1201,7 @@ PyPyNum
698
1201
  │ ├── tan(x: typing.Union[int, float]) -> typing.Union[int, float]
699
1202
  │ ├── tanh(x: typing.Union[int, float]) -> typing.Union[int, float]
700
1203
  │ ├── totient(n: int) -> int
701
- │ ├── upper_gamma(s: typing.Union[int, float, complex], x: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
1204
+ │ ├── uppergamma(s: typing.Union[int, float, complex], x: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
702
1205
  │ ├── var(numbers: typing.Union[list, tuple], ddof: int) -> typing.Union[int, float, complex]
703
1206
  │ ├── xlogy(x: typing.Union[int, float, complex], y: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
704
1207
  │ └── zeta(alpha: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
@@ -707,6 +1210,8 @@ PyPyNum
707
1210
  │ │ └── Matrix(pypynum.arrays.Array)/__init__(self: Any, data: Any, check: Any) -> Any
708
1211
  │ └── FUNCTION
709
1212
  │ ├── cholesky(matrix: pypynum.matrices.Matrix, hermitian: bool) -> pypynum.matrices.Matrix
1213
+ │ ├── diag(v: typing.Any, k: int, n: int, m: int) -> typing.Any
1214
+ │ ├── diag_indices(n: int, k: int, m: int) -> tuple
710
1215
  │ ├── eigen(matrix: pypynum.matrices.Matrix) -> tuple
711
1216
  │ ├── hessenberg(matrix: pypynum.matrices.Matrix) -> tuple
712
1217
  │ ├── identity(n: int, m: int) -> pypynum.matrices.Matrix
@@ -717,7 +1222,7 @@ PyPyNum
717
1222
  │ ├── qr(matrix: pypynum.matrices.Matrix, reduce: bool) -> tuple
718
1223
  │ ├── rank_decomp(matrix: pypynum.matrices.Matrix) -> tuple
719
1224
  │ ├── rotate90(matrix: pypynum.matrices.Matrix, times: int) -> pypynum.matrices.Matrix
720
- │ ├── svd(matrix: pypynum.matrices.Matrix) -> tuple
1225
+ │ ├── svd(matrix: pypynum.matrices.Matrix, full: bool, calc_uv: bool) -> tuple
721
1226
  │ ├── tril_indices(n: int, k: int, m: int) -> tuple
722
1227
  │ └── triu_indices(n: int, k: int, m: int) -> tuple
723
1228
  ├── multiprec
@@ -787,14 +1292,6 @@ PyPyNum
787
1292
  │ ├── CLASS
788
1293
  │ └── FUNCTION
789
1294
  │ └── pprint_matrix(matrix: Any, style: Any, output: Any) -> Any
790
- ├── quats
791
- │ ├── CLASS
792
- │ │ ├── Euler(object)/__init__(self: Any, y: typing.Union[int, float], p: typing.Union[int, float], r: typing.Union[int, float]) -> Any
793
- │ │ └── Quaternion(object)/__init__(self: Any, w: typing.Union[int, float], x: typing.Union[int, float], y: typing.Union[int, float], z: typing.Union[int, float]) -> Any
794
- │ └── FUNCTION
795
- │ ├── convert(data: typing.Union[pypynum.quats.Quaternion, pypynum.matrices.Matrix, pypynum.quats.Euler], to: str) -> typing.Union[pypynum.quats.Quaternion, pypynum.matrices.Matrix, pypynum.quats.Euler]
796
- │ ├── euler(yaw: typing.Union[int, float], pitch: typing.Union[int, float], roll: typing.Union[int, float]) -> pypynum.quats.Euler
797
- │ └── quat(w: typing.Union[int, float], x: typing.Union[int, float], y: typing.Union[int, float], z: typing.Union[int, float]) -> pypynum.quats.Quaternion
798
1295
  ├── random
799
1296
  │ ├── CLASS
800
1297
  │ └── FUNCTION
@@ -815,7 +1312,7 @@ PyPyNum
815
1312
  │ ├── CLASS
816
1313
  │ └── FUNCTION
817
1314
  │ ├── arithmetic_sequence(a1: typing.Union[int, float], an: typing.Union[int, float], d: typing.Union[int, float], n: typing.Union[int, float], s: typing.Union[int, float]) -> dict
818
- │ ├── bell_triangle(n: int) -> list
1315
+ │ ├── bell(n: int) -> list
819
1316
  │ ├── bernoulli(n: int, single: bool) -> typing.Union[list, tuple]
820
1317
  │ ├── catalan(n: int, single: bool) -> typing.Union[int, list]
821
1318
  │ ├── farey(n: int) -> list
@@ -823,7 +1320,7 @@ PyPyNum
823
1320
  │ ├── geometric_sequence(a1: typing.Union[int, float], an: typing.Union[int, float], r: typing.Union[int, float], n: typing.Union[int, float], s: typing.Union[int, float]) -> dict
824
1321
  │ ├── lucas(n: int, single: bool) -> typing.Union[int, list]
825
1322
  │ ├── padovan(n: int, single: bool) -> typing.Union[int, list]
826
- │ ├── pascal_triangle(n: int) -> list
1323
+ │ ├── pascal(n: int) -> list
827
1324
  │ ├── pell(n: int, single: bool) -> typing.Union[int, list]
828
1325
  │ ├── pelllucas(n: int, single: bool) -> typing.Union[int, list]
829
1326
  │ ├── perrin(n: int, single: bool) -> typing.Union[int, list]
@@ -892,6 +1389,7 @@ PyPyNum
892
1389
  │ └── FUNCTION
893
1390
  │ ├── classify(array: typing.Union[list, tuple]) -> dict
894
1391
  │ ├── cos_sim(seq1: typing.Union[list, tuple, str], seq2: typing.Union[list, tuple, str], is_vector: bool) -> float
1392
+ │ ├── damerau(x: typing.Union[list, tuple, str], y: typing.Union[list, tuple, str]) -> int
895
1393
  │ ├── dedup(iterable: typing.Union[list, tuple, str]) -> typing.Union[list, tuple, str]
896
1394
  │ ├── fast_pow(a: typing.Any, n: int, init: typing.Any, mul: typing.Callable) -> typing.Any
897
1395
  │ ├── findall(seq: typing.Union[list, tuple, str], pat: typing.Union[list, tuple, str]) -> list
@@ -902,13 +1400,17 @@ PyPyNum
902
1400
  │ ├── lcsubstr(x: typing.Union[list, tuple, str], y: typing.Union[list, tuple, str]) -> list
903
1401
  │ ├── levenshtein(x: typing.Union[list, tuple, str], y: typing.Union[list, tuple, str]) -> int
904
1402
  │ ├── linspace(start: typing.Union[int, float], stop: typing.Union[int, float], number: int) -> list
1403
+ │ ├── lstrip(sequence: typing.Any, keys: typing.Any) -> typing.Any
905
1404
  │ ├── magic_square(n: int) -> list
906
1405
  │ ├── primality(n: int, iter_num: int) -> bool
907
1406
  │ ├── prime_factors(integer: int, dictionary: bool, pollard_rho: bool) -> typing.Union[list, dict]
908
1407
  │ ├── primes(limit: int) -> list
909
1408
  │ ├── replace(seq: typing.Union[list, tuple], old: typing.Union[list, tuple], new: typing.Union[list, tuple], count: int) -> typing.Union[list, tuple]
1409
+ │ ├── rstrip(sequence: typing.Any, keys: typing.Any) -> typing.Any
910
1410
  │ ├── semiprimes(limit: int) -> list
911
1411
  │ ├── split(iterable: typing.Union[list, tuple, str], key: typing.Union[list, tuple], retain: bool) -> list
1412
+ │ ├── strip(sequence: typing.Any, keys: typing.Any) -> typing.Any
1413
+ │ ├── strip_helper(sequence: typing.Any, keys_set: set, strip_start: bool, strip_end: bool) -> typing.Any
912
1414
  │ └── twinprimes(limit: int) -> list
913
1415
  ├── trees
914
1416
  │ ├── CLASS
@@ -1106,7 +1608,7 @@ PyPyNum
1106
1608
  ### Code Testing
1107
1609
 
1108
1610
  ```python
1109
- from pypynum import (arrays, geoms, logics, matrices, quats, symbols, tensors, vectors,
1611
+ from pypynum import (arrays, geoms, hypcmpnms, logics, matrices, multiprec, special, vectors,
1110
1612
  ciphers, consts, equations, maths, plotting, random, regs, tools)
1111
1613
 
1112
1614
  ...
@@ -1139,6 +1641,24 @@ print(triangle.centroid())
1139
1641
  (1.6666666666666667, 0.6666666666666666)
1140
1642
  """
1141
1643
 
1644
+ q0 = hypcmpnms.quat(1, 2, 3, 4)
1645
+ q1 = hypcmpnms.quat(5, 6, 7, 8)
1646
+ print(q0)
1647
+ print(q1)
1648
+ print(q0 + q1)
1649
+ print(q0 * q1)
1650
+ print(q0.inverse())
1651
+ print(q1.conjugate())
1652
+
1653
+ """
1654
+ (1+2i+3j+4k)
1655
+ (5+6i+7j+8k)
1656
+ (6+8i+10j+12k)
1657
+ (-60+12i+30j+24k)
1658
+ (0.03333333333333333-0.06666666666666667i-0.1j-0.13333333333333333k)
1659
+ (5-6i-7j-8k)
1660
+ """
1661
+
1142
1662
  a, b, c = 1, 1, 1
1143
1663
  adder0, adder1 = logics.HalfAdder("alpha", a, b), logics.HalfAdder("beta", c, None)
1144
1664
  xor0 = logics.XOR("alpha")
@@ -1179,64 +1699,46 @@ print(m1.rank())
1179
1699
  2
1180
1700
  """
1181
1701
 
1182
- q0 = quats.quat(1, 2, 3, 4)
1183
- q1 = quats.quat(5, 6, 7, 8)
1184
- print(q0)
1185
- print(q1)
1186
- print(q0 + q1)
1187
- print(q0 * q1)
1188
- print(q0.inverse())
1189
- print(q1.conjugate())
1702
+ mp_complex1 = multiprec.MPComplex("1.4142135623730950488016887242096980785696718753769",
1703
+ "2.7182818284590452353602874713527", sigfigs=30)
1704
+ mp_complex2 = multiprec.MPComplex("1.7320508075688772935274463415059",
1705
+ "3.141592653589793238462643383279502884197169399375105820974944", sigfigs=40)
1706
+ modulus = mp_complex1.modulus(sigfigs=25)
1707
+ print("Modulus of the complex1:", modulus)
1708
+ sqrt_complex = mp_complex2.sqrt()
1709
+ print("Square root of the complex2:", sqrt_complex)
1710
+ power_result = mp_complex1 ** mp_complex2
1711
+ print("Power of complex1 raised to complex2:", power_result)
1712
+ euler_gamma = multiprec.mp_euler_gamma(sigfigs=45)
1713
+ print("Value of Euler's gamma constant:", euler_gamma)
1714
+ log_2 = multiprec.mp_log(2, 10, sigfigs=50)
1715
+ print("Logarithm of 2 (base 10):", log_2)
1716
+ exp_e_squared = multiprec.mp_exp(multiprec.mp_e() ** 2, sigfigs=20)
1717
+ print("Value of exp(e^2):", exp_e_squared)
1190
1718
 
1191
1719
  """
1192
- (1+2i+3j+4k)
1193
- (5+6i+7j+8k)
1194
- (6+8i+10j+12k)
1195
- (-60+12i+30j+24k)
1196
- (0.18257418583505536+-0.3651483716701107i+-0.5477225575051661j+-0.7302967433402214k)
1197
- (5+-6i+-7j+-8k)
1720
+ Modulus of the complex1: 3.064156670102011971734464
1721
+ Square root of the complex2: 1.630869996965458756791024890326755654659+0.9631646481434200567938527724670041364524i
1722
+ Power of complex1 raised to complex2: 0.144632311554759549910373681031-0.17337039786352194417298867399i
1723
+ Value of Euler's gamma constant: 0.577215664901532860606512090082402431042159336
1724
+ Logarithm of 2 (base 10): 0.30102999566398119521373889472449302676818988146211
1725
+ Value of exp(e^2): 1618.1779919126535017
1198
1726
  """
1199
1727
 
1200
- print(symbols.BASIC)
1201
- print(symbols.ENGLISH)
1202
- print(symbols.GREEK)
1203
- print(symbols.parse_expr("-(10+a-(3.14+b0)*(-5))**(-ζn1-2.718/mΣ99)//9"))
1728
+ print("Bessel Function of the first kind, order 0 at x=1:", special.besselj0(1))
1729
+ print("Modified Bessel function of the first kind, order 1 at x=1:", special.besseli1(1))
1730
+ print("Hypergeometric function 0F1 at z=0.5 with b0=1:", special.hyp0f1(1, 0.5))
1731
+ print("Hypergeometric function 1F1 at z=1 with a0=1, b0=1:", special.hyp1f1(1, 1, 1))
1732
+ print("q-Pochhammer Symbol with a=2+1j, q=0.5+0.1j, n=2+1j:", special.qpochhammer(2 + 1j, 0.5 + 0.1j, 2 + 1j))
1733
+ print("q-Gamma Function at n=2 with q=0.5+0.1j:", special.qgamma(2, 0.5 + 0.1j))
1204
1734
 
1205
1735
  """
1206
- %()*+-./0123456789
1207
- ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
1208
- ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρστυφχψω
1209
- [['10', '+', 'a', '-', ['3.14', '+', 'b0'], '*', '-5'], '**', ['-ζn1', '-', '2.718', '/', 'mΣ99'], '//', '9']
1210
- """
1211
-
1212
- t0 = tensors.ten([[[1, 2], [3, 4]], [[5, 6], [7, 8]]])
1213
- t1 = tensors.ten([[[9, 10], [11, 12]], [[13, 14], [15, 16]]])
1214
- print(t0)
1215
- print(t1)
1216
- print(t0 + t1)
1217
- print(t0 @ t1)
1218
-
1219
- """
1220
- [[[1 2]
1221
- [3 4]]
1222
-
1223
- [[5 6]
1224
- [7 8]]]
1225
- [[[ 9 10]
1226
- [11 12]]
1227
-
1228
- [[13 14]
1229
- [15 16]]]
1230
- [[[10 12]
1231
- [14 16]]
1232
-
1233
- [[18 20]
1234
- [22 24]]]
1235
- [[[ 31 34]
1236
- [ 71 78]]
1237
-
1238
- [[155 166]
1239
- [211 226]]]
1736
+ Bessel Function of the first kind, order 0 at x=1: 0.7651976865579666
1737
+ Modified Bessel function of the first kind, order 1 at x=1: 0.565159103992485
1738
+ Hypergeometric function 0F1 at z=0.5 with b0=1: 1.5660829297563503
1739
+ Hypergeometric function 1F1 at z=1 with a0=1, b0=1: 2.7182818284590455
1740
+ q-Pochhammer Symbol with a=2+1j, q=0.5+0.1j, n=2+1j: (-0.33353429405776575+1.8573191887407854j)
1741
+ q-Gamma Function at n=2 with q=0.5+0.1j: (0.9999999999999989-4.953510875709033e-16j)
1240
1742
  """
1241
1743
 
1242
1744
  string = "PyPyNum"
@@ -1413,10 +1915,10 @@ print(random.randint(0, 9, [2, 3, 4]))
1413
1915
  print(random.uniform(0, 9, [2, 3, 4]))
1414
1916
 
1415
1917
  """
1416
- [[[0.825882516672574, 1.3725886771525058, 1.0633834034457958, -0.9653681933485563], [-0.26676981942597733, -0.8111218278822722, -2.0334645819975408, -0.6920477799264579], [0.219847607640343, -0.11124595869774408, 0.3959826652933697, 0.44979678957252417]], [[-0.32870040193220884, 0.02332530718848737, -0.11463753179571698, 0.76497128138739], [0.5471632308210022, -1.208683530864806, 0.6609856809302458, -1.0172095093996394], [-0.4239944693396323, -0.9895869506909234, 0.3151444331927837, -1.0952382690567983]]]
1417
- [[[0.7391048706507907, 0.8914203442107109, 0.7810881208477741, 0.42396350784517345], [0.44782953354925625, 0.14060494681841362, 0.36645338622864543, 0.8792327342896561], [0.8328977875499322, 0.7597606669429515, 0.7309414657218207, 0.39511825984097715]], [[0.4224440661015312, 0.2817063735017259, 0.11204741761562653, 0.7932546033111754], [0.6230861699889618, 0.16789479246904482, 0.4452307316686511, 0.7298193538352331], [0.879038899493412, 0.14646565947090828, 0.6904668348145003, 0.8027750348973339]]]
1418
- [[[5, 6, 4, 0], [5, 0, 4, 1], [2, 3, 5, 4]], [[4, 2, 3, 8], [3, 0, 0, 8], [9, 9, 4, 8]]]
1419
- [[[5.350800115670108, 5.835203389972244, 8.668571640348379, 6.784139317082117], [7.838141284015925, 0.46256545431156715, 2.8571047765183932, 0.0660157726117514], [5.587670205493748, 3.567592961539832, 2.9956823476061682, 7.924798867767713]], [[1.5388683451612495, 8.64453573809756, 1.4500691204596237, 6.551614999615261], [6.95157556639829, 4.179288210881939, 6.281664642870586, 1.0867107163432608], [0.18490809809604403, 1.9708027978691627, 0.23346492301822674, 0.935059580008676]]]
1918
+ [[[0.19564108603837504, 1.01920370166293, -0.0432622197313817, 1.8767392228517594], [-0.9372140720220945, 0.6455939848661518, 0.06219926062283103, -0.03646501719525719], [-0.6575861228704779, -1.627831653990843, 1.4669927522358261, -2.1082184047042944]], [[-0.4550416369776341, 0.5921202822490813, 0.1393176939653395, -0.1994214479986489], [-0.559257919413219, -1.629764620332396, 0.04658277611512766, 0.20529751771180757], [0.492656546311569, 0.9731757491363898, -0.3281597719355017, -0.6855996837842998]]]
1919
+ [[[0.9897608447208633, 0.9091539554606014, 0.839742901348473, 0.7483640950392159], [0.1271954637618754, 0.23914774960655272, 0.6603167703557995, 0.09706202212722614], [0.1020987366479954, 0.16628877700140854, 0.9844464087410161, 0.8213963537473721]], [[0.268434775377716, 0.8021623176316018, 0.48319517625501174, 0.30410149780944096], [0.8970313978138931, 0.9980790184879383, 0.1185467392465952, 0.19570961919567464], [0.08626090792820118, 0.5790211560246683, 0.7475290741004703, 0.8048613204213184]]]
1920
+ [[[9, 0, 7, 5], [2, 7, 3, 5], [7, 6, 4, 2]], [[3, 4, 2, 0], [4, 2, 2, 1], [4, 5, 4, 9]]]
1921
+ [[[8.067902792666303, 3.1398970785364244, 7.875028237778611, 7.766921948037462], [3.337337214716076, 2.852783099370506, 1.028257336777862, 7.822605535085232], [7.111199916783942, 5.890725764603359, 3.038605829888671, 6.272148674191553]], [[1.076715403659712, 6.806086377982102, 5.699002266942416, 1.1654651363361368], [1.3920577362733448, 8.527352563852686, 2.359964996027981, 5.183071574749471], [7.8250627862940725, 1.6259461468536924, 8.333173856724002, 5.068032713313034]]]
1420
1922
  """
1421
1923
 
1422
1924
  print(regs.lin_reg(list(range(5)), [2, 4, 6, 7, 8]))
@@ -1437,7 +1939,7 @@ print(tools.linspace(0, 2.8, 8))
1437
1939
  """
1438
1940
  {<class 'int'>: [1], <class 'float'>: [2.3, 3.14], <class 'complex'>: [(4+5j)], <class 'str'>: ['string'], <class 'type'>: [<class 'list'>, <class 'tuple'>], <class 'bool'>: [True, False], <class 'module'>: [<module 'pypynum.tools' from 'C:\\Users\\Administrator\\PycharmProjects\\pythonProject\\pypynum\\tools.py'>]}
1439
1941
  ['Python', 6, 'NumPy', <class 'int'>, 'PyPyNum', 9, 'pypynum', True]
1440
- [0.0, 0.4, 0.8, 1.2000000000000002, 1.6, 2.0, 2.4000000000000004, 2.8000000000000003]
1942
+ [0.0, 0.4, 0.8, 1.2000000000000002, 1.6, 2.0, 2.4000000000000004, 2.8000000000000003, 3.2]
1441
1943
  [0.0, 0.39999999999999997, 0.7999999999999999, 1.2, 1.5999999999999999, 1.9999999999999998, 2.4, 2.8]
1442
1944
  """
1443
1945