{"id":28847457,"url":"https://github.com/rustpython/pymath","last_synced_at":"2025-06-19T19:10:27.656Z","repository":{"id":289007397,"uuid":"939851032","full_name":"RustPython/pymath","owner":"RustPython","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-24T05:50:29.000Z","size":25,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-13T06:36:23.467Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RustPython.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-02-27T08:00:56.000Z","updated_at":"2025-04-24T05:50:32.000Z","dependencies_parsed_at":"2025-06-04T10:01:52.947Z","dependency_job_id":null,"html_url":"https://github.com/RustPython/pymath","commit_stats":null,"previous_names":["rustpython/pymath"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/RustPython/pymath","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RustPython%2Fpymath","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RustPython%2Fpymath/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RustPython%2Fpymath/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RustPython%2Fpymath/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RustPython","download_url":"https://codeload.github.com/RustPython/pymath/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RustPython%2Fpymath/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260814272,"owners_count":23066946,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-19T19:10:25.019Z","updated_at":"2025-06-19T19:10:27.647Z","avatar_url":"https://github.com/RustPython.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"pymath\n======\n\nA binary representation compatible Rust implementation of Python's math library.\n\n## Overview\n\n`pymath` is a line-by-line port of the CPython math library to Rust. This library aims to provide mathematical functions that produce identical results to Python's standard math library at the bit level.\n\n## Implementation\n\nEach function has been carefully translated from CPython's C implementation to Rust, preserving the same algorithms, constants, and corner case handling. The code maintains the same numerical properties, but in Rust!\n\n## Usage\n\n```rust\nuse pymath::{gamma, lgamma};\n\nfn main() {\n    // Get the same results as Python's math.gamma and math.lgamma\n    let gamma_result = gamma(4.5).unwrap();\n    let lgamma_result = lgamma(4.5).unwrap();\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frustpython%2Fpymath","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frustpython%2Fpymath","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frustpython%2Fpymath/lists"}