Tong's exclusive math library contains some junior high school math functions
Project description
tongsmath
| setup.py
| init.py
|
+---Primenumber
| DPF.py-+
| +DPF(n)->list or bool :Returns the prime factor (list) of n,if b is prime number return False.
| e.g. DPF(48)->[2,2,2,2,3] means 48 = 22223
| DPN.py-+
| +prime_number_list(n)->list or bool :Returns all prime numbers within n,
| | if there is no content in the prime number list return False.
| +is_primenumber(n)->bool :Returns whether n is prime.
|
+---Simplify
sim2ndrt.py-+
+sim2ndrt(n)->list or int :Returns the simplified result of sqrt(n).
e.g. sim2ndrt(12)->[2,3] means sqrt(12) = 2 * sqrt(3)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tongsmath-1.1.2.tar.gz
(1.5 kB
view hashes)