Find algebraic equations given their solution
Project description
ries-rs
Python bindings for ries, a Rust inverse
equation solver that turns a target number into compact algebraic equations.
Install the package from PyPI as ries-rs, then import it in Python as
ries_rs.
The Python package uses the same core search engine as the CLI and WASM builds,
including the same presets and typed match objects. For deterministic mode,
JSON manifests, or the full compatibility-oriented CLI surface, use the main
ries-rs executable.
Install
pip install ries-rs
Published wheels use CPython's stable ABI and support Python 3.8 and newer.
Quick Start
import ries_rs
results = ries_rs.search(1.6487212707, level=5, max_matches=3)
for match in results:
print(f"{match.lhs} = {match.rhs}")
x^2 = e
x = sqrt(e)
ln(x) = 1/2
More Examples
Use a preset to expose domain-specific constants:
import ries_rs
results = ries_rs.search(1.64493406685, preset="analytic-nt", level=2, max_matches=5)
for match in results[:5]:
print(match.solve_for_x or f"{match.lhs} = {match.rhs}")
Export structured results for notebooks or downstream tooling:
import json
import ries_rs
payload = [match.to_dict() for match in ries_rs.search(1.618033988749895, max_matches=3)]
print(json.dumps(payload, indent=2))
What You Get
ries_rs.search(...)for equation searchries_rs.list_presets()for available domain presetsries_rs.version()for runtime version checksPyMatchobjects withto_dict()for serialization
Project Links
- Repository: https://github.com/maxwellsantoro/ries-rs
- Main README: https://github.com/maxwellsantoro/ries-rs/blob/main/README.md
- Python bindings docs: https://github.com/maxwellsantoro/ries-rs/blob/main/docs/PYTHON_BINDINGS.md
- Live demo: https://maxwellsantoro.com/projects/ries-rs/app/
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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ries_rs-2.0.1.tar.gz.
File metadata
- Download URL: ries_rs-2.0.1.tar.gz
- Upload date:
- Size: 373.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ecd7c7873690692bc49f7062ae2e86aafac860fd1fdd4963b02a82170ac10e0
|
|
| MD5 |
9059b87f2a8f5a5f759c91c680b7a3a9
|
|
| BLAKE2b-256 |
eac56c7b669c99b85db51a364f175fe2b360ea52c7c36ba7e3685934f83fd363
|
File details
Details for the file ries_rs-2.0.1-cp38-abi3-win_amd64.whl.
File metadata
- Download URL: ries_rs-2.0.1-cp38-abi3-win_amd64.whl
- Upload date:
- Size: 299.5 kB
- Tags: CPython 3.8+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8687161be8c6bb1bc1324107ed5b54da0e33d76338ef4fa37abbab50722c4be
|
|
| MD5 |
587ca4521022dfc5b574bb5523371b1c
|
|
| BLAKE2b-256 |
06b13e3db194fe845a54f052f8f5f25b2ec3b3feb2caf96e884c8200d8cf1e5a
|
File details
Details for the file ries_rs-2.0.1-cp38-abi3-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: ries_rs-2.0.1-cp38-abi3-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 412.2 kB
- Tags: CPython 3.8+, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95b23b0bf5cb136cf28cbb3d146f4d42e0749a88ff67a20d8fbee85f852b61c1
|
|
| MD5 |
5221fe9df0b17c80788de7e77691d7d5
|
|
| BLAKE2b-256 |
649bb71868f7e898774f34c7bd8fc7e2bd62f40cd0a8646bd1a6aeaad5c70c87
|
File details
Details for the file ries_rs-2.0.1-cp38-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: ries_rs-2.0.1-cp38-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 359.4 kB
- Tags: CPython 3.8+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2406ee45ce5a1e49e25195c07326cdf529c7f152a173656b57040ac7f770e3cb
|
|
| MD5 |
f6b7ccd7ea1f0f2d7ef7ae7ac11e386c
|
|
| BLAKE2b-256 |
2bde819c7f31e1d436b7bfb217c2eca4f9322e2c0e924ce798bd1bfff96ebcee
|