Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Private collection of math functions

Project Description
# charc_math

This started out as a private collection of maths functions, many will be quite simple. Over time I've got quite a few, and I thought it should be shared. Nothing is too complicated - I hope.

__tl;dr__ Maths functions.

## Code Example

import charc_math as c

print c.primes(10):
#Output [2, 3, 5, 7]

Each function comes with a suffiecient docstring, including what arguments it takes and what it returns.

## Motivation

Each function here has at some point been written and used by me to solve various maths problems, from ProjectEuler, to PythonChallenge, to my own recreational maths work.

## Installation

sudo pip install charc_math

import charc_math
# as you normally would...

## Tests

Each one has gone through a decent amount of testing before finally being put into this proper collection. If you find any bugs contact me at the email provided and I'll look into it.

def test_primes():

## Contributors

So far just me. I'd like to thank any of my friends who will have without a doubt readover at least one of these files just to make sure it has no typos or anything else stupid.

## License

__Basically__ I don't care what you do with the code so long as you:

- [ ] don't ~~try to pass it off as your own~~ _(lol, I know just how basic it is.)_
- [x] give me credit


- [ ] Finish porting all of this from everywhere into one place
- [ ] Work on more common maths functions
- [ ] Speed - _not the drug or the film_
- [x] Sort out the README page
- [ ] ???

Contact me if you want to add more things to that list.

#### Known Bugs
Each bug I find is with the function, but still a general list for those unwilling to read (including me)
- isAP is ~~not very numerically accurate~~ better now.
- isGP is not at all numerically accurate, this needs lots of work and fixing
Release History

Release History

This version
History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
charc_math-1.1.tar.gz (5.5 kB) Copy SHA256 Checksum SHA256 Source Jul 10, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting