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.2.tar.gz (375.1 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.2-cp38-abi3-win_amd64.whl (299.2 kB view details)

Uploaded CPython 3.8+Windows x86-64

ries_rs-2.0.2-cp38-abi3-manylinux_2_34_x86_64.whl (412.6 kB view details)

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

ries_rs-2.0.2-cp38-abi3-macosx_11_0_arm64.whl (359.1 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: ries_rs-2.0.2.tar.gz
  • Upload date:
  • Size: 375.1 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.2.tar.gz
Algorithm Hash digest
SHA256 f7a96a87ae17db4d9e636a670894d98e68f0a68ac248cb508516b3ce60771712
MD5 1b0198b2a19ff842f7538ebb5046f9c4
BLAKE2b-256 a05500204835c4bb7387cde7a0adb92e81060fe6a1c936f7865742d5cf78fea2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ries_rs-2.0.2-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 299.2 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.2-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 dbd37df7f1720ade503171a67c412c527f7ef93b63d5e92bdfa7abd7aa4f1d00
MD5 49d72bcbcb509800a32c2f86258a8a3c
BLAKE2b-256 9e8fe8102434010c47dfd68b8920810e91ef4bb21fe935727ac9f3ebf9a85342

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ries_rs-2.0.2-cp38-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 b3e210456c15f04fd2e33da613e0c253801dc14fcb1b7b16f88c7e5f8b6e9cb7
MD5 cdb639020ec918456e7f6668861eb620
BLAKE2b-256 cf3c698a4939f78506bf2ac1246c8cbfa28251e4fc55679ce53b8ffd85dc5ce8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ries_rs-2.0.2-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b8f95c8fd3ce1361233ad5cdec4500cf565b15aa65296433c4bd9cd548dee53b
MD5 098d3382d9f385cd12d8acc1af8e3219
BLAKE2b-256 ec6aa44e84c95c3eb4aad5b1a4888423bf62f004776e41ca6226c7649bbaf813

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