PyPyNum 1.17.0__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.
- {pypynum-1.17.0 → pypynum-1.17.1}/PKG-INFO +114 -182
- {pypynum-1.17.0 → pypynum-1.17.1}/PyPyNum.egg-info/PKG-INFO +114 -182
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/README.md +113 -181
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/__init__.py +2 -1
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/arrays.py +2 -2
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/chars.py +14 -14
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/ciphers.py +10 -10
- pypynum-1.17.1/pypynum/images.py +296 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/numbers.py +9 -9
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/symbols.py +9 -9
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/test.py +48 -24
- {pypynum-1.17.0 → pypynum-1.17.1}/setup.py +1 -1
- pypynum-1.17.0/pypynum/images.py +0 -260
- {pypynum-1.17.0 → pypynum-1.17.1}/PyPyNum.egg-info/SOURCES.txt +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/PyPyNum.egg-info/dependency_links.txt +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/PyPyNum.egg-info/top_level.txt +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/PyPyNum.png +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/consts.py +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/crandom.py +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/dataproc.py +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/dists.py +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/equations.py +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/fft.py +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/files.py +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/geoms.py +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/graphs.py +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/groups.py +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/hypcmpnms.py +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/interp.py +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/kernels.py +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/logics.py +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/maths.py +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/matrices.py +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/multiprec.py +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/networks.py +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/plotting.py +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/polys.py +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/pprinters.py +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/random.py +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/regs.py +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/seqs.py +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/special.py +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/stattest.py +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/tensors.py +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/this.py +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/tools.py +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/trees.py +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/types.py +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/ufuncs.py +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/utils.py +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/vectors.py +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/pypynum/zh_cn.py +0 -0
- {pypynum-1.17.0 → pypynum-1.17.1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PyPyNum
|
|
3
|
-
Version: 1.17.
|
|
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
|
|
@@ -671,12 +671,11 @@ Keywords: math,数学,mathematics,数学计算,numerical,数值,computation,计
|
|
|
671
671
|
Requires-Python: >=3.4
|
|
672
672
|
Description-Content-Type: text/markdown
|
|
673
673
|
|
|
674
|
-
#
|
|
674
|
+
# PyPyNum
|
|
675
675
|
|
|
676
|
-
|
|
677
|
-
data
|
|
678
|
-
|
|
679
|
-
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.
|
|
680
679
|
|
|
681
680
|
```
|
|
682
681
|
________ ___ ___ ________ ___ ___ ________ ___ ___ _____ ______
|
|
@@ -693,7 +692,7 @@ processing.</font><font color = red>[Python>=3.4]</font>
|
|
|
693
692
|
[](https://pepy.tech/project/pypynum)
|
|
694
693
|
[](https://pepy.tech/project/pypynum)
|
|
695
694
|
|
|
696
|
-
## Version -> 1.17.
|
|
695
|
+
## Version -> 1.17.1 | PyPI -> https://pypi.org/project/PyPyNum/ | Gitee -> https://www.gitee.com/PythonSJL/PyPyNum | GitHub -> https://github.com/PythonSJL/PyPyNum
|
|
697
696
|
|
|
698
697
|

|
|
699
698
|
|
|
@@ -825,138 +824,71 @@ Python interpreter and run it!
|
|
|
825
824
|
```
|
|
826
825
|
!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
|
|
827
826
|
|
|
828
|
-
The
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
The
|
|
832
|
-
to
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
class
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
respectively, for the k-th diagonal in the matrix. The first
|
|
894
|
-
tuple corresponds to the row indices, and the second to the
|
|
895
|
-
column indices. The value of k indicates the diagonal: k=0 for
|
|
896
|
-
the main diagonal, k>0 for diagonals above the main diagonal,
|
|
897
|
-
and k<0 for diagonals below.
|
|
898
|
-
|
|
899
|
-
diag(v: typing.Any, k: <class 'int'>, n: <class 'int'>, m:
|
|
900
|
-
<class 'int'>) -> typing.Any
|
|
901
|
-
|
|
902
|
-
This function performs dual operations similar to the NumPy
|
|
903
|
-
`diag` function: 1. When `v` is a sequence, it constructs a
|
|
904
|
-
diagonal matrix by placing the elements of `v` on the k-th
|
|
905
|
-
diagonal. 2. When `v` is a matrix, it extracts the elements from
|
|
906
|
-
the k-th diagonal and returns them as a 1D sequence. The
|
|
907
|
-
argument `k` specifies the diagonal to be operated on, where k=0
|
|
908
|
-
refers to the main diagonal, k>0 identifies diagonals above the
|
|
909
|
-
main, and k<0 identifies diagonals below the main diagonal.
|
|
910
|
-
|
|
911
|
-
!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
|
|
912
|
-
|
|
913
|
-
damerau(x: typing.Union[list, tuple, str], y: typing.Union[list,
|
|
914
|
-
tuple, str]) -> <class 'int'>
|
|
915
|
-
|
|
916
|
-
Calculate the Damerau-Levenshtein
|
|
917
|
-
distance between two sequences. The Damerau-Levenshtein distance
|
|
918
|
-
is a measure of the difference between two sequences. It is an
|
|
919
|
-
extension of the Levenshtein distance that allows transpositions
|
|
920
|
-
(i.e., swapping two adjacent characters) to be considered as a
|
|
921
|
-
single edit operation. This function supports any type of
|
|
922
|
-
iterable sequences, such as strings, lists, or tuples.
|
|
923
|
-
Example:
|
|
924
|
-
>>> damerau("ensure", "nester")
|
|
925
|
-
3
|
|
926
|
-
|
|
927
|
-
strip_helper(sequence: typing.Any, keys_set: <class 'set'>,
|
|
928
|
-
strip_start: <class 'bool'>, strip_end: <class 'bool'>) ->
|
|
929
|
-
typing.Any
|
|
930
|
-
|
|
931
|
-
Removes elements from the start and/or
|
|
932
|
-
end of a sequence that match the specified keys.
|
|
933
|
-
Example:
|
|
934
|
-
>>> strip_helper([1, 2, 3, 4, 5, 1, 2], {1, 2}, True, True)
|
|
935
|
-
[3, 4, 5]
|
|
936
|
-
|
|
937
|
-
strip(sequence: typing.Any, keys: typing.Any) -> typing.Any
|
|
938
|
-
|
|
939
|
-
Removes elements from both the start and
|
|
940
|
-
end of a sequence that match the specified keys.
|
|
941
|
-
Example:
|
|
942
|
-
>>> strip([1, 2, 3, 4, 5, 1, 2], [1, 2])
|
|
943
|
-
[3, 4, 5]
|
|
944
|
-
|
|
945
|
-
lstrip(sequence: typing.Any, keys: typing.Any) -> typing.Any
|
|
946
|
-
|
|
947
|
-
Removes elements from the start of a
|
|
948
|
-
sequence that match the specified keys.
|
|
949
|
-
Example:
|
|
950
|
-
>>> lstrip([1, 2, 3, 4, 5, 1, 2], [1, 2])
|
|
951
|
-
[3, 4, 5, 1, 2]
|
|
952
|
-
|
|
953
|
-
rstrip(sequence: typing.Any, keys: typing.Any) -> typing.Any
|
|
954
|
-
|
|
955
|
-
Removes elements from the end of a
|
|
956
|
-
sequence that match the specified keys.
|
|
957
|
-
Example:
|
|
958
|
-
>>> rstrip([1, 2, 3, 4, 5, 1, 2], [1, 2])
|
|
959
|
-
[1, 2, 3, 4, 5]
|
|
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])
|
|
960
892
|
|
|
961
893
|
!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=
|
|
962
894
|
```
|
|
@@ -994,7 +926,7 @@ PyPyNum
|
|
|
994
926
|
│ ├── asarray(data: Any) -> Any
|
|
995
927
|
│ ├── aslist(data: Any) -> Any
|
|
996
928
|
│ ├── boolarray(data: Any) -> Any
|
|
997
|
-
│ ├── 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
|
|
998
930
|
│ ├── full(shape: typing.Union[list, tuple], fill_value: typing.Any, rtype: typing.Callable) -> typing.Any
|
|
999
931
|
│ ├── full_like(a: typing.Any, fill_value: typing.Any, rtype: typing.Callable) -> typing.Any
|
|
1000
932
|
│ ├── get_shape(data: Any) -> Any
|
|
@@ -1131,7 +1063,9 @@ PyPyNum
|
|
|
1131
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
|
|
1132
1064
|
├── images
|
|
1133
1065
|
│ ├── CLASS
|
|
1134
|
-
│ │
|
|
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
|
|
1135
1069
|
│ └── FUNCTION
|
|
1136
1070
|
│ └── crc(data: Any, length: Any, init: Any, xor: Any) -> Any
|
|
1137
1071
|
├── interp
|
|
@@ -1674,7 +1608,7 @@ PyPyNum
|
|
|
1674
1608
|
### Code Testing
|
|
1675
1609
|
|
|
1676
1610
|
```python
|
|
1677
|
-
from pypynum import (arrays, geoms, hypcmpnms, logics, matrices,
|
|
1611
|
+
from pypynum import (arrays, geoms, hypcmpnms, logics, matrices, multiprec, special, vectors,
|
|
1678
1612
|
ciphers, consts, equations, maths, plotting, random, regs, tools)
|
|
1679
1613
|
|
|
1680
1614
|
...
|
|
@@ -1765,48 +1699,46 @@ print(m1.rank())
|
|
|
1765
1699
|
2
|
|
1766
1700
|
"""
|
|
1767
1701
|
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
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)
|
|
1772
1718
|
|
|
1773
1719
|
"""
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
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
|
|
1780
1726
|
"""
|
|
1781
1727
|
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
print(
|
|
1785
|
-
print(
|
|
1786
|
-
print(
|
|
1787
|
-
print(
|
|
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))
|
|
1788
1734
|
|
|
1789
1735
|
"""
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
[11 12]]
|
|
1797
|
-
|
|
1798
|
-
[[13 14]
|
|
1799
|
-
[15 16]]]
|
|
1800
|
-
[[[10 12]
|
|
1801
|
-
[14 16]]
|
|
1802
|
-
|
|
1803
|
-
[[18 20]
|
|
1804
|
-
[22 24]]]
|
|
1805
|
-
[[[ 31 34]
|
|
1806
|
-
[ 71 78]]
|
|
1807
|
-
|
|
1808
|
-
[[155 166]
|
|
1809
|
-
[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)
|
|
1810
1742
|
"""
|
|
1811
1743
|
|
|
1812
1744
|
string = "PyPyNum"
|
|
@@ -1983,10 +1915,10 @@ print(random.randint(0, 9, [2, 3, 4]))
|
|
|
1983
1915
|
print(random.uniform(0, 9, [2, 3, 4]))
|
|
1984
1916
|
|
|
1985
1917
|
"""
|
|
1986
|
-
[[[0.
|
|
1987
|
-
[[[0.
|
|
1988
|
-
[[[
|
|
1989
|
-
[[[
|
|
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]]]
|
|
1990
1922
|
"""
|
|
1991
1923
|
|
|
1992
1924
|
print(regs.lin_reg(list(range(5)), [2, 4, 6, 7, 8]))
|