Skip to main content

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 search
  • ries_rs.list_presets() for available domain presets
  • ries_rs.version() for runtime version checks
  • PyMatch objects with to_dict() for serialization

Project Links

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

ries_rs-2.0.0.tar.gz (372.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

ries_rs-2.0.0-cp38-abi3-win_amd64.whl (298.4 kB view details)

Uploaded CPython 3.8+Windows x86-64

ries_rs-2.0.0-cp38-abi3-manylinux_2_34_x86_64.whl (412.2 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.34+ x86-64

ries_rs-2.0.0-cp38-abi3-macosx_11_0_arm64.whl (359.3 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

File details

Details for the file ries_rs-2.0.0.tar.gz.

File metadata

  • Download URL: ries_rs-2.0.0.tar.gz
  • Upload date:
  • Size: 372.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ries_rs-2.0.0.tar.gz
Algorithm Hash digest
SHA256 d15e51165387deb7f6e50d9c2d300b95a1079bf520ac663114ccfb640006dfb0
MD5 dd89c75c294015a42809cd72d14385e0
BLAKE2b-256 172f04917b41352d1a18e0abbf10db362e21fb62ac8d34c9b24a29a1b9abeb25

See more details on using hashes here.

File details

Details for the file ries_rs-2.0.0-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: ries_rs-2.0.0-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 298.4 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

Hashes for ries_rs-2.0.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 17aa341cccbd2f89f347a0e63ce84ecb98243155af16911402af03c193f5d3a6
MD5 852725a2a8427412c1067a995f9ab516
BLAKE2b-256 62deb27fb376a371892c1a81a0392dbc9d15cc3f4cd7e5d14acae52dde2e132c

See more details on using hashes here.

File details

Details for the file ries_rs-2.0.0-cp38-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for ries_rs-2.0.0-cp38-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 81677f2f2eef283aebad52492590182d1816a72e0dc414d07ddf58e195038061
MD5 4fc66a754fb319726da569169f4f4572
BLAKE2b-256 051d47a38356469d5c0a98bc8dd984c84af3493b8090f49cd2bd2fd81458b52a

See more details on using hashes here.

File details

Details for the file ries_rs-2.0.0-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ries_rs-2.0.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d448cab64305c2faf446541b27adcb3d31cd677a69d53012b644983b88ed5f2e
MD5 19e85657e3e2ab0b3632e024f168b19a
BLAKE2b-256 1a69105fa91cefb0de90fdbd0968a22c88309918d9192f5fe66194c3cc5ca085

See more details on using hashes here.

Supported by

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