Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Simple digital manipulation

Project description

Help on module Extendedmathuse:

NAME Extendedmathuse

CLASSES builtins.object N_arynumber

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.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.
 |  
 |  __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.
 |  
 |  __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 09&AZ), 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 19&AZ, 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)

decompositionfactor(a)
    This function can decompose a positive integer a by a prime factor:
        a-> a positive integer that needs to be decomposed

isprimenumber(a)
    This function returns whether a is a prime number:
    a -> the number to be detected, int

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for Extendedmathuse, version 2.0.4
Filename, size File type Python version Upload date Hashes
Filename, size Extendedmathuse-2.0.4-py3-none-any.whl (6.2 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size Extendedmathuse-2.0.4.tar.gz (4.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page