Skip to main content

A collection of mathematical and statistical functions for scientific computing with Excel support.

Project description

[![Build Status](](
[![Build status](](
[![Coverage Status](](

## About mathpy

mathpy is a collection of mathematical and statistical functions encompassing several different
fields such as linear algebra, numerical analysis, and number theory. The package is intended to
work with other popular scientific computing packages such as numpy and scipy. Most functions in
The mathpy package are also available as Excel UDFs for users who prefer working in Excel. The
mathpy project is primarily a personal project intended to develop a deeper understanding of
the mathematics and algorithmic implementations of various mathematical topics.

## Documentation

The documentation of the mathpy package is available here:

The documentation for importing the mathpy functions to use in Excel as UDFs is found here:

## Installation

Mathpy 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+

The Github repository can also be cloned and installed with the included `` script.

git clone
python 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
- Hypothesis Testing
- Covariance and Correlation Matrices
- Variance
- Simulating Correlation Matrices

### License


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mathpy, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size mathpy-0.3.0.tar.gz (63.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page