Skip to main content

This project provides 10 functions that can help mathematics computation and code evaluation. Is_prime (num) function is used to judge whether a number is prime. Input should be a number above zero and output is true or false.

Function of is_square(num) is used to judge if a number is square number by commutating its square root. input should be a number above zero and result is true or false.

The quad_equation_1unknown (a, b, c) function is used to compute the root of equation of two degree. 3 input values are coefficients of equation. the results are roots of quadratic equation with one unknown. If there is no solution for this equation, the result will be “none”. If all inputs are zero, the result will be “not an equation”

The function of fib(num) is to compute the nth number in Fibonacci sequence .

The functions [random _method1(len1), random_method2(len1) and random_all(len1)] can provide a random password with an input length of password. The function “random_method1” includes all letters (both upper case and lower case). The function “random_method2” includes all letters and numbers. The function “random_all” includes all printable characters (except whitespaces).

The next function is “level(string1)” that is used to evaluate level of password. You should give a string object to the function and it will return the strength grade of this password. The levels from good to bad are [perfect, very good, very strong, average, low and too low]. It has an attach function “level_store” and it is only used to support the “level” function.

The function of encode(st) is used to encode a string by using an encryption algorithm. Every character of this string will be replaced by next character in alphabet. The space will be replaced to the character “!”.

(there is a new object too,but it's not completed)

(version 2.1.7, 3rd January, 2020 add) Function “line_equation_2unknown(a, b, u, c, d, v)”gives the root of a linear equation in two unknowns ”ax+by=u, cx+dy=v”.If it has no roots, the result will be none. (version 2.2, 15st February, 2020 add) Function "base_convert(before, after, num)" is used to convert the base of from to . must be a string. and must be bigger than 1 and smaller than 63.The order is 0-9,a-z,A-Z.

If there’s a new version, the descriptions of the new functions will be add into the text.

This project is created by a 12-year-old student. You can send emails to 2691475984@qq.com to contact with me.

Metadata

Release files for math22 2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for math22 2.2
File Size Uploaded Provenance Actions
math22-2.2.tar.gz 1.7 kB Without provenance Details for math22-2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for math22 2.2
File Interpreter ABI Platform Actions
math22-2.2-py3-none-any.whl Python 3 none any Details for math22-2.2-py3-none-any.whl

Total release size: 7.8 kB

Release files / math22-2.2.tar.gz

Download URL math22-2.2.tar.gz
Size 1.7 kB
Tags Source
SHA-256 checksum
How to use checksums
77a8eb8b572b873303f89bcc19773490c09ef7a44f7f1c826cb356b742347192
BLAKE2b-256 checksum
How to use checksums
313ad40e7329920a65e80a3e89d99c6f234a0846f06629c16d67c48072abb365
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.0

Release files / math22-2.2-py3-none-any.whl

Download URL math22-2.2-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a69388c950ad41d510ce1920894a66855307bfd4fc0d4f0a72e8e8ceb08fbe9d
BLAKE2b-256 checksum
How to use checksums
916e34c765434cba121173b3f721e4b2b0271975034f247e940b4f821c47404e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.0

Security for math22 2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page