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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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