Skip to main content

tong's math library

Project description

What's new:

1.Update the Update Content module

2.Added news.log files

3.Added Function.func.Func parameter stp is the step size of x


Thank you ztz for providing the name!!!

tongsmath

Function

func.py

class Func:

"To use this class, you need put in a function expressions
like y=x+2,y=x**2+x+3(It must be in the form of y=x)"

def __ init __(self, evl -> function expressions,st=-100 -> x minimum value, ed=100 -> x maximum value,stp -> The step size of x,xlwlim=-100 -> The x-axis minimum, xuplim=100 -> The x-axis maximum,ylwlim=-100 -> The y-axis minimum, yuplim=100 -> The y-axis maximum)
def show(self)

Displays the function image

Primenumber

DPF.py

def 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 = 2*2*2*2*3

DPN.py

def 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.

def is_primenumber(n)->bool

Returns whether n is prime.

Simplify

sim2ndrt.py

def 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


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.2.3.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tongsmath-1.2.3-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file tongsmath-1.2.3.tar.gz.

File metadata

  • Download URL: tongsmath-1.2.3.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.2

File hashes

Hashes for tongsmath-1.2.3.tar.gz
Algorithm Hash digest
SHA256 e22de6f67c959a959db407b9736746b8490866c86d441e40c1fad03723b1ec4b
MD5 ab25796193ee850a64fcd25c4e37fd9b
BLAKE2b-256 ad7a82dd0a6ea4b33e0920b7b64b9d93bb8ec3357d054a2463738054d9d2b1a0

See more details on using hashes here.

File details

Details for the file tongsmath-1.2.3-py3-none-any.whl.

File metadata

  • Download URL: tongsmath-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.2

File hashes

Hashes for tongsmath-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c974f11abf7e3a06bc5da5f93a7c5e3168533c64284ff705067e391e7299de21
MD5 cf66e90f292ce2e967441bf6265ee555
BLAKE2b-256 3b3781667970958a9b364914063f65a00099ad0558690711fc38a7c5e1b5ae2a

See more details on using hashes here.

Supported by

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