๐ŸŒ
Python
docs.python.org โ€บ 3 โ€บ library โ€บ math.html
math โ€” Mathematical functions
2 weeks ago - This module provides access to common mathematical functions and constants, including those defined by the C standard. These functions cannot be used with complex numbers; use the functions of the ...
๐ŸŒ
W3Schools
w3schools.com โ€บ python โ€บ module_math.asp
Python math Module
Python has a built-in module that you can use for mathematical tasks.
Discussions

Python Math Library made in 3 Days as a 14 year-old - libmaths
Man ... When I was 14, I was playing video games and didn't write a whole library myself, which looks more professional than everything I've written in the last few years. ๐Ÿ˜‚ So kudos to your great work! It really looks very, very professional and I'm sure you'll have a great future ahead as a programmer. Scrolling through your code, there are some simple things that could be improved. For example: numList = [] numList.append(a) numList.append(b) for i in range(0, len(numList)): Could be simplified to: numList = [a,b] for i in range(len(numList)): More on reddit.com
๐ŸŒ r/Python
156
685
February 25, 2021
Mean method in math module
I noticed that pythonโ€™s math module does not present a method that averages a list. I agree that the function that calculates the mean is easy to write but it would be interesting to add it in the python math module for completeness and for the fact that an implementation in the math package ... More on discuss.python.org
๐ŸŒ discuss.python.org
0
September 6, 2023
Do you have a preferred 3D math library?

I use numpy. It's a mistake to throw out numpy because it's missing one thing. Norms for instance are handled very well and you can use the axis parameter to calculate a lot of them. A magnitude is just an L2-norm.

Quaternions can be implemented using a class and can look like numpy arrays.

More on reddit.com
๐ŸŒ r/Python
3
4
July 24, 2017
Is it true that Python with math libraries is superior to MATLAB?
I think MATLAB is very useful to know well if you even plan on working in industry. MATLAB is WIDELY used in industry and is an extremely useful tool for programming in science and engineering. Personally I think it is important to know both and use both where appropriate. It is what I do. Edit: I am an aerospace engineer for reference More on reddit.com
๐ŸŒ r/matlab
48
38
March 26, 2019
๐ŸŒ
W3Schools
w3schools.com โ€บ python โ€บ python_math.asp
Python Math
Python has a set of built-in math functions, including an extensive math module, that allows you to perform mathematical tasks on numbers.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ python-math-module
Python Math Module - GeeksforGeeks
July 26, 2025 - The math module in Python is a built-in library that contains a collection of mathematical functions and constants.
๐ŸŒ
Real Python
realpython.com โ€บ ref โ€บ stdlib โ€บ math
math | Python Standard Library โ€“ Real Python
The Python math module provides a comprehensive collection of mathematical functions and constants, making it a go-to tool for performing mathematical operations in Python.
๐ŸŒ
Mimo
mimo.org โ€บ glossary โ€บ python โ€บ math-module
Python Math Module: Syntax, Usage, and Examples
The Python math module provides functions for arithmetic, trigonometry, logarithms, and more. Use it for calculations in data analysis and engineering.
๐ŸŒ
Reddit
reddit.com โ€บ r/python โ€บ python math library made in 3 days as a 14 year-old - libmaths
r/Python on Reddit: Python Math Library made in 3 Days as a 14 year-old - libmaths
February 25, 2021 -

Hey r/Python! Today, I wanted to make a post about a recent project I took upon myself (This is my first "major" project). This project is both a mixture of math, and computer science and I thought it was worth sharing here.

Install libmaths on PyPi or from my GitHub: PyPi | GitHub Repo

If you have GitHub account, please star the repository. I'd greatly appreciate it.

Three days ago, I decided to create my own Python library as a 14-year old high school student, libmaths. I've always used them but something I never understood was how they were made or where they were coming from. I did the research on how to design my library and publish it and immediately started. I plan on maintaining the library and dealing with any issues or concerns everyday.

An issue I thought mathematicians faced in programming was the incapability to draw graphs and models in a short period of time within their code. With some research, I gathered a list of functions I wanted to implement to begin with. I have no calculus experience but I was determined to add a couple calculus functions. I needed a lot of help to understand the math and google came pretty clutch.

libmaths is an extremely efficient library allowing the user a smooth experience in graphing and modeling functions. From linear functions all the way to sextic functions and much more, libmaths has it all.

In the GitHub repository, examples for every single function are provided as well as the file itself if you would like to play around with the values or change code yourself.

If there's one thing I learned from this experience, it's that math and computer science put together can be an amazing tool and there's no limit to how much you can learn with the internet.

To anyone trying to pursue coding, there's plenty of resources on the internet and considering we are already in the r/Python subreddit, you can also put math to use in your code!

Example showing one of the many functions available in libmaths!
Find elsewhere
๐ŸŒ
Mpmath
mpmath.org
mpmath - Python library for arbitrary-precision floating-point arithmetic
mpmath is a free (BSD licensed) Python library for real and complex floating-point arithmetic with arbitrary precision.
๐ŸŒ
SymPy
sympy.org
SymPy
We cannot provide a description for this page right now
๐ŸŒ
GitHub
github.com โ€บ VascoSch92 โ€บ awesome_python_math_packages
GitHub - VascoSch92/awesome_python_math_packages: List of ๐Ÿ packages that deal with mathematics
Hypercomplex: A Python library for working with arbitrary-dimension hypercomplex numbers following the Cayley-Dickson construction of algebras ยท pixell: A rectangular pixel map manipulation and harmonic analysis library derived from Sigurd Naess' enlib ยท Plabic: Cluster algebraic/geometric structures related to plabic graphs ยท PyFinite: Finite field math in python including generic matrix operations and Reed-Solomon error correcting codes
Author ย  VascoSch92
๐ŸŒ
Python
docs.python.org โ€บ 3 โ€บ library โ€บ index.html
The Python Standard Library โ€” Python 3.14.3 documentation
The library contains built-in modules (written in C) that provide access to system functionality such as file I/O that would otherwise be inaccessible to Python programmers, as well as modules written in Python that provide standardized solutions for many problems that occur in everyday programming.
๐ŸŒ
StrataScratch
stratascratch.com โ€บ blog โ€บ 8-python-libraries-for-math-data-analysis-ml-and-dl
8 Python Libraries For Math, Data Analysis, ML, and DL - StrataScratch
March 13, 2023 - These libraries include NumPy, SciPy, math, pandas, scikit-learn, Keras, PyTorch, and TensorFlow. They are essential tools for data scientists, machine learning engineers, and deep learning practitioners, as they simplify complex mathematical ...
๐ŸŒ
GitHub
github.com โ€บ python โ€บ cpython โ€บ blob โ€บ main โ€บ Modules โ€บ mathmodule.c
cpython/Modules/mathmodule.c at main ยท python/cpython
/* Math module -- standard C math library functions, pi and e */ ... For #1, raise OverflowError. ... For #3 and #4, raise ValueError. It may have made sense to raise ยท Python's ZeroDivisionError in #3, but historically that's only been
Author ย  python
๐ŸŒ
Programiz
programiz.com โ€บ python-programming โ€บ modules โ€บ math
All Mathematical Functions Defined under Math Module in Python 3
The math module is a standard module in Python and is always available. To use mathematical functions under this module, you have to import the module using import math. It gives access to the underlying C library functions.
๐ŸŒ
NumPy
numpy.org
NumPy
Numerical computing toolsNumPy offers comprehensive mathematical functions, random number generators, linear algebra routines, Fourier transforms, and more. Open sourceDistributed under a liberal BSD license, NumPy is developed and maintained publicly on GitHub by a vibrant, responsive, and ...
๐ŸŒ
Dataquest
dataquest.io โ€บ blog โ€บ python-math-module-and-functions
Simple Python Math Module Guide (22 Examples and 18 Functions)
March 6, 2023 - math is a built-in module in the Python 3 standard library that provides standard mathematical constants and functions.
๐ŸŒ
Python.org
discuss.python.org โ€บ python help
Mean method in math module - Python Help - Discussions on Python.org
September 6, 2023 - I noticed that pythonโ€™s math module does not present a method that averages a list. I agree that the function that calculates the mean is easy to write but it would be interesting to add it in the python math module for completeness and for the fact that an implementation in the math package ...
๐ŸŒ
Pyclubs
docs.pyclubs.org โ€บ python-course-guide โ€บ guides โ€บ operators โ€บ python-math
Python Math | Python Course Guide
December 5, 2022 - Python has also a built-in module called math, which extends the list of mathematical functions.