PyPyNum 1.15.1__py3-none-any.whl → 1.16.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {PyPyNum-1.15.1.dist-info → PyPyNum-1.16.0.dist-info}/METADATA +89 -36
- {PyPyNum-1.15.1.dist-info → PyPyNum-1.16.0.dist-info}/RECORD +13 -13
- pypynum/README.md +88 -35
- pypynum/__init__.py +1 -1
- pypynum/consts.py +199 -5
- pypynum/dists.py +2 -2
- pypynum/matrices.py +74 -40
- pypynum/multiprec.py +33 -0
- pypynum/seqs.py +55 -3
- pypynum/special.py +133 -12
- pypynum/tools.py +93 -16
- {PyPyNum-1.15.1.dist-info → PyPyNum-1.16.0.dist-info}/WHEEL +0 -0
- {PyPyNum-1.15.1.dist-info → PyPyNum-1.16.0.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PyPyNum
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.16.0
|
|
4
4
|
Summary: PyPyNum is a Python library for math & science computations, covering algebra, calculus, stats, with data structures like matrices, vectors, tensors. It offers numerical tools, programs, and supports computational ops, functions, processing, simulation, & visualization in data science & ML, crucial for research, engineering, & data processing.
|
|
5
5
|
Home-page: https://github.com/PythonSJL/PyPyNum
|
|
6
6
|
Author: Shen Jiayi
|
|
@@ -234,7 +234,7 @@ processing.</font><font color = red>[Python>=3.4]</font>
|
|
|
234
234
|
[](https://pepy.tech/project/pypynum)
|
|
235
235
|
[](https://pepy.tech/project/pypynum)
|
|
236
236
|
|
|
237
|
-
## Version -> 1.
|
|
237
|
+
## Version -> 1.16.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
|
|
|
@@ -327,41 +327,81 @@ Python interpreter and run it!
|
|
|
327
327
|
```
|
|
328
328
|
!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
|
|
329
329
|
|
|
330
|
-
|
|
330
|
+
The submodule 'consts' has added
|
|
331
|
+
a large number of mathematical
|
|
332
|
+
and scientific constants,
|
|
333
|
+
currently totaling 128.
|
|
331
334
|
|
|
332
|
-
|
|
335
|
+
This module defines a collection
|
|
336
|
+
of constants representing
|
|
337
|
+
various physical, mathematical,
|
|
338
|
+
and unit conversion factors.
|
|
333
339
|
|
|
334
|
-
|
|
340
|
+
These constants are commonly
|
|
341
|
+
used in scientific and
|
|
342
|
+
engineering calculations.
|
|
335
343
|
|
|
336
|
-
|
|
344
|
+
If you want to know information
|
|
345
|
+
about each constant, you can
|
|
346
|
+
execute 'help(consts)' to
|
|
347
|
+
obtain it.
|
|
337
348
|
|
|
338
349
|
!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
|
|
339
350
|
|
|
340
|
-
The printout in
|
|
341
351
|
|
|
342
|
-
|
|
352
|
+
<<< Here are the newly added functions >>>
|
|
343
353
|
|
|
344
|
-
was deleted, which is the trace
|
|
345
354
|
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
+
PyPyNum
|
|
356
|
+
├── special
|
|
357
|
+
│ └── FUNCTION
|
|
358
|
+
│ ├── qbinomial(n: typing.Union[int, float, complex], m: typing.Union[int, float, complex], q: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
359
|
+
│ │ # Calculate the q-binomial coefficient of n and m with parameter q.
|
|
360
|
+
│ ├── qfactorial(n: typing.Union[int, float, complex], q: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
361
|
+
│ │ # Compute the q-factorial of n with parameter q.
|
|
362
|
+
│ ├── qgamma(n: typing.Union[int, float, complex], q: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
363
|
+
│ │ # Calculate the q-gamma function of n with parameter q.
|
|
364
|
+
│ └── qpochhammer(a: typing.Union[int, float, complex], q: typing.Union[int, float, complex], n: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
365
|
+
│ # Compute the q-Pochhammer symbol for given a, q, and n.
|
|
366
|
+
├── multiprec
|
|
367
|
+
│ └── FUNCTION
|
|
368
|
+
│ ├── mp_catalan(sigfigs: int) -> decimal.Decimal
|
|
369
|
+
│ # Calculate the Catalan's constant with a specified number of significant figures using multiprecision arithmetic.
|
|
370
|
+
├── seqs
|
|
371
|
+
│ └── FUNCTION
|
|
372
|
+
│ ├── padovan(n: int, single: bool) -> typing.Union[int, list]
|
|
373
|
+
│ │ # Generate the Padovan sequence up to the nth term.
|
|
374
|
+
│ ├── pelllucas(n: int, single: bool) -> typing.Union[int, list]
|
|
375
|
+
│ │ # Generate the Pell-Lucas sequence up to the nth term.
|
|
376
|
+
│ ├── perrin(n: int, single: bool) -> typing.Union[int, list]
|
|
377
|
+
│ │ # Generate the Perrin sequence up to the nth term.
|
|
378
|
+
│ └── sylvester(n: int, single: bool) -> typing.Union[int, list]
|
|
379
|
+
│ # Generate the Sylvester sequence up to the nth term.
|
|
380
|
+
├── tools
|
|
381
|
+
│ └── FUNCTION
|
|
382
|
+
│ ├── lcsubseq(x: typing.Union[list, tuple, str], y: typing.Union[list, tuple, str]) -> list
|
|
383
|
+
│ │ # Find the longest common subsequence between two sequences x and y.
|
|
384
|
+
│ └── lcsubstr(x: typing.Union[list, tuple, str], y: typing.Union[list, tuple, str]) -> list
|
|
385
|
+
│ # Find the longest common substring between two sequences x and y.
|
|
386
|
+
├── matrices
|
|
387
|
+
│ ├── CLASS
|
|
388
|
+
│ │ └── Matrix(pypynum.arrays.Array)/__init__(self: Any, data: Any, check: Any) -> Any
|
|
389
|
+
│ │ # Initialize a Matrix object from a given data array.
|
|
390
|
+
│ └── FUNCTION
|
|
391
|
+
│ ├── perm_mat(num_rows: int, num_cols: int, row_swaps: typing.Union[list, tuple], col_swaps: typing.Union[list, tuple], rtype: typing.Callable) -> typing.Any
|
|
392
|
+
│ │ # Create a permutation matrix based on specified row and column swaps.
|
|
393
|
+
│ └── perm_mat_indices(num_rows: int, num_cols: int, row_swaps: typing.Union[list, tuple], col_swaps: typing.Union[list, tuple]) -> tuple
|
|
394
|
+
│ # Compute the indices for a permutation matrix based on specified row and column swaps.
|
|
355
395
|
|
|
356
|
-
form of "hyp * f *".
|
|
357
396
|
|
|
358
397
|
!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
|
|
359
398
|
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
399
|
+
Other functions and classes have
|
|
400
|
+
also undergone certain
|
|
401
|
+
modifications, such as adding a
|
|
402
|
+
"reduce" parameter to the "qr"
|
|
403
|
+
function to determine whether to
|
|
404
|
+
crop the matrix.
|
|
365
405
|
|
|
366
406
|
!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
|
|
367
407
|
```
|
|
@@ -668,13 +708,15 @@ PyPyNum
|
|
|
668
708
|
│ ├── CLASS
|
|
669
709
|
│ │ └── Matrix(pypynum.arrays.Array)/__init__(self: Any, data: Any, check: Any) -> Any
|
|
670
710
|
│ └── FUNCTION
|
|
671
|
-
│ ├── cholesky(matrix:
|
|
711
|
+
│ ├── cholesky(matrix: pypynum.matrices.Matrix, hermitian: bool) -> pypynum.matrices.Matrix
|
|
672
712
|
│ ├── eigen(matrix: pypynum.matrices.Matrix) -> tuple
|
|
673
713
|
│ ├── hessenberg(matrix: pypynum.matrices.Matrix) -> tuple
|
|
674
|
-
│ ├── identity(n: int) -> pypynum.matrices.Matrix
|
|
714
|
+
│ ├── identity(n: int, m: int) -> pypynum.matrices.Matrix
|
|
675
715
|
│ ├── lu(matrix: pypynum.matrices.Matrix) -> tuple
|
|
676
716
|
│ ├── mat(data: Any) -> Any
|
|
677
|
-
│ ├──
|
|
717
|
+
│ ├── perm_mat(num_rows: int, num_cols: int, row_swaps: typing.Union[list, tuple], col_swaps: typing.Union[list, tuple], rtype: typing.Callable) -> typing.Any
|
|
718
|
+
│ ├── perm_mat_indices(num_rows: int, num_cols: int, row_swaps: typing.Union[list, tuple], col_swaps: typing.Union[list, tuple]) -> tuple
|
|
719
|
+
│ ├── qr(matrix: pypynum.matrices.Matrix, reduce: bool) -> tuple
|
|
678
720
|
│ ├── rank_decomp(matrix: pypynum.matrices.Matrix) -> tuple
|
|
679
721
|
│ ├── rotate90(matrix: pypynum.matrices.Matrix, times: int) -> pypynum.matrices.Matrix
|
|
680
722
|
│ ├── svd(matrix: pypynum.matrices.Matrix) -> tuple
|
|
@@ -692,6 +734,7 @@ PyPyNum
|
|
|
692
734
|
│ ├── mp_asin(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
693
735
|
│ ├── mp_atan(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
694
736
|
│ ├── mp_atan2(y: typing.Union[int, float, str, decimal.Decimal], x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
737
|
+
│ ├── mp_catalan(sigfigs: int) -> decimal.Decimal
|
|
695
738
|
│ ├── mp_cos(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
696
739
|
│ ├── mp_cosh(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
697
740
|
│ ├── mp_e(sigfigs: int, method: str) -> decimal.Decimal
|
|
@@ -775,32 +818,40 @@ PyPyNum
|
|
|
775
818
|
│ └── FUNCTION
|
|
776
819
|
│ ├── 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
|
|
777
820
|
│ ├── bell_triangle(n: int) -> list
|
|
778
|
-
│ ├── bernoulli(n: int, single: bool) -> list
|
|
821
|
+
│ ├── bernoulli(n: int, single: bool) -> typing.Union[list, tuple]
|
|
779
822
|
│ ├── catalan(n: int, single: bool) -> typing.Union[int, list]
|
|
780
823
|
│ ├── farey(n: int) -> list
|
|
781
824
|
│ ├── fibonacci(n: int, single: bool) -> typing.Union[int, list]
|
|
782
825
|
│ ├── 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
|
|
783
826
|
│ ├── lucas(n: int, single: bool) -> typing.Union[int, list]
|
|
827
|
+
│ ├── padovan(n: int, single: bool) -> typing.Union[int, list]
|
|
784
828
|
│ ├── pascal_triangle(n: int) -> list
|
|
785
829
|
│ ├── pell(n: int, single: bool) -> typing.Union[int, list]
|
|
830
|
+
│ ├── pelllucas(n: int, single: bool) -> typing.Union[int, list]
|
|
831
|
+
│ ├── perrin(n: int, single: bool) -> typing.Union[int, list]
|
|
786
832
|
│ ├── recaman(n: int, single: bool) -> typing.Union[int, list]
|
|
787
833
|
│ ├── stirling1(n: int) -> list
|
|
788
834
|
│ ├── stirling2(n: int) -> list
|
|
835
|
+
│ ├── sylvester(n: int, single: bool) -> typing.Union[int, list]
|
|
789
836
|
│ ├── tetranacci(n: int, single: bool) -> typing.Union[int, list]
|
|
790
837
|
│ └── tribonacci(n: int, single: bool) -> typing.Union[int, list]
|
|
791
838
|
├── special
|
|
792
839
|
│ ├── CLASS
|
|
793
840
|
│ └── FUNCTION
|
|
794
|
-
│ ├──
|
|
795
|
-
│ ├──
|
|
796
|
-
│ ├──
|
|
797
|
-
│ ├──
|
|
798
|
-
│ ├──
|
|
799
|
-
│ ├──
|
|
841
|
+
│ ├── besseli0(x: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
842
|
+
│ ├── besseli1(x: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
843
|
+
│ ├── besseliv(v: typing.Union[int, float], x: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
844
|
+
│ ├── besselj0(x: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
845
|
+
│ ├── besselj1(x: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
846
|
+
│ ├── besseljv(v: typing.Union[int, float], x: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
800
847
|
│ ├── hyp0f1(b0: typing.Union[int, float, complex], z: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
801
848
|
│ ├── hyp1f1(a0: typing.Union[int, float, complex], b0: typing.Union[int, float, complex], z: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
802
849
|
│ ├── hyp2f1(a0: typing.Union[int, float, complex], a1: typing.Union[int, float, complex], b0: typing.Union[int, float, complex], z: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
803
|
-
│
|
|
850
|
+
│ ├── hyppfq(a: typing.Union[list, tuple], b: typing.Union[list, tuple], z: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
851
|
+
│ ├── qbinomial(n: typing.Union[int, float, complex], m: typing.Union[int, float, complex], q: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
852
|
+
│ ├── qfactorial(n: typing.Union[int, float, complex], q: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
853
|
+
│ ├── qgamma(n: typing.Union[int, float, complex], q: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
854
|
+
│ └── qpochhammer(a: typing.Union[int, float, complex], q: typing.Union[int, float, complex], n: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
804
855
|
├── stattest
|
|
805
856
|
│ ├── CLASS
|
|
806
857
|
│ └── FUNCTION
|
|
@@ -835,7 +886,9 @@ PyPyNum
|
|
|
835
886
|
│ ├── fast_pow(a: typing.Any, n: int, init: typing.Any, mul: typing.Callable) -> typing.Any
|
|
836
887
|
│ ├── frange(start: typing.Union[int, float], stop: typing.Union[int, float], step: float) -> list
|
|
837
888
|
│ ├── geomspace(start: typing.Union[int, float], stop: typing.Union[int, float], number: int) -> list
|
|
838
|
-
│ ├──
|
|
889
|
+
│ ├── lcsubseq(x: typing.Union[list, tuple, str], y: typing.Union[list, tuple, str]) -> list
|
|
890
|
+
│ ├── lcsubstr(x: typing.Union[list, tuple, str], y: typing.Union[list, tuple, str]) -> list
|
|
891
|
+
│ ├── levenshtein(x: typing.Union[list, tuple, str], y: typing.Union[list, tuple, str]) -> int
|
|
839
892
|
│ ├── linspace(start: typing.Union[int, float], stop: typing.Union[int, float], number: int) -> list
|
|
840
893
|
│ ├── magic_square(n: int) -> list
|
|
841
894
|
│ ├── primality(n: int, iter_num: int) -> bool
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
pypynum/PyPyNum.png,sha256=t96tJPWfHxT8kcXm_qZI2z5W36TgOqjCU9qdgbmlFws,11623
|
|
2
|
-
pypynum/README.md,sha256=
|
|
3
|
-
pypynum/__init__.py,sha256=
|
|
2
|
+
pypynum/README.md,sha256=1SOzsAn-Z-7WMCdc3TNB_SFHqhNscOpf7DCQ7mh6Cr4,84595
|
|
3
|
+
pypynum/__init__.py,sha256=2Huv1gP1tUG1seEJmofWw_UMFlf3A_xIKT87hLfEMn8,2640
|
|
4
4
|
pypynum/arrays.py,sha256=NiNs_wTeVgQpJuSe5OrIdFFG0Nln_ed4Im3hua0ZBnE,13293
|
|
5
5
|
pypynum/chars.py,sha256=6XNmH0zYsv0pfadW3KoevrR8xQPIkles9oGikjS6R1I,2181
|
|
6
6
|
pypynum/ciphers.py,sha256=kC7wZk3FF-MCCvn2-1YxiaRa4ImDKxyyihJYc6Dyf5E,10008
|
|
7
|
-
pypynum/consts.py,sha256=
|
|
7
|
+
pypynum/consts.py,sha256=enetPwJevWgYXuGEasAb-tXMHpvL2xWKUe-B1gTwInk,8416
|
|
8
8
|
pypynum/crandom.py,sha256=44GZ7o6y5PwgL-cZLkXUZaAUfiW6aadyRNfMdxTnH30,5111
|
|
9
9
|
pypynum/dataproc.py,sha256=bJ2a1-S7TQj8V8vzXZ3ooP32fBe99NQU0orPGprEIdg,9231
|
|
10
|
-
pypynum/dists.py,sha256=
|
|
10
|
+
pypynum/dists.py,sha256=SGxZ08n4mRaqegHILoaJNH4jzPzk-fsE7kvN-EmegPQ,29697
|
|
11
11
|
pypynum/equations.py,sha256=_oywKzbrOPOOhD4yu83qqNiIOKQPbJJs6SghdkGbqUw,561
|
|
12
12
|
pypynum/fft.py,sha256=AtG0tESykzEs4gDsXhcizW7qhQnmw0gjcWcXefBqzhs,1401
|
|
13
13
|
pypynum/files.py,sha256=iLtTc5UTtUUWoh2sDJl5Yyy_rT8-Vi0pby5c2J95EqE,3397
|
|
@@ -19,8 +19,8 @@ pypynum/interp.py,sha256=wNMa6M_IRpSe026tuRxXfr244oBtgHOpCpYlGd4eyhA,4920
|
|
|
19
19
|
pypynum/kernels.py,sha256=GMwWnjLWEprFXSEAIN8d6GZrC2KDx6qhJdbcLBoYOTg,15869
|
|
20
20
|
pypynum/logics.py,sha256=EwvWFNND14__oWx7o-_oYIUubmVhp3DrvBcnRCWW8vc,10999
|
|
21
21
|
pypynum/maths.py,sha256=McuOXRktbjcjZpTfWEoHnmFkeeQVacMoHyThqTIC27E,32808
|
|
22
|
-
pypynum/matrices.py,sha256=
|
|
23
|
-
pypynum/multiprec.py,sha256=
|
|
22
|
+
pypynum/matrices.py,sha256=useh4_Hlk3YBRTSTJK6SsErTRnDVblsqB0a7iw1mB_k,22439
|
|
23
|
+
pypynum/multiprec.py,sha256=r8_OoWH56pRbBxCjd5-qkfxJMBU1r7LjV4Wvr7zR46Y,20111
|
|
24
24
|
pypynum/networks.py,sha256=iSOvC9JW1h4AFGokGGOTkKie5hAYN_YT9H4f3apI9b8,3275
|
|
25
25
|
pypynum/numbers.py,sha256=EPzw8zq5U7GQj8URu2VxeVIXS-_XQm2ADmSAIHa816k,11133
|
|
26
26
|
pypynum/plotting.py,sha256=mbIYK5TpY1qvuMJrqz4d8bxJEiZww3AI684vSKV-DgU,7781
|
|
@@ -29,21 +29,21 @@ pypynum/pprinters.py,sha256=Qt9-V5SUyoOqC3lsUU5D5zSSM-MmcnFCUyUtLxhS4pE,2514
|
|
|
29
29
|
pypynum/quats.py,sha256=tn1ZogMiV8FGYucZ3u8ynG6SFpPjhFAachVHxgBdDZk,8000
|
|
30
30
|
pypynum/random.py,sha256=fGaJfwS0QUWV-qb8hldXpRUYJ-79n7Al0gEmPJMAwJc,2254
|
|
31
31
|
pypynum/regs.py,sha256=mV1r1KkXAv07FmcTntaBF0rcwHBXUyXPvC9h6UOkhE0,2042
|
|
32
|
-
pypynum/seqs.py,sha256=
|
|
33
|
-
pypynum/special.py,sha256=
|
|
32
|
+
pypynum/seqs.py,sha256=Hch8ebCrVFHUfKig54CVGzf3xXkVJlVbLsE0e7flOX4,11666
|
|
33
|
+
pypynum/special.py,sha256=58pRacza__MwnovWFRemVglszF1wdUwgA4uyS25M47w,11643
|
|
34
34
|
pypynum/stattest.py,sha256=nCAqFjaHVa9EOaWcmgWrhPuBoyLdoypkz6_YeM_AOd8,5511
|
|
35
35
|
pypynum/symbols.py,sha256=u-Dig3OLs6qoLzxMpTAYJGq5uSWDMvgU13TAHKLyjMY,2768
|
|
36
36
|
pypynum/tensors.py,sha256=gKpklk-7R9FHRD9iUOXOG6d-h-mL3I_E7TAL-xOWKu8,3685
|
|
37
37
|
pypynum/test.py,sha256=HY6TiQr9-wIadRoXElu8TJkVWKMxcahisyWBtew8B9c,8730
|
|
38
38
|
pypynum/this.py,sha256=wT7DwodxqOQ7LoDaUtvskMkAb8CODL_56mtXPy12P54,3411
|
|
39
|
-
pypynum/tools.py,sha256=
|
|
39
|
+
pypynum/tools.py,sha256=QOuftgsu9603odrzMUXG9HQIJumFtGhXq0x9PFlUIS4,18850
|
|
40
40
|
pypynum/trees.py,sha256=b02t69vBjc3ibKaUAkWfBvMDdsugF4DpGC2-q4RsgEU,39779
|
|
41
41
|
pypynum/types.py,sha256=v1lGIL_p0xgxL6mGX7uBQBHBa7UScKCsgPkW8Q6nzlk,3348
|
|
42
42
|
pypynum/ufuncs.py,sha256=Lmr_ZVsswQqbGo2MB8gjd_lijRBOZIy2q2wQBOHvYxM,3549
|
|
43
43
|
pypynum/utils.py,sha256=BhH_iSU44bS6tC3MMrDfIfGhIsQg9nMVlp6fl0-KcRA,21001
|
|
44
44
|
pypynum/vectors.py,sha256=GGVk0YSLVm-hzJjm068W7tNRYu8NqPgOKtWHIOTn9yY,3212
|
|
45
45
|
pypynum/zh_cn.py,sha256=YBmTCO0h-xMDEo9pfpaR1qvh0qaL811psoZDdBniuzE,13818
|
|
46
|
-
PyPyNum-1.
|
|
47
|
-
PyPyNum-1.
|
|
48
|
-
PyPyNum-1.
|
|
49
|
-
PyPyNum-1.
|
|
46
|
+
PyPyNum-1.16.0.dist-info/METADATA,sha256=insI60KoVZ3gxJwZN7pb4WQC3iQ9Kgia_VYIItcyUxQ,98974
|
|
47
|
+
PyPyNum-1.16.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
48
|
+
PyPyNum-1.16.0.dist-info/top_level.txt,sha256=4wW_Xb4bRglmiMsdPAe9f75MkXhNpuN88H17g_Cr5u8,8
|
|
49
|
+
PyPyNum-1.16.0.dist-info/RECORD,,
|
pypynum/README.md
CHANGED
|
@@ -20,7 +20,7 @@ processing.</font><font color = red>[Python>=3.4]</font>
|
|
|
20
20
|
[](https://pepy.tech/project/pypynum)
|
|
21
21
|
[](https://pepy.tech/project/pypynum)
|
|
22
22
|
|
|
23
|
-
## Version -> 1.
|
|
23
|
+
## Version -> 1.16.0 | PyPI -> https://pypi.org/project/PyPyNum/ | Gitee -> https://www.gitee.com/PythonSJL/PyPyNum | GitHub -> https://github.com/PythonSJL/PyPyNum
|
|
24
24
|
|
|
25
25
|

|
|
26
26
|
|
|
@@ -113,41 +113,81 @@ Python interpreter and run it!
|
|
|
113
113
|
```
|
|
114
114
|
!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
|
|
115
115
|
|
|
116
|
-
|
|
116
|
+
The submodule 'consts' has added
|
|
117
|
+
a large number of mathematical
|
|
118
|
+
and scientific constants,
|
|
119
|
+
currently totaling 128.
|
|
117
120
|
|
|
118
|
-
|
|
121
|
+
This module defines a collection
|
|
122
|
+
of constants representing
|
|
123
|
+
various physical, mathematical,
|
|
124
|
+
and unit conversion factors.
|
|
119
125
|
|
|
120
|
-
|
|
126
|
+
These constants are commonly
|
|
127
|
+
used in scientific and
|
|
128
|
+
engineering calculations.
|
|
121
129
|
|
|
122
|
-
|
|
130
|
+
If you want to know information
|
|
131
|
+
about each constant, you can
|
|
132
|
+
execute 'help(consts)' to
|
|
133
|
+
obtain it.
|
|
123
134
|
|
|
124
135
|
!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
|
|
125
136
|
|
|
126
|
-
The printout in
|
|
127
137
|
|
|
128
|
-
|
|
138
|
+
<<< Here are the newly added functions >>>
|
|
129
139
|
|
|
130
|
-
was deleted, which is the trace
|
|
131
140
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
+
PyPyNum
|
|
142
|
+
├── special
|
|
143
|
+
│ └── FUNCTION
|
|
144
|
+
│ ├── qbinomial(n: typing.Union[int, float, complex], m: typing.Union[int, float, complex], q: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
145
|
+
│ │ # Calculate the q-binomial coefficient of n and m with parameter q.
|
|
146
|
+
│ ├── qfactorial(n: typing.Union[int, float, complex], q: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
147
|
+
│ │ # Compute the q-factorial of n with parameter q.
|
|
148
|
+
│ ├── qgamma(n: typing.Union[int, float, complex], q: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
149
|
+
│ │ # Calculate the q-gamma function of n with parameter q.
|
|
150
|
+
│ └── qpochhammer(a: typing.Union[int, float, complex], q: typing.Union[int, float, complex], n: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
151
|
+
│ # Compute the q-Pochhammer symbol for given a, q, and n.
|
|
152
|
+
├── multiprec
|
|
153
|
+
│ └── FUNCTION
|
|
154
|
+
│ ├── mp_catalan(sigfigs: int) -> decimal.Decimal
|
|
155
|
+
│ # Calculate the Catalan's constant with a specified number of significant figures using multiprecision arithmetic.
|
|
156
|
+
├── seqs
|
|
157
|
+
│ └── FUNCTION
|
|
158
|
+
│ ├── padovan(n: int, single: bool) -> typing.Union[int, list]
|
|
159
|
+
│ │ # Generate the Padovan sequence up to the nth term.
|
|
160
|
+
│ ├── pelllucas(n: int, single: bool) -> typing.Union[int, list]
|
|
161
|
+
│ │ # Generate the Pell-Lucas sequence up to the nth term.
|
|
162
|
+
│ ├── perrin(n: int, single: bool) -> typing.Union[int, list]
|
|
163
|
+
│ │ # Generate the Perrin sequence up to the nth term.
|
|
164
|
+
│ └── sylvester(n: int, single: bool) -> typing.Union[int, list]
|
|
165
|
+
│ # Generate the Sylvester sequence up to the nth term.
|
|
166
|
+
├── tools
|
|
167
|
+
│ └── FUNCTION
|
|
168
|
+
│ ├── lcsubseq(x: typing.Union[list, tuple, str], y: typing.Union[list, tuple, str]) -> list
|
|
169
|
+
│ │ # Find the longest common subsequence between two sequences x and y.
|
|
170
|
+
│ └── lcsubstr(x: typing.Union[list, tuple, str], y: typing.Union[list, tuple, str]) -> list
|
|
171
|
+
│ # Find the longest common substring between two sequences x and y.
|
|
172
|
+
├── matrices
|
|
173
|
+
│ ├── CLASS
|
|
174
|
+
│ │ └── Matrix(pypynum.arrays.Array)/__init__(self: Any, data: Any, check: Any) -> Any
|
|
175
|
+
│ │ # Initialize a Matrix object from a given data array.
|
|
176
|
+
│ └── FUNCTION
|
|
177
|
+
│ ├── perm_mat(num_rows: int, num_cols: int, row_swaps: typing.Union[list, tuple], col_swaps: typing.Union[list, tuple], rtype: typing.Callable) -> typing.Any
|
|
178
|
+
│ │ # Create a permutation matrix based on specified row and column swaps.
|
|
179
|
+
│ └── perm_mat_indices(num_rows: int, num_cols: int, row_swaps: typing.Union[list, tuple], col_swaps: typing.Union[list, tuple]) -> tuple
|
|
180
|
+
│ # Compute the indices for a permutation matrix based on specified row and column swaps.
|
|
141
181
|
|
|
142
|
-
form of "hyp * f *".
|
|
143
182
|
|
|
144
183
|
!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
|
|
145
184
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
185
|
+
Other functions and classes have
|
|
186
|
+
also undergone certain
|
|
187
|
+
modifications, such as adding a
|
|
188
|
+
"reduce" parameter to the "qr"
|
|
189
|
+
function to determine whether to
|
|
190
|
+
crop the matrix.
|
|
151
191
|
|
|
152
192
|
!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
|
|
153
193
|
```
|
|
@@ -454,13 +494,15 @@ PyPyNum
|
|
|
454
494
|
│ ├── CLASS
|
|
455
495
|
│ │ └── Matrix(pypynum.arrays.Array)/__init__(self: Any, data: Any, check: Any) -> Any
|
|
456
496
|
│ └── FUNCTION
|
|
457
|
-
│ ├── cholesky(matrix:
|
|
497
|
+
│ ├── cholesky(matrix: pypynum.matrices.Matrix, hermitian: bool) -> pypynum.matrices.Matrix
|
|
458
498
|
│ ├── eigen(matrix: pypynum.matrices.Matrix) -> tuple
|
|
459
499
|
│ ├── hessenberg(matrix: pypynum.matrices.Matrix) -> tuple
|
|
460
|
-
│ ├── identity(n: int) -> pypynum.matrices.Matrix
|
|
500
|
+
│ ├── identity(n: int, m: int) -> pypynum.matrices.Matrix
|
|
461
501
|
│ ├── lu(matrix: pypynum.matrices.Matrix) -> tuple
|
|
462
502
|
│ ├── mat(data: Any) -> Any
|
|
463
|
-
│ ├──
|
|
503
|
+
│ ├── perm_mat(num_rows: int, num_cols: int, row_swaps: typing.Union[list, tuple], col_swaps: typing.Union[list, tuple], rtype: typing.Callable) -> typing.Any
|
|
504
|
+
│ ├── perm_mat_indices(num_rows: int, num_cols: int, row_swaps: typing.Union[list, tuple], col_swaps: typing.Union[list, tuple]) -> tuple
|
|
505
|
+
│ ├── qr(matrix: pypynum.matrices.Matrix, reduce: bool) -> tuple
|
|
464
506
|
│ ├── rank_decomp(matrix: pypynum.matrices.Matrix) -> tuple
|
|
465
507
|
│ ├── rotate90(matrix: pypynum.matrices.Matrix, times: int) -> pypynum.matrices.Matrix
|
|
466
508
|
│ ├── svd(matrix: pypynum.matrices.Matrix) -> tuple
|
|
@@ -478,6 +520,7 @@ PyPyNum
|
|
|
478
520
|
│ ├── mp_asin(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
479
521
|
│ ├── mp_atan(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
480
522
|
│ ├── mp_atan2(y: typing.Union[int, float, str, decimal.Decimal], x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
523
|
+
│ ├── mp_catalan(sigfigs: int) -> decimal.Decimal
|
|
481
524
|
│ ├── mp_cos(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
482
525
|
│ ├── mp_cosh(x: typing.Union[int, float, str, decimal.Decimal], sigfigs: int) -> decimal.Decimal
|
|
483
526
|
│ ├── mp_e(sigfigs: int, method: str) -> decimal.Decimal
|
|
@@ -561,32 +604,40 @@ PyPyNum
|
|
|
561
604
|
│ └── FUNCTION
|
|
562
605
|
│ ├── 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
|
|
563
606
|
│ ├── bell_triangle(n: int) -> list
|
|
564
|
-
│ ├── bernoulli(n: int, single: bool) -> list
|
|
607
|
+
│ ├── bernoulli(n: int, single: bool) -> typing.Union[list, tuple]
|
|
565
608
|
│ ├── catalan(n: int, single: bool) -> typing.Union[int, list]
|
|
566
609
|
│ ├── farey(n: int) -> list
|
|
567
610
|
│ ├── fibonacci(n: int, single: bool) -> typing.Union[int, list]
|
|
568
611
|
│ ├── 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
|
|
569
612
|
│ ├── lucas(n: int, single: bool) -> typing.Union[int, list]
|
|
613
|
+
│ ├── padovan(n: int, single: bool) -> typing.Union[int, list]
|
|
570
614
|
│ ├── pascal_triangle(n: int) -> list
|
|
571
615
|
│ ├── pell(n: int, single: bool) -> typing.Union[int, list]
|
|
616
|
+
│ ├── pelllucas(n: int, single: bool) -> typing.Union[int, list]
|
|
617
|
+
│ ├── perrin(n: int, single: bool) -> typing.Union[int, list]
|
|
572
618
|
│ ├── recaman(n: int, single: bool) -> typing.Union[int, list]
|
|
573
619
|
│ ├── stirling1(n: int) -> list
|
|
574
620
|
│ ├── stirling2(n: int) -> list
|
|
621
|
+
│ ├── sylvester(n: int, single: bool) -> typing.Union[int, list]
|
|
575
622
|
│ ├── tetranacci(n: int, single: bool) -> typing.Union[int, list]
|
|
576
623
|
│ └── tribonacci(n: int, single: bool) -> typing.Union[int, list]
|
|
577
624
|
├── special
|
|
578
625
|
│ ├── CLASS
|
|
579
626
|
│ └── FUNCTION
|
|
580
|
-
│ ├──
|
|
581
|
-
│ ├──
|
|
582
|
-
│ ├──
|
|
583
|
-
│ ├──
|
|
584
|
-
│ ├──
|
|
585
|
-
│ ├──
|
|
627
|
+
│ ├── besseli0(x: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
628
|
+
│ ├── besseli1(x: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
629
|
+
│ ├── besseliv(v: typing.Union[int, float], x: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
630
|
+
│ ├── besselj0(x: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
631
|
+
│ ├── besselj1(x: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
632
|
+
│ ├── besseljv(v: typing.Union[int, float], x: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
586
633
|
│ ├── hyp0f1(b0: typing.Union[int, float, complex], z: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
587
634
|
│ ├── hyp1f1(a0: typing.Union[int, float, complex], b0: typing.Union[int, float, complex], z: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
588
635
|
│ ├── hyp2f1(a0: typing.Union[int, float, complex], a1: typing.Union[int, float, complex], b0: typing.Union[int, float, complex], z: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
589
|
-
│
|
|
636
|
+
│ ├── hyppfq(a: typing.Union[list, tuple], b: typing.Union[list, tuple], z: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
637
|
+
│ ├── qbinomial(n: typing.Union[int, float, complex], m: typing.Union[int, float, complex], q: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
638
|
+
│ ├── qfactorial(n: typing.Union[int, float, complex], q: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
639
|
+
│ ├── qgamma(n: typing.Union[int, float, complex], q: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
640
|
+
│ └── qpochhammer(a: typing.Union[int, float, complex], q: typing.Union[int, float, complex], n: typing.Union[int, float, complex]) -> typing.Union[int, float, complex]
|
|
590
641
|
├── stattest
|
|
591
642
|
│ ├── CLASS
|
|
592
643
|
│ └── FUNCTION
|
|
@@ -621,7 +672,9 @@ PyPyNum
|
|
|
621
672
|
│ ├── fast_pow(a: typing.Any, n: int, init: typing.Any, mul: typing.Callable) -> typing.Any
|
|
622
673
|
│ ├── frange(start: typing.Union[int, float], stop: typing.Union[int, float], step: float) -> list
|
|
623
674
|
│ ├── geomspace(start: typing.Union[int, float], stop: typing.Union[int, float], number: int) -> list
|
|
624
|
-
│ ├──
|
|
675
|
+
│ ├── lcsubseq(x: typing.Union[list, tuple, str], y: typing.Union[list, tuple, str]) -> list
|
|
676
|
+
│ ├── lcsubstr(x: typing.Union[list, tuple, str], y: typing.Union[list, tuple, str]) -> list
|
|
677
|
+
│ ├── levenshtein(x: typing.Union[list, tuple, str], y: typing.Union[list, tuple, str]) -> int
|
|
625
678
|
│ ├── linspace(start: typing.Union[int, float], stop: typing.Union[int, float], number: int) -> list
|
|
626
679
|
│ ├── magic_square(n: int) -> list
|
|
627
680
|
│ ├── primality(n: int, iter_num: int) -> bool
|
pypynum/__init__.py
CHANGED
|
@@ -68,7 +68,7 @@ from .ufuncs import *
|
|
|
68
68
|
from .utils import *
|
|
69
69
|
from .vectors import *
|
|
70
70
|
|
|
71
|
-
__version__ = "1.
|
|
71
|
+
__version__ = "1.16.0"
|
|
72
72
|
print("PyPyNum", "Version -> " + __version__, "PyPI -> https://pypi.org/project/PyPyNum/",
|
|
73
73
|
"Gitee -> https://www.gitee.com/PythonSJL/PyPyNum", "GitHub -> https://github.com/PythonSJL/PyPyNum", sep=" | ")
|
|
74
74
|
for _ in list(globals().keys()):
|