Simple digital manipulation
Project description
Help on package Extendedmathuse:
NAME
Extendedmathuse
PACKAGE CONTENTS
CLASSES
builtins.object
Fraction
N_arynumber
class Fraction(builtins.object)
| Fraction(molecule, Denominator)
|
| Methods defined here:
|
| __add__(a, b)
|
| __eq__(a, b)
| Return self==value.
|
| __float__(self)
|
| __ge__(a, b)
| Return self>=value.
|
| __gt__(a, b)
| Return self>value.
|
| __init__(self, molecule, Denominator)
| Initialize self. See help(type(self)) for accurate signature.
|
| __le__(a, b)
| Return self<=value.
|
| __lt__(a, b)
| Return self<value.
|
| __mul__(a, b)
|
| __ne__(a, b)
| Return self!=value.
|
| __radd__(b, a)
|
| __repr__(self)
| Return repr(self).
|
| __req__(b, a)
|
| __rge__(b, a)
|
| __rgt__(b, a)
|
| __rle__(b, a)
|
| __rlt__(b, a)
|
| __rmul__(b, a)
|
| __rne__(b, a)
|
| __rsub__(b, a)
|
| __rtruediv__(a, b)
|
| __str__(self)
| Return str(self).
|
| __sub__(a, b)
|
| __truediv__(a, b)
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables (if defined)
|
| __weakref__
| list of weak references to the object (if defined)
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __hash__ = None
class N_arynumber(builtins.object)
| N_arynumber(number, Decimal=10, a=['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'], join='', **kw)
|
| This category supports a+b, ab, a*b, a/b, a//b, a%b, a==b, a<b, a>b, a<=b, a>=b, a!=b, and support mixed with int type.
| You can use self.number, self.strnumber, self.Decimal, self.a , self.join, self.is_positive to see the specific value.(see the description of binaryconversion for information on self)
| Keyword parameters introduction:
| special_choice->Select 'a' or 'm' or None,
| 'a': add on the default a (0~9&A~Z)
| 'm': use decimal as the number on the digit
|
| Methods defined here:
|
| __add__(a, b)
|
| __eq__(a, b)
| Return self==value.
|
| __float__(self)
|
| __floordiv__(a, b)
|
| __ge__(a, b)
| Return self>=value.
|
| __gt__(a, b)
| Return self>value.
|
| __init__(self, number, Decimal=10, a=['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'], join='', **kw)
| Initialize self. See help(type(self)) for accurate signature.
|
| __int__(a)
|
| __le__(a, b)
| Return self<=value.
|
| __lt__(a, b)
| Return self<value.
|
| __mod__(a, b)
|
| __mul__(a, b)
|
| __ne__(a, b)
| Return self!=value.
|
| __neg__(self)
|
| __pos__(self)
|
| __radd__(b, a)
|
| __repr__(a)
| Return repr(self).
|
| __req__(b, a)
|
| __rfloordiv__(b, a)
|
| __rge__(b, a)
|
| __rgt__(b, a)
|
| __rle__(b, a)
|
| __rlt__(b, a)
|
| __rmod__(b, a)
|
| __rmul__(b, a)
|
| __rne__(b, a)
|
| __rsub__(b, a)
|
| __rtruediv__(b, a)
|
| __str__(a)
| Return str(self).
|
| __sub__(a, b)
|
| __truediv__(a, b)
|
| is_positive(self)
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables (if defined)
|
| __weakref__
| list of weak references to the object (if defined)
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __hash__ = None
FUNCTIONS
binaryconversion(number, newradix=2, a=['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'], append=None, join=',')
This is a function for converting a numeric hex:
number -> Is N_arynumber or decimal number type, you can use N_arynumber(number, hexadecimal (default is 10), the list of characters or strings used (default is 0~9&A~Z), connector (default is ',') ,is_positive(kw,bool,default is True))
newradix -> The number of the number to convert to, the default is 2
a, append, join -> The character to be converted into a number, starting from 1, the default is 1~9&A~Z, input 'a' to append to the default list, and 'm' to use decimal digits in digits ( Of course, it is very possible to use join (the default is ', ') to separate digits)
comparison_list(a, b)
Compare lists a and b to output the same part.
decompositionfactor(a)
This function can decompose a positive integer a by a prime factor:
a-> a positive integer that needs to be decomposed,int
gcd(*number)
Output the greatest common divisor of several numbers.
isprimenumber(a)
This function returns whether a is a prime number:
a -> the number to be detected, int
lcm(*number)
Output the least common multiple of several numbers.
primenumberinrange(d=None, b=None)
This function returns all prime numbers in a region:
d -> number of starts (default is 1, int)
b -> the last number of the ending number (default is 1, int)
列竖式程序(_1, _2, 运算程序)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Extendedmathuse-2.1.0.tar.gz
(6.4 kB
view details)
Built Distribution
File details
Details for the file Extendedmathuse-2.1.0.tar.gz
.
File metadata
- Download URL: Extendedmathuse-2.1.0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b9f567bfb5ba799f16bf68438ae3a423c98612df70eb383adb898668a048a20 |
|
MD5 | 09d3284bcf52ae4ac5fd6c35b84aa4ec |
|
BLAKE2b-256 | 4ed8b6840123650aa48c1dde0fea8819831e19164b37a74922f81d51b9e3e98e |
File details
Details for the file Extendedmathuse-2.1.0-py3-none-any.whl
.
File metadata
- Download URL: Extendedmathuse-2.1.0-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2ccbf921f0ac83a228dbe9ef5012621602bb085c8541245aac0dcc48814b968 |
|
MD5 | 888163778662b1707ace564beff852e5 |
|
BLAKE2b-256 | 6c8cb5bd0976bb4ac91a354a6f1c973cbc2b4153a65230858e1c2eb9e53aaee3 |