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

|
|
240
240
|
|
|
241
|
-
PyPI上无法显示logo,可以在Gitee或者GitHub中查看。
|
|
242
|
-
|
|
243
241
|
The logo cannot be displayed on PyPI, it can be viewed in Gitee or GitHub.
|
|
244
242
|
|
|
245
|
-
###
|
|
246
|
-
|
|
247
|
-
#### Introduction
|
|
243
|
+
### Introduction
|
|
248
244
|
|
|
249
|
-
+ 多功能数学库,类似于numpy、scipy等,专为PyPy解释器制作,亦支持其他类型的Python解释器
|
|
250
245
|
+ Multi functional math library, similar to numpy, scipy, etc., designed specifically for PyPy interpreters and also
|
|
251
246
|
supports other types of Python interpreters
|
|
252
|
-
+ 不定期更新版本,增加更多实用功能
|
|
253
247
|
+ Update versions periodically to add more practical features
|
|
254
|
-
+ 如需联系,请添加QQ号2261748025(Py𝙿𝚢𝚝𝚑𝚘𝚗-水晶兰),或者通过我的邮箱2261748025@qq.com
|
|
255
248
|
+ If you need to contact, please add QQ number 2261748025 (Py𝙿𝚢𝚝𝚑𝚘𝚗-水晶兰), or through my email 2261748025@qq.com
|
|
256
249
|
|
|
257
|
-
###
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
|
262
|
-
|
|
263
|
-
| `pypynum.
|
|
264
|
-
| `pypynum.
|
|
265
|
-
| `pypynum.
|
|
266
|
-
|
|
|
267
|
-
|
|
|
268
|
-
|
|
|
269
|
-
|
|
|
270
|
-
|
|
|
271
|
-
|
|
|
272
|
-
|
|
|
273
|
-
| `pypynum.
|
|
274
|
-
|
|
|
275
|
-
| `pypynum.
|
|
276
|
-
| `pypynum.
|
|
277
|
-
| `pypynum.
|
|
278
|
-
| `pypynum.
|
|
279
|
-
| `pypynum.
|
|
280
|
-
| `pypynum.
|
|
281
|
-
|
|
|
282
|
-
|
|
|
283
|
-
| `pypynum.
|
|
284
|
-
| `pypynum.
|
|
285
|
-
|
|
|
286
|
-
| `pypynum.
|
|
287
|
-
| `pypynum.
|
|
288
|
-
|
|
|
289
|
-
|
|
|
290
|
-
|
|
|
291
|
-
| `pypynum.
|
|
292
|
-
|
|
|
293
|
-
|
|
|
294
|
-
|
|
|
295
|
-
| `pypynum.
|
|
296
|
-
|
|
|
297
|
-
|
|
|
298
|
-
|
|
|
299
|
-
| `pypynum.
|
|
300
|
-
| `pypynum.
|
|
301
|
-
| `pypynum.
|
|
302
|
-
| `pypynum.
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
#### The Zen of PyPyNum (Preview)
|
|
250
|
+
### Name and Function Introduction of Submodules
|
|
251
|
+
|
|
252
|
+
| Submodule Name | Function Introduction |
|
|
253
|
+
|:--------------------:|:-----------------------------------:|
|
|
254
|
+
| `pypynum.Array` | Multidimensional array |
|
|
255
|
+
| `pypynum.bessel` | Bessel functions |
|
|
256
|
+
| `pypynum.chars` | Special mathematical symbols |
|
|
257
|
+
| `pypynum.cipher` | Encryption and decryption algorithm |
|
|
258
|
+
| `pypynum.confs` | Universal configuration |
|
|
259
|
+
| `pypynum.constants` | Set of mathematical constants |
|
|
260
|
+
| `pypynum.crandom` | Random complex number |
|
|
261
|
+
| `pypynum.dataproc` | Data processing |
|
|
262
|
+
| `pypynum.dists` | Probability distribution |
|
|
263
|
+
| `pypynum.equations` | Solving equations |
|
|
264
|
+
| `pypynum.errors` | Exception object |
|
|
265
|
+
| `pypynum.file` | File read and write |
|
|
266
|
+
| `pypynum.FourierT` | Fourier transform |
|
|
267
|
+
| `pypynum.Geometry` | Geometric shape |
|
|
268
|
+
| `pypynum.Graph` | Graph Theory Algorithm |
|
|
269
|
+
| `pypynum.Group` | Group Theory Algorithm |
|
|
270
|
+
| `pypynum.image` | Image processing |
|
|
271
|
+
| `pypynum.interp` | Data Interpolation |
|
|
272
|
+
| `pypynum.Logic` | Logic circuit design |
|
|
273
|
+
| `pypynum.maths` | General mathematical functions |
|
|
274
|
+
| `pypynum.Matrix` | Matrix operation |
|
|
275
|
+
| `pypynum.multiprec` | Multi precision calculation |
|
|
276
|
+
| `pypynum.NeuralN` | Neural network training |
|
|
277
|
+
| `pypynum.numbers` | Number processing |
|
|
278
|
+
| `pypynum.plotting` | Data visualization |
|
|
279
|
+
| `pypynum.polynomial` | Polynomial operation |
|
|
280
|
+
| `pypynum.pprinters` | Pretty printers |
|
|
281
|
+
| `pypynum.Quaternion` | Quaternion operation |
|
|
282
|
+
| `pypynum.random` | Random number generation |
|
|
283
|
+
| `pypynum.regression` | Regression analysis |
|
|
284
|
+
| `pypynum.sequence` | Sequence calculation |
|
|
285
|
+
| `pypynum.stattest` | Statistical test |
|
|
286
|
+
| `pypynum.Symbolics` | Symbol calculation |
|
|
287
|
+
| `pypynum.Tensor` | Tensor operation |
|
|
288
|
+
| `pypynum.test` | Easy test |
|
|
289
|
+
| `pypynum.this` | Zen of Projects |
|
|
290
|
+
| `pypynum.tools` | Auxiliary functions |
|
|
291
|
+
| `pypynum.Tree` | Tree data structure |
|
|
292
|
+
| `pypynum.types` | Special types |
|
|
293
|
+
| `pypynum.ufuncs` | Universal functions |
|
|
294
|
+
| `pypynum.utils` | Utility |
|
|
295
|
+
| `pypynum.Vector` | Vector operation |
|
|
296
|
+
| `pypynum.zh_cn` | Functions with Chinese names |
|
|
297
|
+
|
|
298
|
+
### The Zen of PyPyNum (Preview)
|
|
307
299
|
|
|
308
300
|
```
|
|
309
301
|
The Zen of PyPyNum, by Shen Jiayi
|
|
@@ -332,64 +324,57 @@ Python interpreter and run it!
|
|
|
332
324
|
February 27, 2024
|
|
333
325
|
```
|
|
334
326
|
|
|
335
|
-
###
|
|
336
|
-
|
|
337
|
-
#### Functional changes compared to the previous version
|
|
327
|
+
### Functional changes compared to the previous version
|
|
338
328
|
|
|
339
329
|
```
|
|
340
330
|
!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
|
|
341
331
|
|
|
342
|
-
|
|
343
|
-
于计算三角函数的方法
|
|
344
|
-
|
|
345
|
-
Corrected errors in MPComplex
|
|
346
|
-
and added some methods for
|
|
347
|
-
calculating trigonometric
|
|
348
|
-
functions
|
|
332
|
+
750 new lines have been added to the code
|
|
349
333
|
|
|
350
334
|
!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
|
|
351
335
|
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
Added levenshtein_distance function
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
Help on function levenshtein_distance in module pypynum.tools:
|
|
336
|
+
Newly added functions and classes
|
|
358
337
|
|
|
359
|
-
levenshtein_distance(s1: str, s2: str) -> int
|
|
360
|
-
Introduction
|
|
361
|
-
==========
|
|
362
|
-
Calculate the Levenshtein distance between two strings.
|
|
363
338
|
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
339
|
+
├── bessel
|
|
340
|
+
│ ├── CLASS
|
|
341
|
+
│ └── FUNCTION
|
|
342
|
+
│ ├── bessel_i0(x: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
343
|
+
│ ├── bessel_i1(x: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
344
|
+
│ ├── bessel_iv(v: typing.Union[int, float], x: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
345
|
+
│ ├── bessel_j0(x: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
346
|
+
│ ├── bessel_j1(x: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
347
|
+
│ └── bessel_jv(v: typing.Union[int, float], x: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
348
|
+
├── crandom
|
|
349
|
+
│ └── FUNCTION
|
|
350
|
+
│ ├── randint_polar(left: int, right: int, mod: typing.Union[int, float], angle: typing.Union[int, float]) -> complex
|
|
351
|
+
│ ├── randint_rect(left: int, right: int, real: typing.Union[int, float], imag: typing.Union[int, float]) -> complex
|
|
352
|
+
│ ├── random_polar(mod: typing.Union[int, float], angle: typing.Union[int, float]) -> complex
|
|
353
|
+
│ ├── random_rect(real: typing.Union[int, float], imag: typing.Union[int, float]) -> complex
|
|
354
|
+
│ ├── uniform_polar(left: typing.Union[int, float], right: typing.Union[int, float], mod: typing.Union[int, float], angle: typing.Union[int, float]) -> complex
|
|
355
|
+
│ └── uniform_rect(left: typing.Union[int, float], right: typing.Union[int, float], real: typing.Union[int, float], imag: typing.Union[int, float]) -> complex
|
|
356
|
+
├── dataproc
|
|
357
|
+
│ ├── CLASS
|
|
358
|
+
│ │ └── Series(object)/__init__(self: Any, data: typing.Any, index: typing.Any) -> None
|
|
359
|
+
├── maths
|
|
360
|
+
│ └── FUNCTION
|
|
361
|
+
│ ├── quantile(data: list, q: float, interpolation: str, ordered: bool) -> float
|
|
362
|
+
├── numbers
|
|
363
|
+
│ └── FUNCTION
|
|
364
|
+
│ ├── parse_float(s: str) -> tuple
|
|
365
|
+
│ ├── split_float(s: str) -> tuple
|
|
376
366
|
|
|
377
367
|
!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
|
|
378
368
|
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
changed to pure English
|
|
369
|
+
Tip: The second type of Bessel
|
|
370
|
+
function has not been
|
|
371
|
+
implemented yet, but will be
|
|
372
|
+
added in future versions.
|
|
384
373
|
|
|
385
374
|
!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
|
|
386
375
|
```
|
|
387
376
|
|
|
388
|
-
###
|
|
389
|
-
|
|
390
|
-
#### Run Time Test
|
|
391
|
-
|
|
392
|
-
Python解释器版本
|
|
377
|
+
### Run Time Test
|
|
393
378
|
|
|
394
379
|
Python interpreter version
|
|
395
380
|
|
|
@@ -397,31 +382,31 @@ Python interpreter version
|
|
|
397
382
|
|
|
398
383
|
+ PyPy 3.10.12
|
|
399
384
|
|
|
400
|
-
|
|
|
401
|
-
|
|
402
|
-
|
|
|
403
|
-
|
|
|
404
|
-
|
|
|
405
|
-
|
|
|
406
|
-
|
|
|
407
|
-
|
|
|
408
|
-
|
|
|
409
|
-
|
|
|
410
|
-
|
|
|
411
|
-
|
|
412
|
-
### 基本结构
|
|
385
|
+
| Matrix Time Test | NumPy+CPython (seconds) | Ranking | PyPyNum+PyPy (seconds) | Ranking | Mpmath_+_PyPy_ (seconds) | Ranking | SymPy_+_PyPy_ (seconds) | Ranking |
|
|
386
|
+
|------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|
|
|
387
|
+
| Create a hundred order random number matrix | 0.000083 | 1 | 0.005374 | 2 | 0.075253 | 3 | 0.230530 | 4 |
|
|
388
|
+
| Create a thousand order random number matrix | 0.006740 | 1 | 0.035666 | 2 | 1.200950 | 3 | 4.370265 | 4 |
|
|
389
|
+
| Addition of matrices of order one hundred | 0.000029 | 1 | 0.002163 | 2 | 0.045641 | 4 | 0.035700 | 3 |
|
|
390
|
+
| Adding matrices of order one thousand | 0.002647 | 1 | 0.019111 | 2 | 1.746957 | 4 | 0.771542 | 3 |
|
|
391
|
+
| Determinant of a hundred order matrix | 0.087209 | 2 | 0.016331 | 1 | 4.354507 | 3 | 5.157206 | 4 |
|
|
392
|
+
| Determinant of a thousand order matrix | 0.616113 | 1 | 3.509747 | 2 | It takes a long time | 3 | It takes a long time | 4 |
|
|
393
|
+
| Finding the inverse of a hundred order matrix | 0.162770 | 2 | 0.015768 | 1 | 8.162948 | 3 | 21.437424 | 4 |
|
|
394
|
+
| Finding the inverse of a thousand order matrix | 0.598905 | 1 | 17.072552 | 2 | It takes a long time | 3 | It takes a long time | 4 |
|
|
395
|
+
| Array output effect | ```[[[[ -7 -67]```<br>```[-78 29]]```<br><br>```[[-86 -97]```<br>```[ 68 -3]]]```<br><br><br>```[[[ 11 42]```<br>```[ 24 -65]]```<br><br>```[[-60 72]```<br>```[ 73 2]]]]``` | / | ```[[[[ 37 83]```<br>```[ 40 2]]```<br><br>```[[ -5 -34]```<br>```[ -7 72]]]```<br><br><br>```[[[ 13 -64]```<br>```[ 6 90]]```<br><br>```[[ 68 57]```<br>```[ 78 11]]]]``` | / | ```[-80.0 -8.0 80.0 -88.0]```<br>```[-99.0 -43.0 87.0 81.0]```<br>```[ 20.0 -55.0 98.0 8.0]```<br>```[ 8.0 44.0 64.0 -35.0]```<br><br>(Only supports matrices) | / | ```⎡⎡16 -56⎤ ⎡ 8 -28⎤⎤```<br>```⎢⎢ ⎥ ⎢ ⎥⎥```<br>```⎢⎣-56 56 ⎦ ⎣-28 28 ⎦⎥```<br>```⎢ ⎥```<br>```⎢ ⎡-2 7 ⎤ ⎡-18 63 ⎤⎥```<br>```⎢ ⎢ ⎥ ⎢ ⎥⎥```<br>```⎣ ⎣7 -7⎦ ⎣63 -63⎦⎦``` | / |
|
|
413
396
|
|
|
414
|
-
|
|
397
|
+
### Basic structure
|
|
415
398
|
|
|
416
399
|
```
|
|
417
400
|
PyPyNum
|
|
418
401
|
├── Array
|
|
419
402
|
│ ├── CLASS
|
|
420
|
-
│ │
|
|
403
|
+
│ │ ├── Array(object)/__init__(self: Any, data: Any, check: Any) -> Any
|
|
404
|
+
│ │ └── BoolArray(pypynum.Array.Array)/__init__(self: Any, data: Any, check: Any) -> Any
|
|
421
405
|
│ └── FUNCTION
|
|
422
406
|
│ ├── array(data: Any) -> Any
|
|
423
407
|
│ ├── asarray(data: Any) -> Any
|
|
424
408
|
│ ├── aslist(data: Any) -> Any
|
|
409
|
+
│ ├── boolarray(data: Any) -> Any
|
|
425
410
|
│ ├── fill(shape: Any, sequence: Any, repeat: Any, pad: Any, rtype: Any) -> Any
|
|
426
411
|
│ ├── full(shape: Any, fill_value: Any, rtype: Any) -> Any
|
|
427
412
|
│ ├── full_like(a: Any, fill_value: Any, rtype: Any) -> Any
|
|
@@ -536,6 +521,15 @@ PyPyNum
|
|
|
536
521
|
│ │ └── Vector(pypynum.Array.Array)/__init__(self: Any, data: Any, check: Any) -> Any
|
|
537
522
|
│ └── FUNCTION
|
|
538
523
|
│ └── vec(data: Any) -> Any
|
|
524
|
+
├── bessel
|
|
525
|
+
│ ├── CLASS
|
|
526
|
+
│ └── FUNCTION
|
|
527
|
+
│ ├── bessel_i0(x: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
528
|
+
│ ├── bessel_i1(x: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
529
|
+
│ ├── bessel_iv(v: typing.Union[int, float], x: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
530
|
+
│ ├── bessel_j0(x: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
531
|
+
│ ├── bessel_j1(x: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
532
|
+
│ └── bessel_jv(v: typing.Union[int, float], x: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
539
533
|
├── chars
|
|
540
534
|
│ ├── CLASS
|
|
541
535
|
│ └── FUNCTION
|
|
@@ -564,6 +558,19 @@ PyPyNum
|
|
|
564
558
|
├── constants
|
|
565
559
|
│ ├── CLASS
|
|
566
560
|
│ └── FUNCTION
|
|
561
|
+
├── crandom
|
|
562
|
+
│ ├── CLASS
|
|
563
|
+
│ └── FUNCTION
|
|
564
|
+
│ ├── randint_polar(left: int, right: int, mod: typing.Union[int, float], angle: typing.Union[int, float]) -> complex
|
|
565
|
+
│ ├── randint_rect(left: int, right: int, real: typing.Union[int, float], imag: typing.Union[int, float]) -> complex
|
|
566
|
+
│ ├── random_polar(mod: typing.Union[int, float], angle: typing.Union[int, float]) -> complex
|
|
567
|
+
│ ├── random_rect(real: typing.Union[int, float], imag: typing.Union[int, float]) -> complex
|
|
568
|
+
│ ├── uniform_polar(left: typing.Union[int, float], right: typing.Union[int, float], mod: typing.Union[int, float], angle: typing.Union[int, float]) -> complex
|
|
569
|
+
│ └── uniform_rect(left: typing.Union[int, float], right: typing.Union[int, float], real: typing.Union[int, float], imag: typing.Union[int, float]) -> complex
|
|
570
|
+
├── dataproc
|
|
571
|
+
│ ├── CLASS
|
|
572
|
+
│ │ └── Series(object)/__init__(self: Any, data: typing.Any, index: typing.Any) -> None
|
|
573
|
+
│ └── FUNCTION
|
|
567
574
|
├── dists
|
|
568
575
|
│ ├── CLASS
|
|
569
576
|
│ └── FUNCTION
|
|
@@ -647,8 +654,6 @@ PyPyNum
|
|
|
647
654
|
│ ├── atan(x: typing.Union[int, float]) -> typing.Union[int, float]
|
|
648
655
|
│ ├── atanh(x: typing.Union[int, float]) -> typing.Union[int, float]
|
|
649
656
|
│ ├── average(data: typing.Union[list, tuple], weights: typing.Union[list, tuple]) -> float
|
|
650
|
-
│ ├── bessel_i0(x: typing.Union[int, float]) -> typing.Union[int, float]
|
|
651
|
-
│ ├── bessel_iv(v: typing.Union[int, float], x: typing.Union[int, float]) -> typing.Union[int, float]
|
|
652
657
|
│ ├── beta(p: typing.Union[int, float], q: typing.Union[int, float]) -> typing.Union[int, float]
|
|
653
658
|
│ ├── central_moment(data: typing.Union[list, tuple], order: int) -> float
|
|
654
659
|
│ ├── coeff_det(x: typing.Union[list, tuple], y: typing.Union[list, tuple]) -> typing.Union[int, float, complex]
|
|
@@ -693,6 +698,7 @@ PyPyNum
|
|
|
693
698
|
│ ├── primitive_root(a: int, single: bool) -> typing.Union[int, list]
|
|
694
699
|
│ ├── product(numbers: typing.Union[list, tuple]) -> typing.Union[int, float, complex]
|
|
695
700
|
│ ├── ptp(numbers: typing.Union[list, tuple]) -> typing.Union[int, float, complex]
|
|
701
|
+
│ ├── quantile(data: list, q: float, interpolation: str, ordered: bool) -> float
|
|
696
702
|
│ ├── raw_moment(data: typing.Union[list, tuple], order: int) -> float
|
|
697
703
|
│ ├── roll(seq: typing.Union[list, tuple, str], shift: int) -> typing.Union[list, tuple, str]
|
|
698
704
|
│ ├── root(x: typing.Union[int, float, complex], y: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
@@ -744,7 +750,9 @@ PyPyNum
|
|
|
744
750
|
│ ├── float2fraction(number: float, mixed: bool, error: float) -> tuple
|
|
745
751
|
│ ├── int2roman(integer: int, overline: bool) -> str
|
|
746
752
|
│ ├── int2words(integer: int) -> str
|
|
753
|
+
│ ├── parse_float(s: str) -> tuple
|
|
747
754
|
│ ├── roman2int(roman_num: str) -> int
|
|
755
|
+
│ ├── split_float(s: str) -> tuple
|
|
748
756
|
│ └── str2int(string: str) -> int
|
|
749
757
|
├── plotting
|
|
750
758
|
│ ├── CLASS
|
|
@@ -835,11 +843,18 @@ PyPyNum
|
|
|
835
843
|
│ ├── CLASS
|
|
836
844
|
│ └── FUNCTION
|
|
837
845
|
│ ├── add(x: Any, y: Any) -> Any
|
|
846
|
+
│ ├── apply(a: Any, func: Any, rtype: Any) -> Any
|
|
838
847
|
│ ├── base_ufunc(arrays: Any, func: Any, args: Any, rtype: Any) -> Any
|
|
839
848
|
│ ├── divide(x: Any, y: Any) -> Any
|
|
849
|
+
│ ├── eq(x: Any, y: Any) -> Any
|
|
840
850
|
│ ├── floor_divide(x: Any, y: Any) -> Any
|
|
851
|
+
│ ├── ge(x: Any, y: Any) -> Any
|
|
852
|
+
│ ├── gt(x: Any, y: Any) -> Any
|
|
853
|
+
│ ├── le(x: Any, y: Any) -> Any
|
|
854
|
+
│ ├── lt(x: Any, y: Any) -> Any
|
|
841
855
|
│ ├── modulo(x: Any, y: Any) -> Any
|
|
842
856
|
│ ├── multiply(x: Any, y: Any) -> Any
|
|
857
|
+
│ ├── ne(x: Any, y: Any) -> Any
|
|
843
858
|
│ ├── power(x: Any, y: Any, m: Any) -> Any
|
|
844
859
|
│ ├── subtract(x: Any, y: Any) -> Any
|
|
845
860
|
│ └── ufunc_helper(x: Any, y: Any, func: Any) -> Any
|
|
@@ -885,6 +900,7 @@ PyPyNum
|
|
|
885
900
|
├── 写入(文件: str, 对象: object) -> Any
|
|
886
901
|
├── 几何平均数(数据: typing.List[float]) -> float
|
|
887
902
|
├── 凯撒密码(文本: str, 移位: int, 解密: bool) -> str
|
|
903
|
+
├── 分位数(数据: list, 分位值: float, 插值方法: str, 已排序: bool) -> float
|
|
888
904
|
├── 判定系数(x: typing.List[float], y: typing.List[float]) -> float
|
|
889
905
|
├── 判断平方数(n: int) -> bool
|
|
890
906
|
├── 加权平均(数据: typing.List[float], 权重: typing.List[float]) -> float
|
|
@@ -940,6 +956,7 @@ PyPyNum
|
|
|
940
956
|
├── 序列滚动(序列: typing.Iterator[typing.Any], 偏移: int) -> typing.Iterator[typing.Any]
|
|
941
957
|
├── 归一化(数据: typing.List[float], 目标: float) -> typing.List[float]
|
|
942
958
|
├── 扩展欧几里得算法(a: int, b: int) -> typing.Tuple[int, int, int]
|
|
959
|
+
├── 拆分浮点数字符串(字符串: str) -> tuple
|
|
943
960
|
├── 排列数(总数: int, 选取数: int) -> int
|
|
944
961
|
├── 数组(数据: list, 检查: bool) -> pypynum.Array.Array
|
|
945
962
|
├── 整数转上标(标准字符串: str) -> str
|
|
@@ -974,12 +991,17 @@ PyPyNum
|
|
|
974
991
|
├── 自然对数(真数: typing.Union[int, float]) -> typing.Union[int, float]
|
|
975
992
|
├── 自然指数(指数: typing.Union[int, float]) -> typing.Union[int, float]
|
|
976
993
|
├── 莫尔斯密码(文本: str, 解密: bool) -> str
|
|
994
|
+
├── 解析浮点数字符串(字符串: str) -> tuple
|
|
977
995
|
├── 误差函数(x: typing.Union[int, float]) -> typing.Union[int, float]
|
|
978
996
|
├── 读取(文件: str) -> list
|
|
979
997
|
├── 调和平均数(数据: typing.List[float]) -> float
|
|
980
998
|
├── 贝塔函数(p: float, q: float) -> float
|
|
981
|
-
├──
|
|
982
|
-
├──
|
|
999
|
+
├── 贝塞尔函数I0(x: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
1000
|
+
├── 贝塞尔函数I1(x: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
1001
|
+
├── 贝塞尔函数Iv(v: typing.Union[int, float], x: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
1002
|
+
├── 贝塞尔函数J0(x: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
1003
|
+
├── 贝塞尔函数J1(x: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
1004
|
+
├── 贝塞尔函数Jv(v: typing.Union[int, float], x: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
983
1005
|
├── 负一整数次幂(指数: int) -> int
|
|
984
1006
|
├── 转为多精度复数(实部: typing.Union[int, float, str, decimal.Decimal, complex, pypynum.multiprec.MPComplex], 虚部: typing.Union[int, float, str, decimal.Decimal], 有效位数: int) -> pypynum.multiprec.MPComplex
|
|
985
1007
|
├── 转换为列表(数据: Any) -> list
|
|
@@ -992,9 +1014,7 @@ PyPyNum
|
|
|
992
1014
|
└── 黎曼函数(alpha: float) -> float
|
|
993
1015
|
```
|
|
994
1016
|
|
|
995
|
-
###
|
|
996
|
-
|
|
997
|
-
#### Code testing
|
|
1017
|
+
### Code testing
|
|
998
1018
|
|
|
999
1019
|
```python
|
|
1000
1020
|
from pypynum import (Array, Geometry, Logic, Matrix, Quaternion, Symbolics, Tensor, Vector,
|