https://github.com/dxe4/manifold
number theory library, in rust for python
https://github.com/dxe4/manifold
math
Last synced: about 1 year ago
JSON representation
number theory library, in rust for python
- Host: GitHub
- URL: https://github.com/dxe4/manifold
- Owner: dxe4
- Created: 2025-01-23T09:31:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-25T15:56:23.000Z (over 1 year ago)
- Last Synced: 2025-02-25T16:35:28.169Z (over 1 year ago)
- Topics: math
- Language: Rust
- Homepage:
- Size: 129 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
number theory playground
port some logic from sympy to rust and run benchmakrs
```
trials: 5 iteration MIN: 341550071728321 MAX: 341550072728321
sympy total:42.77055257698521 avg: 8.554111 seconds
rust total: 1.2769192990090232 avg 0.25538385980180467
```
```
from manifold_rs import miller_rabin_bool
from sympy.ntheory.primetest import mr as miller_rabin
miller_rabin(i, [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 47, 53, 59, 67, 71, 73, 79, 97])
miller_rabin_bool(i)
```
run insructions:
```
use build_release.sh for production code (this should run faster, needed for benchmarks)
if you dont know what do use, default to build_release.sh
use build_incremental.sh for faster builds
use build.sh for slower builds
```