Skip to main content

Demo Package for Mathematical Factors.

Project description

A new library to handle all sorts of mathematical factors of a number. From finding sum of factors to finding prime factors. Number of built-in functions added for the library are: nfact() -> Finding the number of factors for the given number. Returns 'None' if there's no factor for the number else returns the number of factors. sfact() -> Finding the sum of factors for the given number. Returns -1 if there's no factor for the number else returns the sum of factors. fact() -> Gives the list of factors for the given number, returns -1 if there's no factor for the number. efact() -> Gives the list of even factors for the given number, returns -1 if there's no factor for the number. ofact() -> Gives the list of odd factors for the given number, returns -1 if there's no factor for the number. pfact() -> Gives the list of prime factors for the given number, returns -1 if there's no factor for the number. sum_efact() -> Returns the sum of even factors for the given number, returns -1 if there's no factor for the number. sum_ofact() -> Returns the sum of odd factors for the given number, returns -1 if there's no factor for the number. sum_pfact() -> Returns the sum of prime factors for the given number, returns -1 if there's no factor for the number. import factors.factors as f f.fact(10) -> [1, 2, 5, 10] (Output).

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

math_factors-1.0.2-py2.7.egg (1.6 kB view hashes)

Uploaded Source

math_factors-1.0.2-py2-none-any.whl (3.5 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page