Skip to main content

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

Project description

[![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 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:

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

## 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+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.git
python 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
- Approximations of Pi

* Probability Distributions
- Continous Distributions
+ Uniform
- Discrete Distributions
+ Bernoulli
+ Binomial
+ Hypergeometric

* Random Sampling and PRNGs (Pseudorandom Number Generators)
- Continuous Distributions
+ Uniform
- Discrete Distributions
+ Bernoulli
+ Binomial
+ Hypergeometric
- 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

MIT

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

mathpy-0.2.3.tar.gz (63.3 kB view details)

Uploaded Source

File details

Details for the file mathpy-0.2.3.tar.gz.

File metadata

  • Download URL: mathpy-0.2.3.tar.gz
  • Upload date:
  • Size: 63.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mathpy-0.2.3.tar.gz
Algorithm Hash digest
SHA256 5be29632890fd87e213256fb12535445d549d36bc04e82cdce230c8bd48a4d46
MD5 9627e52f9961ad1344c0962038193580
BLAKE2b-256 2ae2a559ffaf350e75652fa34e8fc6cd5d75cbd2e0afbec0889cde9e7941e8ce

See more details on using hashes here.

Supported by

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