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
```Python
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
```Bash
sudo pip install charc_math
```
```Python
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.
```Python
def test_primes():
assert_equal(primes(100),[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97])
assert_equal(primes(2),[2])
assert_equal(primes(-10),[])
assert_equal(primes(1),[])
```
## 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
MIT.
__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
##TODO
- [ ] 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
Metadata
Release files for charc_math 1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| charc_math-1.1.tar.gz | 5.5 kB | Without provenance | Details for charc_math-1.1.tar.gz |
Release files / charc_math-1.1.tar.gz
| Download URL | charc_math-1.1.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cdb4b42fc8f96ddb1333be7290249e2b7ff1b9c71b9d8deb764da98f61244978
|
|
BLAKE2b-256 checksum How to use checksums |
1c43b2a0df30de04844013dff06f5d97426df5d532f275391ff6e2e8ffd79091
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for charc_math 1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.