Saravanan666/pypi-org huggingface dataset:
Package: mathplug
__   __  _______  _______  __   __  _______  ___      __   __  _______ 
|  |_|  ||   _   ||       ||  | |  ||       ||   |    |  | |  ||       |
|       ||  |_|  ||_     _||  |_|  ||    _  ||   |    |  | |  ||    ___|
|       ||       |  |   |  |       ||   |_| ||   |    |  |_|  ||   | __ 
|       ||       |  |   |  |       ||    ___||   |___ |       ||   ||  |
| ||_|| ||   _   |  |   |  |   _   ||   |    |       ||       ||   |_| |
|_|   |_||__| |__|  |___|  |__| |__||___|    |_______||_______||_______|Overviewmathplugis a lightweight Python package which supplies simple math functions. It was primarily designed as an excuse to learn how to publish a Python package. Secondarily, this will give me an opportunity to learn some of the more complicated mathematical equations since I somehow skipped that part. In the future, you'll be able toinstallandimportthis software into your notebook or Python file and use it to add some numbers together.How exciting!Table of contentsOverviewTable of contentsInstall & useTestBuildObjectivesHistory0.0.0(10.21.2022)0.0.1(10.25.2022)0.0.2(10.25.2022)0.0.3(10.26.2020)0.1.0(Planned)CreditsLicenseLinksInstall & useFrom terminal:shell pip install mathplugFrom python environment:import mathplugTestClone repository:git clone https://github.com/JordanWelsman/mathplug.gitBuild module for testing:python3 setup.py bdist_wheelInstall module locally:pip install -e . devRun tests withPyTest:pytestBuildBuild module for distribution:python3 setup.py bdist_wheel sdistPush toPyPI:pip install twinetwine upload dist/*ObjectivesLearn how to publish a Python packageLearn some more complicated math functionsHistory0.0.0(10.21.2022)GitHub repositiry createdProject createdBasicREADME.mdwritten0.0.1(10.25.2022)Simple math functions definedadd(),divide(),hello_world(),multiply,square_root(),square(), andsubtract()Package files createdsetup.pyandLICENSE.mdCreated test files & tested withpytesttest_add.py,test_divide.py,test_hello_world.py,test_multiply.py,test_square_root.py,test_square.py, andtest_subtract.pyPackage published toPyPIPyPI Project Link0.0.2(10.25.2022)Aggregated all functions into one fileFunctions should be optionally imported withimport mathplug, not strictlyfrom mathplug import functionFunctions should be accessed withmathplug.function(), notmathplug.file.functionAgregated all test files into one file containing all testsDone for ease of use and to clean up file treeIncremented version number0.0.3(10.26.2020)More math functions definedabsolute(),cube(), andexponent()Created tests for new functions & tested withPyTestabsolute(),cube(), andexponent()Incremented version number0.1.0(Planned)Stable releaseImprove Python accessabilityCreditsmathplugwas created, developed, and is currently maintained byJordan Welsman.Licensemathplugis developed and distributed under theMITlicense.SeeLICENSE.mdfor more details.Links:file_folder:See this project on GitHub:gift:See this project on PyPI:cat:Follow me on GitHub:briefcase:Connect with me on Linkedin:email:Send me an email:clapper:Followed tutorialbyMark Smith (@judy2k)
Package: mathprimes
PrimesAn implementation of prime number methods useful for programming.Inlcudingis_prime(47)  # -> True, andprime_factorization(8345)  # -> {1669: 1, 5: 1}.InstallationUsepiporpoetryor your other favorite package manager that supports installing packages fromPyPI!pipinstallmathprimes# Orpoetryaddmathprimes# EtcUsagefrommathprimesimportis_prime,prime_factorizationDocumentationSeemathprimes.pyfor function type hints, and function doc strings.
Package: math-problem-generator
Python package math_problem_generatorA python package for generating simple math problems. The package is only for
generating the problems. There is no support for presentation or user interaction.ExamplesHow to use the package.# Import the packagefrommath_problem_generatorimportgenerator# Generate 2 simple addition problems with# 4 numbers between 1 and 10 to be addedp=generator.simple_problems("add",no_of_problems=2,min_number=1,max_number=10,numbers=4)# Print the math problemsprint(p)The code above should print something like this:[
    {'type': 'simple', 'operator': 'add', 'numbers': [5, 2, 3, 6], 'solution': 16, 'users_answer': None},
    {'type': 'simple', 'operator': 'add', 'numbers': [6, 10, 10, 5], 'solution': 31, 'users_answer': None}]
]DevelopmentSetup virtual environmentpython3 -m venv .venvsource .venv/bin/activatepip3 install -r requirements-dev.txtpip install -e src/pre-commit installLeave virtual environment (when done)deactivate
Package: mathprolib
flask_appmanager介绍使用flask做的后台插件，暂时功能很少，欢迎issue或pull request功能【先按照示例代码配置先】运行后进入
localhost:5000/manager
输入账号密码admin 12345（还没完全做好登陆系统QWQ，可以pull request来帮帮忙）
然后进入后台（界面如下）目前的功能：查看路由和函数连接关系（概览页面）上传文件到静态资源目录
更多文档：https://gitee.com/toby_lai/flask_appmanager/wikis可以pull request来提交新功能哦~安装教程cd 你的python site-package路径
git clone https://gitee.com/toby_lai/flask_appmanager.git示例代码简单几行，即可启动fromflaskimport*fromflask_appmanagerimport*app=Flask(__file__,static_folder='static')#自己先创建静态目录，并把static_folder参数设置为静态目录名称app.config['SECRET_KEY']='给session设置key，自己修改'#这个key随便设置也行，但不要给别人看manage_app(app,'static')#给app添加上后台，第二个参数是静态目录名称   **_> ！最核心语句！_**app.run()#运行提交issue|新建pull request
Package: mathpy
[![Build Status](https://travis-ci.org/aschleg/mathpy.svg?branch=master)](https://travis-ci.org/aschleg/mathpy)[![Build status](https://ci.appveyor.com/api/projects/status/8gtsv0afqt29qg56/branch/master?svg=true)](https://ci.appveyor.com/project/aschleg/mathpy/branch/master)[![Coverage Status](https://coveralls.io/repos/github/aschleg/mathpy/badge.svg?branch=master)](https://coveralls.io/github/aschleg/mathpy?branch=master)## About mathpymathpy is a collection of mathematical and statistical functions encompassing several differentfields such as linear algebra, numerical analysis, and number theory. The package is intended towork with other popular scientific computing packages such as numpy and scipy. Most functions inThe mathpy package are also available as Excel UDFs for users who prefer working in Excel. Themathpy project is primarily a personal project intended to develop a deeper understanding ofthe mathematics and algorithmic implementations of various mathematical topics.## DocumentationThe documentation of the mathpy package is available here:https://aschleg.github.io/mathpy/The documentation for importing the mathpy functions to use in Excel as UDFs is found here:https://aschleg.github.io/mathpy/excel.html## InstallationMathpy is easily installed through `pip` and is the most recommended approach.~~~~pip install mathpy~~~~The package should also be able to install from Github with the following command:~~~~pip install git+https://github.com/aschleg/mathpy.git~~~~The Github repository can also be cloned and installed with the included `setup.py` script.~~~~git clone https://github.com/aschleg/mathpy.gitpython setup.py install~~~~## Installation Requirements* Python 2.7 or 3+- Recommended to install the Anaconda distribution for your preferred version of Python if not installed already.* Compatible with Windows, Mac and Linux OS.- Excel UDFs are currently available in Windows only.## Available Methods* Linear Algebra- Matrix Decomposition- Vector and Matrix Norms- Matrix Tests* Numerical Analysis- Numerical Differentiation- Numerical Integration- Polynomial Evaluation- Polynomial Interpolation- Roots of Polynomials* Number Theory- Binomial Coefficient- Factorials- Integer Factorization- Greatest Common Divisor- Prime Numbers- Number Sequences* Probability Distributions- Continous Distributions+ Uniform- Discrete Distributions+ Bernoulli+ Binomial* Random Sampling and PRNGs (Pseudorandom Number Generators)- Continuous Distributions+ Uniform- Discrete Distributions+ Bernoulli+ Binomial- Pseudorandom Number Generators+ Linear Congruential Generator+ Combined Linear Congruential Generators+ Lehmer Random Number Generator (Multiplicative Congruential Generator)* Set Theory- Extensions to Python set class- Multiple union and intersection operations- Cartesian products- Relative Complements of multiple sets* Statistics- Factor Analysis- ANOVA and MANOVA- Hypothesis Testing- Covariance and Correlation Matrices- Variance- Simulating Correlation Matrices### LicenseMIT
Package: mathpy-string
MathPyFor information about the language itself,check out thedocumentation.AboutMathPy is a Python library that acts as a completely newprogramming language.The goal of this project is to experiment with strings asnumbers in a high enough base to allow for a multitude ofcharacters, and to see if this could be a viable alternativeto the classical way of implementing character strings.For instance, in hexadecimal, the string "baba" wouldhave a numerical value of 47802.Install MathPypip install mathpy-stringRun files in MathPyThe Python wayIf you wish to run your MathPy files through a Python program,you can do so by importing therun_file()function fromthe mathpy library, as follows:frommathpyimportrun_filewithopen("[filepath]",'rt',encoding='utf-8')asfile:run_file(file)The command line wayIf you wish to run your MathPy files through the command line,you can do it as follows:python -m mathpy run [filepath]or, if you wish to access the shell:python -m mathpy shellor simply:python -m mathpy
Package: mathraining-scrapper
Welcome to MT-Scrapper 👋The Scrapper for the Mathraining Website🏠HomepageInstallpython3-mpipinstallmathraining-scrapperUsagemathsite#Import the mathsite libraryfrommathraining.scrapperimportmathsiteMathraining=mathsite.Mathraining()#Create the Mathraining object#Get the 10th best correctors sorted by total number of correctionscorrectors=Mathraining.top_correctors(10)#Get the 10th best correctors sorted by number of corrections within the last 2 weekscorrectors=Mathraining.top_correctors(10,True)print(correctors)mathuserfrommathraining.scrapperimportmathuserUser=mathuser.User(10)#Create the object user of id 10print(User.name())#print the name of the Userprint(User.info())#print all the informations about this UserSee all the documentation here :https://therewillbeadocumentationsomeday.iassureyouAuthor👤Charlotte ThomasTwitter:@coco33920Github:@coco33920Show your supportGive a ⭐️ if this project helped you!This README was generated with ❤️ byreadme-md-generator
Package: math-randomseed
Python Package ExerciseThe Math RandomSeed Python package is a lightweight library designed to bring a bit of fun to math operations. With simple addition, subtraction, multiplication, division functions, and quirky mathematical facts and jokes, the package is both entertaining and auxiliary. The project follows conventional software engineering practices with testing, proper packaging, and clear instructions for easy distribution.
Documentation for all functions and instructions for installing are detailed below.Group MembersLara KimAndrew HuangAhmed OmarHenry WangPython Package Linkhttps://pypi.org/project/math-randomseed/0.2.3/Package Functionsadd(x, y):Adds two numbers together.subtract(x, y):Subtracts the second number from the first.multiply(x, y):Multiplies two numbers.divide(x, y):Divides the first number by the second. Raises a ValueError for division by zero.get_math_fact():Returns a random fun math fact as a string.tell_math_joke():Returns a math-themed joke as a string.Seeexample.pyfor, well, an example.Setting up Virtual Env, Installing Dependencies, and Building and TestingInstallpipenvpip install pipenvInstall all dependencies fromPipfile.lockpipenv --python $(which python3) installOr if you are using powershell:pipenv --python $(where.exe python3) installActivate the virtual environmentpipenv shellInstall the packagepipenv install -e .Run testspip install -U pytest

pytestIf the pytest shows ImportError, try to install python 3.8 and start from beginningRun an example programpython3 example.pyorpython example.pyTell a math joke, from the command linetell_math_jokeGet a math fact, from the command lineget_math_factInstallation and UsageTo install the most recent version of 'math-randomseed' as a PyPI package, simply run the following command in your terminal:pip install math-randomseed --upgradeorpip3 install math-randomseed --upgradeTo use 'math-randomseed' in your project, import the desired functions as follows:from math_randomseed import add, subtract, multiply, divide, get_math_fact, tell_math_jokeCommand Line CapabilityTypetell_math_jokeinto the command line to tell a math joke.Typeget_math_factinto the command line to give a math fact.
Package: math-round
Mathematical rounding in Python 3This package is designed for using mathematical rounding. This type of rounding was used by function - round () in python 2.Quick startInstall this package using pip:pip install math-roundImportmroundfunction frommath_roundpackage.Use like this:mround(12.123) # - > 12
mround(12.123, 1) # -> 12.1To replace the standard function - round () in the whole project, write the following in the main __init__ file:import builtins
from math_round import mround


builtins.round = mround
Package: math-round-af
math_round_afmath_round_afis a Python package that allows to get mathematically rounded floating numbers.PrerequisitesBefore you begin, ensure you have installed the latest version of Python.Installingmath_round_afTo installmath_round_af, follow these steps:Linux and macOS:pip3 install math-round-afWindows:pip install math-round-afUsingmath_round_afThere are examples of how to usemath_round_af:>>> from math_round_af import get_rounded_number
>>> get_rounded_number(0.4)
0.0
>>> get_rounded_number(0.5)
1.0
>>> get_rounded_number(-0.4)
0.0
>>> get_rounded_number(-0.5)
-1.0
>>> get_rounded_number(3.142, 0)
3.0
>>> get_rounded_number(3.142, 1)
3.1
>>> get_rounded_number(3.142, 2)
3.14Contributing tomath_round_afTo contribute tomath_round_af, follow these steps:Fork this repository.Create a branch:git checkout -b <branch_name>.Make your changes and commit them:git commit -m '<commit_message>'Push to the original branch:git push origin <project_name>/<location>Create the pull request.Alternatively see the GitHub documentation oncreating a pull request.Contributors@AlbertFarkhutdinovContactIf you want to contact me you can reach me atalbertfarhutdinov@gmail.com.LicenseThis project uses the following license:MIT License.
Package: mathseq
MathseqMathseq is python library that helps to generate inifinite sequences real quick ..Supported SequencesFibonacciLucas NumberPrime Numberend (Positional Argument)Catalan NumberVaneck's sequenceComposite NumbersPronic NumbersRandom sequenceseedtypeLook and sayinverseInstallationUsing pip$ pip install mathseqUsageImports>>>frommathseqimportseqCreate Objects>>>frommathseqimportseq>>>>>>fibonacci=seq.fibonacci()>>>fibonacci<generatorobjectfibonacciat0x0000020F83BEC648>>>>Iterationfrommathseqimportseqfibonacci=seq.fibonacci()#printing through desired rangedesired_range=10for_inrange(desired_range):fib=next(fibonacci)print(fib)#keep generating to the infinityforfibinfibonacci:print(fib)Use List Comprehensionfrommathseqimportseqfibonacci=seq.fibonacci()catalan=seq.catalan_numbers()fib_list=[next(fibonacci)for_inrange(10)]cat_list=[next(catalan)for_inrange(10)]print("List of Fibonacci Numbers",fib_list)print("List of Catalan Numbers",cat_list)LicenseMITAuthors@Shoaib IslamContributingContributions are always welcome!Seecontributing.mdfor ways to get started.
Package: mathslib
mathslibis a compilation of Mathematical Functions and Algorithms. Unless credit was given all
of the functions were written by me. Relevant articles are also linked where the implementation is complex.I have used most of these forProject Euler.See my websiteivl-projecteuler.comfor their implementationSee the full documentationhereBreakdownnumtheory.pyphi(x)phi_sieve(x)phi_sum(x)mobius(x)mobius_k_sieve(limit, k)count_k_free(n, k)pythagorean_triples(limit, non_primitive)count_primitive_pythagorean_triples(n)k_smooth_numbers(max_prime, limit)k_powerful(k, limit, count)legendre_factorial(x)tonelli_shanks(a, p)chinese_remainder_theorem(a1, a2, n1, n2)generalised_CRT(a1, a2, n1, n2)frobenius_number(*integers)continued_fraction(x)overall_fraction(x)primes.pyprime_sieve(limit, block_size, segment, values)is_prime(x)prime_factors(x)spf_sieve(x)primepi(x)primepi_sieve(x)sum_of_primes(x)fermat_primality_test(x)miller_primality_test(n, millerrabin, numoftests)divisors.pydivisors(x, proper)divisor(x, n)divisor_sieve(x, n)linalg.pygauss_jordan_elimination(matrix, augmentedpart)solve(M, b)inverse(matrix)determinant(matrix)matrix_addition(A, B, subtract)identity(l, val)concatenate(A, B)argmax(alist)fillmatrix(size, val)matrix_mul(A, B)matrix_pow(A, n)fib.pyfibonacci(n, m)fib_till(limit)zeckendorf_representation(x)algorithms.pyprims_algorithm(matrix)dijkstras_algorithm(graph, start_node, INFINITY)floyd_warshall_algorithm(graph, INFINITY)knap_sack(values, weights, n, W, no_values)knap_sack_values(values, weights, n, W, no_values)BFS(g, start_node, end_node)DFS(g, start_node, end_node)convex_hull_gift_wrapping(pts)convex_hull_DC(pts)simple.pybin_exp(a, b, c, n, m)number_to_base(n, b)extended_euclidean_algorithm(n, b)lcm(a_list)mod_division(a, b, m)bisect(alist, goal)is_clockwise(a, b, c)
Package: mathsnip
DemoInstallpipinstallmathsnipConfigurationput your app_id and app_key in ~/.bash_configexport MATHPIX_APP_ID="xxx"
export MATHPIX_APP_KEY="xxx"where to find the app_id and app_key?openhttps://accounts.mathpix.com/accountclick 'OCR API settings'and you should findUsemathsnipReferencegui part:https://mgregchi02.medium.com/take-screenshots-of-any-area-of-the-screen-with-python-gui-program-6320110e99f7
Package: mathsolver
mathsolverPython package to evaluate natural language mathematical equation and provide its solution
For now it supports following operators:^*/+-squarecubesqrtlog base 10InstallationI would highly recommend using python virtual environment for installing dependencies and programming. For installation of python virtual environment one can follow theguide.pipinstallmathsolverUsagefrommathsolverimportmathsolvermathsolver.solve("What is sum of 5 and 6")>>>(True,'Sum of numbers is 11.0',11.0)# Result is a Tuple(status, description, value)mathsolver.solve("what will be result of when 11 is multiplied with seven")>>>(True,'Multiplication of 11.0 and 7.0 is 77.0',77.0)mathsolver.solve("What will be the division of five hundred and seven and five point six seven")>>>(True,'Division of 507.0 and 5.67 is 89.417989418',89.41798941798942)NotesFor now it only supports solving calculations with single operator. Work in progress for multiple operators.LicenseMIT License 2019 © Vikram Singh andcontributors
Package: mathsom
mathsomMath related library meant for personal use.Contents:Solvers (function can contain more than one input):Newton Raphson method (numerical differentiation)Bisection methodNumerical methods (function can contain more than one input):Single variable differentiationSingle variable integrationInterpolations (uses external libraries for performance, but handles different kind of inputs/outputs):LinearLogLinearCubicSplineInstall instructions:Easly install withpip. Seehttps://pypi.org/project/mathsom/pip install mathsomRequirements:Python: >= 3.8Packages: numpy scipy auxfuncs
Package: maths-ops
This Python Module contains 10 Basic Mathematical operationsAll 10 functions of moduleFirst function is - add_numbers (for adding any number of numbers)Second function is - mul_numbers (for multiplying any number of numbers)Third function is - div_numbers (for performing division of numbers)Fourth function is - sub_numbers (for getting subtraction of any two numbers )Fifth function is - simple_int (for calculating simple interest)Sixth function is - compound_int (for calculating compound interest)Seventh function is - get_log (for getting the log of any given positive number to any base )Eight function is - exp_power (This function is used for getting the value of exponent for any power)Ninth function is - Roots_quad (This function is used for getting the real roots of quadratic equation.
(ax^2+bx+c) where a, b and c are the constants.)Tenth function is - num_power (This function is used for getting the value of any power of any number.)UsageMake sure you have Python installed in your system.Run Following command in the CMD.pip install maths_opsExample# for first function of the module 
from maths_ops import add_numbes

add_numbers(1,2,3,4,5)   #you can give any number of numbers 
here we are giving 5 numbers 

result---> 15 

#for fifth function 
simple_int(P,R,T)
# P- 10000 this is principle amount  
# R - 5 this is rate 
# T- 5 this is time 

result---> 2500

#similarly we can use remainig functions alsoNoteI have tried to implement all the functionality, it might have some bugs also. Ignore that or please try to solve that bug.
Package: mathsplus
This is a simple package for doing some extra maths in python.Change Log0.0.1 (16/12/2020)First Release0.0.2 (16/12/2020)Second Release with small changes0.0.3 (16/12/2020)Third Release with another minor change0.0.4 (16/12/2020)Fourth release with quality of life changes0.0.5 (16/12/2020)Fifth Release with testing changes0.0.6 (16/12/2020)Sixth release with testing changes0.0.7 (16/12/2020)Seventh Release with testing changes0.0.8 (17/12/2020)Eight release with smart function parameters0.0.9 (19/12/2020)Nineth release with grammar fix0.1.0 (05/02/2021)Tenth release with prime factorisation added0.1.1 (07/05/2021)Eleventh release with minor tweaks
Package: mathsvg
mathsvgA  Python library to draw mathematical objects. Create figures and diagrams and save them as SVG files.The complete documentation is available at:https://mathsvg.readthedocs.io.
The sources are hosted on GitHub:https://github.com/alexn11/mathsvg.Programs such as Inkscape are great for creating vector graphics. But Inkscape is made more for designer rather than for mathematicians. The process of doing mathematical diagrams and illustrations using Inkscape can sometimes be quite frustrating. Making a python script to produce the content of an SVG file can be a faster solution.The role of mathsvg is to help with the process of producing your own SVG diagrams using Python scripts. For that purpose a class SvgImage is defined which contains many usefull routines that simplify the creation of mathematical figures with precise descriptions.Once the mathsvg package and all its dependencies are installed it can be used as a normal Python package.Here is an example for the creation of a very simple image:import mathsvg
image = mathsvg.SvgImage(pixel_density = 100, view_window = (( -1, -1 ), ( 1, 1 )))
image.draw_circle([0, 0], 1.1)
image.save("simple-example.svg")The above program does the following.After importing the package mathsvg, a SvgImage object is created. The parameters of the constructors are the pixel density (number of pixel per unit of length) and the view window which selects the part of the plane that will be rendered in the image. The coordinates of mathematical objects will be automatically be converted into coordinates on the SVG canvas.A circle with center (0, 0) and radius 1.1 is drawn using the default drawing options (black solid stroke). Some points of the circle won't appear in the image since they are outside the canvas.Finally the image is saved in a file with the name "simple-example.svg".
Package: mathsym-adasneves
Basic Math LibraryThis package provides users with a basic interface for evaluating functions.UsagefromsymMath_adasneves127.equationimportcreate_eqeq=create_eq("5x^2 + 3x + 5")eq.evaluate(4)# Evaluate the equation when x=4eq.evaluate(7.21)# Evaluate the equation when x=7.21The 'equation' function will prvide an object with the following methods for use:PrintEvaluatePrint will print out how the program interpreted the equation given.Evaluate takes in a parameter 'x', to be used as the variable placeholder.Implementation with matplotlib# Import the required libraries and functionsfromsymMath_adasneves127.equationimportcreate_eqfrommatplotlibimportpyplotasplt# Create a basic equation of x^2equation=create_eq("x^2")# Unfortunately, the 'Range' function does not support floating point step values.x=-10whilex<10:y=equation.evaluate(x)# Evaluate, plot, increment.plt.plot(x,y,'ro')x+=0.1# Show the plotplt.show()If your program is working correctly, you should see something like the figure above.More infoGithub